How to jump to a point in time in video via url?
For example YouTube allows something like &t=25 or &start=25 as a URL parameter and the video will start at the 25th second. How can I achieve this via URL with Cloudinary? I'm aware of the API seek event but it my case I need to be able to just update the URL dynamically and I'm not having any luck. Thanks.
-
Hi Adam,
Cloudinary has a `start_offset` and `end_offset` where you can specify the time range of the video to be played. If you only specify start_offset then it will play the video from that point to the end.
More information here: https://cloudinary.com/documentation/video_manipulation_and_delivery#trimming_videos
Regards,
Aditi
0 -
Thank you that is working but I'm having trouble applying it to the Cloudinary embedded video player. Is it possible to apply all the same video transformations on the fly in the URL within the Cloudinary embed url? Example url below:
I've tried squeezing in for example so_5 in multiple sections of the url but no luck. Any help would be greatly appreciated. Thanks!
0 -
Hi Adam,
Currently, there is no way to add transformation (e.g., start offset) in the embed video url.
If you want to set the poster for a different start offset. You can add transformation for the poster:
Otherwise, you can use our video player and add transformation :
var cld = cloudinary.Cloudinary.new({ cloud_name: 'cloud' }) // Initialize player var player = cld.videoPlayer('example-player') // Modify player source and play hls adaptive streaming player.source('rafting', { sourceTypes: ['hls'], transformation: { start_offset: 3 } }).play();You can read about it here:
https://demo.cloudinary.com/video-player/
Hope that helps,
0
Post is closed for comments.
Comments
3 comments