Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable time query param in embed URL #858

Merged
merged 4 commits into from Oct 4, 2022

Conversation

sjcpu4096
Copy link
Contributor

@sjcpu4096 sjcpu4096 commented Sep 30, 2022

Enables deep-linking to specific times in an embedded video by adding checkUrlTimeParam method to embed setup. This method looks for a time query parameter in the URL of an embedded video, and then sets the player's current time based on that parameter. The query parameter is formatted as vimeo_t_[video_id]=[time_in_seconds].

So if page example.com embeds a video with ID 12345, and a user navigates to http://example.com?vimeo_t_12345=30, the video will load on example.com, and the playhead will be at 30 seconds.

@sjcpu4096 sjcpu4096 changed the title Add checkUrlTimeParam method to embed setup Enable time query param in embed URL Sep 30, 2022
@sjcpu4096 sjcpu4096 marked this pull request as ready for review September 30, 2022 06:05
@rkrishnan8594 rkrishnan8594 merged commit e1beda4 into master Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants