rn,media: avoid creating presenter tracks
When ensureTrack is set to true a track will be created with the given media type. 'presenter' is not supported on RN.
This commit is contained in:
parent
5d86d202bd
commit
5a027f1585
|
@ -102,10 +102,11 @@ function _setAudioOnly({ dispatch }, next, action) {
|
||||||
sendAnalytics(createTrackMutedEvent('video', 'audio-only mode', audioOnly));
|
sendAnalytics(createTrackMutedEvent('video', 'audio-only mode', audioOnly));
|
||||||
|
|
||||||
// Make sure we mute both the desktop and video tracks.
|
// Make sure we mute both the desktop and video tracks.
|
||||||
dispatch(setVideoMuted(
|
dispatch(setVideoMuted(audioOnly, MEDIA_TYPE.VIDEO, VIDEO_MUTISM_AUTHORITY.AUDIO_ONLY, ensureVideoTrack));
|
||||||
audioOnly, MEDIA_TYPE.VIDEO, VIDEO_MUTISM_AUTHORITY.AUDIO_ONLY, ensureVideoTrack));
|
|
||||||
dispatch(setVideoMuted(
|
if (navigator.product !== 'ReactNative') {
|
||||||
audioOnly, MEDIA_TYPE.PRESENTER, VIDEO_MUTISM_AUTHORITY.AUDIO_ONLY, ensureVideoTrack));
|
dispatch(setVideoMuted(audioOnly, MEDIA_TYPE.PRESENTER, VIDEO_MUTISM_AUTHORITY.AUDIO_ONLY, ensureVideoTrack));
|
||||||
|
}
|
||||||
|
|
||||||
return next(action);
|
return next(action);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue