24.9.86.23
'); } else { document.writeln(''); } } else { document.writeln(''); } } else { document.writeln(''); } } // End --> |
In Reply to: RE: 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.
Follow Ups:
Post a Followup: