Youtube embed video link
See original GitHub issueHi. I try insert embed YT video link like “http://www.youtube.com/embed/uz8NDWopZyU” with iframe
$.magnificPopup.open({
items: {
src: video,
type:'iframe'
},
})
But YT return error. In the html of iframe tag I’ll see next link:
<iframe class="mfp-iframe" src="//www.youtube.com/embed/http://www.youtube.com/embed/uz8NDWopZyU?autoplay=1" frameborder="0" allowfullscreen=""></iframe>
In advance I don’t know what the link is.
Issue Analytics
- State:
- Created 8 years ago
- Comments:8
Top Results From Across the Web
Embed videos & playlists - YouTube Help - Google Support
Embed a video or playlist · On a computer, go to the YouTube video or playlist you want to embed. · Click SHARE...
Read more >How to get the Embed URL/Link of a Youtube Video
Simply click on the “share” link while on the youtube video page then click on “embed”. Now you can grab the correct url/link...
Read more >HTML YouTube Videos - W3Schools
Upload the video to YouTube · Take a note of the video id · Define an <iframe> element in your web page ·...
Read more >YouTube Embedded Players and Player Parameters
For an IFrame embed, the YouTube video ID for the video that you want to load is specified in the IFrame's src URL....
Read more >How to Embed Youtube Videos: A Step-by-Step Guide
Go to the YouTube page, select a video, and click on the 'Share' option that is displayed below. Here you'll find the; 'Embed'...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Late to the party, in case someone needs to use the actual embed URL for Magnific, here is my process:
This solution will work best for all YouTube link patterns. https://stackoverflow.com/a/48696208