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 start value in youtube embed by removing "s" from url param #6113

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

webpro
Copy link
Contributor

@webpro webpro commented Nov 5, 2024

Added a youtube.com link (https://bsky.app/profile/webpro.nl/post/3la6ojjnymg2u) and noticed the iframed player didn't start from the expected t.

The url https://www.youtube.com/watch?v=U4_X2p6rPJI&t=168s contains the s suffix, whereas the playerVars.start should be an integer according to https://developers.google.com/youtube/player_parameters.

Should add that I didn't test fully end-to-end locally because of same origin issue and didn't run server.go to serve /iframe/youtube.html, but added tests.

Copy link
Collaborator

@gaearon gaearon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks good to me, thank u

@gaearon gaearon merged commit f8fb6cb into bluesky-social:main Nov 5, 2024
@webpro webpro deleted the fix/youtube-embed-start branch November 5, 2024 13:30
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