Share a YouTube Video not auto playing for the participants

meet

#1

Hi @Team, @damencho we had an issue with YouTube share video not auto play for participants, but moderator side video is playing properly.

I got errors in browser console for participant side.

[JitsiMeetJS.js] <Object.getGlobalOnErrorHandler>: UnhandledError: null Script: null Line: null Column: null StackTrace: DOMException: play() failed because the user didn’t interact with the document first. https://goo.gl/xX8pDD

Uncaught (in promise) DOMException: play() failed because the user didn’t interact with the document first. https://goo.gl/xX8pDD

www-widgetapi.js:99 Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘https://www.youtube.com’) does not match the recipient window’s origin some.example.com

Please help me to resolve this issue.


#2

This is caused by the new auto-play policy google introduced, my understanding is that this policy will be disabled at some point if there is on going webrtc session, or at least mic or camera is open.
There is nothing we can do at the moment.
In order to make it work a user interaction is required, but this interaction can be just clicking the play/pause button.


#3

Thank you @damencho.