-
Notifications
You must be signed in to change notification settings - Fork 176
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
play() is pausing #90
Comments
hey @jamesvclements did you find the way to fix this? It seems that it locks the However, it doesn't match the documentation. I just checked some examples in the docs and they don't work as well. Like Demo here https://docs.embed.ly/reference/playerjs |
@alexeevit |
@jamesvclements thanks for your reply! I see, I had the same idea, but this means that we have to access content of the embedly iframe and when I try to do that, the browser raises a DOMException because of accessing a cross-origin frame. I don't think it's possible to just query an element from the iframe with something like P.S. I'm not really experienced in JS so I may not understand something. |
@alexeevit I believe I moved away from using Webflow's native video player, which uses embedly, and instead used the component to use Vimeo's embed code directly. Then I could access the Vimeo player and use the code above. Unfortunately I'm not sure if / how this works for the Embedly player 😅 |
Well yeah, I had to do the same 🤷♀️ Thanks for the help anyway! |
CleanShot.2022-04-13.at.12.26.52.mp4
Trying to add autoplay functionality to videos a Webflow site. The videos should play when in view, pause when out of view.
I have all the intersection observer functionality working, but I can't seem to play the videos using playerjs. Whenever I call
play()
, thepause
event is fired. Could this have to do with the Vimeo sources themselves?Crossing my fingers this repo is still maintained 🤞 @screeley
The text was updated successfully, but these errors were encountered: