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

fix(shortcode): support timestamps in youtube embeds #1593

Merged
merged 4 commits into from
May 25, 2023

Conversation

wescopeland
Copy link
Member

This PR remediates an issue where timestamps are ignored by YouTube video embeds, such as on achievement pages.

Root Cause
The privacy-enhanced YouTube embed URL at youtube-nocookie.com does not support the &t query parameter. Instead, &t must be converted to &start which an integer of seconds representing the timestamp.

For example, &t=1m30s must be converted to &start=90.

@wescopeland wescopeland changed the title fix(Shortcode): support timestamps in youtube embeds fix(shortcode): support timestamps in youtube embeds May 14, 2023
@Jamiras Jamiras merged commit e344089 into RetroAchievements:master May 25, 2023
@wescopeland wescopeland deleted the video-embed-timestamps branch May 25, 2023 16:31
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.

2 participants