Control Video Player using URL
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.
Example: The video starts at the 9th second and ends at 12.
Example: The video auto-plays as muted.
GET
https://play.dyntube.io/videos/4w4tiWQzUO7xuaS1LiGSA
Below is the list of parameters that you can pass to your video URL.
Query Parameters
Name | Type | Description |
---|---|---|
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. |
Last updated