Closed stephanoparaskeva closed 3 years ago
Sometimes the event 'onRemoteStreamListener' does not get called in my application. What are some ways to ensure it's always called? What function makes this listener get called and how can I improve reliability?
export const MEDIA_OPTIONS = { video: { facingMode: 'user' }, audio: true, options: { muted: false, mirror: true, }, }; const stream = await sess.current?.getUserMedia?.(MEDIA_OPTIONS); console.warn(stream); await sess.current?.accept?.({});
undefined
{ "active" true... } <-------- When this happens, 'onRemoteStreamListener' gets called.
Sometimes the event 'onRemoteStreamListener' does not get called in my application. What are some ways to ensure it's always called? What function makes this listener get called and how can I improve reliability?
Sometimes getUserMedia returns undefined:
Console:
Sometimes: