In Reply to: YouTube posted by J.Mac on August 14, 2016 at 00:51:40:
just let the user enter the URL to the YouTube video, then they expand that into the iframe code recommended by YouTube. And it's a hell of a lot simpler. They just copy the URL right out of the address bar.
So this:https://www.youtube.com/watch?v=IANBoybVApQ
is turned into something like this (if you want to use the youtube-nocookie site).[iframe width="720" height="405" src="https://www.youtube-nocookie.com/embed/IANBoybVApQ?wmode=opaque"
frameborder="0" allowfullscreen=""][/iframe]
See the link below for regex help.
This post is made possible by the generous support of people like you and our sponsors:
Follow Ups
- Most modern forums - J.Mac 01:53:41 08/14/16 (0)