Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: didCaptureVideoFrame delegate method #26

Open
codingcronus opened this issue Jun 18, 2019 · 0 comments
Open

Request: didCaptureVideoFrame delegate method #26

codingcronus opened this issue Jun 18, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@codingcronus
Copy link

codingcronus commented Jun 18, 2019

I have created an VOIP app using Nativescript WebRTC.
The receiver can receive calls while the app is not running via VOIP push notifications. Such a push notification will present a local notification (I really should implement CallKit...) to the user and if the user accepts the call, the app is launched and the call is initiated.
When the app is started via a local notification interaction and from there instantly tries to access the local video feed, I sometimes get in a siuation where it thinks the local video is streaming, but it is not. If I toggle the front/back camera in the app, the video starts to stream.

Because of this I need somehow to conclude if the local video is streaming or not. I think the RTCVideoCapturerDelegate in the Google WebRTC framework that FancyWebRTC and hence Nativescript WebRTC is based upon, could be a feasible way to go.
The delegate has a method: capturer:didCaptureVideoFrame which we could use to tell whether or not the app is streaming local video.

@triniwiz triniwiz added the enhancement New feature or request label Jun 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants