Control Video Player using URL
Last updated
Last updated
This page explains how you can control the video player using the video URL. You can add multiple parameters in the URL to change the player's behavior.
Here are a couple of examples for you.
GET
https://play.dyntube.io/videos/4w4tiWQzUO7xuaS1LiGSA
Below is the list of parameters that you can pass to your video URL.
muted
Boolean
Video should be muted or not
autoplay
Boolean
Autoplay video. Normally this option works if the video is muted. Some browsers will not autoplay the video if it's not muted.
start
Float
Timestamp in seconds. The video will start playing from this time.
end
Float
Timestamp in seconds. The video will end playing at this timestamp.
loop
Boolean
Start the video again when it ends.
controls
String
The value should be 'hidden' to hide the controls.
volume
Number
A number from 1 to 10 to set the volume.