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

Recognize YouTube links for IFrames and change to an embed link #1401

Open
rowanc1 opened this issue Jul 22, 2024 · 0 comments
Open

Recognize YouTube links for IFrames and change to an embed link #1401

rowanc1 opened this issue Jul 22, 2024 · 0 comments

Comments

@rowanc1
Copy link
Collaborator

rowanc1 commented Jul 22, 2024

A number of times people just copy the youtube link in, rather than going to the embed flow in the YouTube UI. These links are deterministic based on the URL, and so we can do that step for people.

Go from:

  • https://www.youtube.com/watch?v=CtqjD1X_5QQ to
  • https://www.youtube-nocookie.com/embed/CtqjD1X_5QQ

The transform should respect the start-at query param:

  • ?start=42

This is for the iframe element only, and could look similar to the link transformers, or expand that pattern to look at iframes as well?

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

No branches or pull requests

1 participant