Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Videos won't play when rendering into a different document #77

Open
spudly opened this issue Jul 13, 2020 · 0 comments
Open

Videos won't play when rendering into a different document #77

spudly opened this issue Jul 13, 2020 · 0 comments

Comments

@spudly
Copy link

spudly commented Jul 13, 2020

When rendering into a different document (such as an iframe) using React.createPortal, the brightcove player doesn't work.

I believe this is because it adds the script tags along side the player (inside the iframe) but then when it tries to initialize the player, it expects the script's global variables to be present on the outer document's window object.

Here's a repro:

https://codesandbox.io/s/brightcovereact-player-loader-bug-5i86q?file=/src/App.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant