Support youtu.be, www.youtube.com/embed and t param in media link extension #292

Closed
opened 2026-01-29 14:32:58 +00:00 by claunia · 0 comments
Owner

Originally created by @FranklinWhale on GitHub (Apr 29, 2019).

Currently, the Media Link Extension only supports the following YouTube URL pattern:

https://www.youtube.com/watch?v={videoId}

However, the URL returned by "Copy video URL" is now in the format below:

https://youtu.be/{videoId}

The t parameter, which specifies the start time of the video, is not processed by the extension. It should be converted to the start parameter.

Finally, YouTube IFrame URL (URL starting with /embed) may be used directly without any conversion by the Extension.

Originally created by @FranklinWhale on GitHub (Apr 29, 2019). Currently, the Media Link Extension only supports the following YouTube URL pattern: `https://www.youtube.com/watch?v={videoId}` However, the URL returned by "Copy video URL" is now in the format below: `https://youtu.be/{videoId}` The `t` parameter, which specifies the start time of the video, is not processed by the extension. It should be converted to the [`start` parameter](https://developers.google.com/youtube/player_parameters#start). Finally, [YouTube IFrame URL](https://developers.google.com/youtube/player_parameters#Embedding_a_Player) (URL starting with `/embed`) may be used directly without any conversion by the Extension.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#292