You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
webRTCAdaptor.mediaManager.switchVideoCameraCapture(streamId,deviceId,()=>{console.log('camera was switched')})
it doesn't trigger the callback...
Looking at the media_manager.js file it seems the switchVideoCameraCapture()-function doesn't do anything with the onEndedCallback-variable, and when it calls this.setVideoCameraSource(...) it sets onEndedCallback to null instead of passing on the defined onEndedCallback
Environment
n/a
Expected behavior
Callback should be triggered.
Actual behavior
Callback is not triggered
Logs
n/a
The text was updated successfully, but these errors were encountered:
Thanks @MaZZly for raising this , I have created a PR to fix this issue,
Please note that the track.stop() is not expected to trigger the ended callback.
as mentioned in the specs below it will be trigger on permission revoked or device ejected
ended Event
The MediaStreamTrack object's source will no longer provide any data, either because the user revoked the permissions, or because the source device has been ejected, or because the remote peer permanently stopped sending data.
Short description
When calling:
it doesn't trigger the callback...
Looking at the
media_manager.js
file it seems theswitchVideoCameraCapture()
-function doesn't do anything with theonEndedCallback
-variable, and when it callsthis.setVideoCameraSource(...)
it setsonEndedCallback
tonull
instead of passing on the definedonEndedCallback
Environment
n/a
Expected behavior
Callback should be triggered.
Actual behavior
Callback is not triggered
Logs
n/a
The text was updated successfully, but these errors were encountered: