Autoplaying + Timestamps in URLs
See original GitHub issueTypically when you use a time bookmark, it plays the content automatically. It would be nice if the LBRY framework also did this for a smother experience.
Example:
$(document).ready(function () {
if(window.location.href.contains("?t=") > -1) {
// autoplay
}
});
Issue Analytics
- State:
- Created 3 years ago
- Comments:20 (20 by maintainers)
Top Results From Across the Web
Start playback at a specific timecode – Help Center - Vimeo
To share a video link that will begin playback at a specific point, add #t= to the end of the URL followed by...
Read more >Navigating to specific video timestamps. How it's done (Part 3)
Part 3 of our blog post series covering implementing video timestamps for users to effectively navigate to specific sections of a video.
Read more >Playing several custom YouTube video urls with start and end ...
What is the best way we could consider for playing several of these custom YouTube video urls, with start and end time, in...
Read more >Timestamp URL: - AutoPlay Media Studio
Timestamp URL : The URL of a timestamp DLL on the Web to use for all new AutoPlay applications, such as: http://timestamp.verisign.com/scripts/timstamp.dll.
Read more >Make your video play at a specific time - Vidyard Support
Add ?autoplay=1 to the end of the sharing page link. This URL argument will make the video play automatically when the page loads....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay, I can confirm that if autoplay is turned off via settings then it doesn’t autoplay given a timestamp.
I also confirmed that calling
player.play()
from the console did autostart the video from the given timestamp point.This code which was posted by @ElectronEsq is a pretty quick and dirty way to autoplay in all instances.
Probably a good approach would be to hook into an event, such as
canplay
and then callplayer.play()
to force autoplaying the video in all instances where a timestamp exists.https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/canplay_event
Not exactly sure where to drop that code yet but would be a pretty easy PR if someone knew the appropriate place to drop that code and if everyone is willing to sign off on that design.
I think the last discussion we had about this was to ensure that even if the video is paused or autoplay is disabled, that clicking the timestamp would still start the video. Forgot to mention that in this issue.