How Can I Configure Videos to Auto Play on my Website?
Question
How can I set up my website to auto play a list of videos?
Answer
You will utilize the data-playthrough
parameter and set it to true
to enable auto play. If your Video Center instance is configured to provide recommended videos, a value of true
results in the player continuing to play recommended videos after the specified (data-uuid
) video has completed.
The idea behind recommended videos is to set up a playlist that can be reached through https://org-sandbox.video-api.arcpublishing.com/api/v1/ansvideos/recommended/playlist/<PlaylistName>
and then in the player, it uses the playthrough parameter set to true
(as mentioned previously) so that the player reproduces it after the current video is reproduced, like this example: http://host.cloudfront.net/alex/powaEmbed.html?org=xyz&uuid=bbfc625d-5e83-4743-8ee7&api=sandbox&playthrough=true&powa-apiroot=https://org-sandbox.video-api.arcpublishing.com/api/v1/