Reputation: 39
I am using Lity.js to have a brightcove video link pop up in the modal window. My issue is the video is not auto playing, is there a working parameter that can used to say add to this link
https://players.brightcove.net/1534342432001/ByfGnkzB_default/index.html?videoId=5806346414001
So it can auto play, nothing i have tried works
Upvotes: 1
Views: 2765
Reputation: 21
You can add an id to brightcove video tag and call the play function as added in the script
videojs('videoId').play(); //'videoId' will be the id given to player video tag
Upvotes: 1
Reputation: 462
looking on BrightCove's website, it seems you can add an &autoplay option at the end of your url. This worked for me in Microsoft Edge and Firefox. However, Chrome does disable this feature. The only way you could get this to work in Chrome is to also mute the video by adding &muted to the end of the url like this. Hope this helps!
Also, here is the link to BrightCove's available query parameters:
https://support.brightcove.com/available-query-parameters-standard-iframe-embed-code#bc-ipnav-1
Upvotes: 1