docker-jitsi-meet icon indicating copy to clipboard operation
docker-jitsi-meet copied to clipboard

YouTube sharing doesn't work when Jitsi web client is embedded within iFrame

Open mingnz opened this issue 5 years ago • 10 comments

If I run the Jitsi web application directly in the browser, sharing a YouTube video works perfectly.

However, if the Jitsi web application is embedded in an iFrame (our application), it does not work. The YouTube player is loaded for participants but does not play (even when host plays).

Can't see any browser error messages on the client side, it just doesn't play.

Anyone else have any experiencing in getting this feature to work when Jitsi is embedded in an iFrame?

mingnz avatar May 04 '20 07:05 mingnz

I have used the YouTube player in the Jitsi Meet electron application, so I can only imagine that there is something going on with a Cross-Origin Resource Sharing policy.

kescherCode avatar May 04 '20 07:05 kescherCode

@kescherCode I suspected it could be something like that... now just to figure out exactly why 🤔

I did go into the app.bundle.js to change the YouTube iFrame API options to try make the host app the origin, but it didn't end up fixing it.

mingnz avatar May 04 '20 22:05 mingnz

We found the same issue, did you find a solution?

romualdosc avatar May 23 '20 18:05 romualdosc

@romualdosc unfortunately no, we disabled the feature in the meantime

mingnz avatar May 25 '20 06:05 mingnz

same

spaquet avatar Jun 09 '20 16:06 spaquet

I see if we remove "pointer-events: none;" from the style tag of div#sharedVideo and the user press play in the youtube video then it works normally. This should be some cross-reference related problem.

pvictorlv avatar Jun 10 '20 15:06 pvictorlv

same problem....

VogtAI avatar Dec 09 '20 20:12 VogtAI

Hello @saghul @sapkra Is there any workaround for this issue?

prayagsingh avatar Dec 15 '20 11:12 prayagsingh

I have no idea, but I can say that nested iframes are extremely buggy in browsers. Can you test it in another one, with an other engine (IE, Safari, Firefox, Chrome)?

sapkra avatar Dec 15 '20 12:12 sapkra

found this issue. https://github.com/jitsi/jitsi-meet/issues/7037

prayagsingh avatar Dec 15 '20 12:12 prayagsingh

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 08 '25 02:08 github-actions[bot]

Stale bots are crap.

kescherCode avatar Aug 12 '25 10:08 kescherCode

This is not something we can solve due to the nested frames limitations.

saghul avatar Aug 12 '25 10:08 saghul