Asylum Feedback/Support

Audio Asylum feedback, support and feature wish list.

Return to Asylum Feedback/Support


Message Sort: Post Order or Asylum Reverse Threaded

YouTube

24.9.86.23

Posted on August 14, 2016 at 00:51:40
J.Mac
Audiophile

Posts: 3450
Location: Colorado
Joined: November 6, 2002
Test. Embed iframe code from the URL shown below.






 

Hide full thread outline!
    ...
Ok... First thing, posted on August 14, 2016 at 00:54:41
J.Mac
Audiophile

Posts: 3450
Location: Colorado
Joined: November 6, 2002
I can understand maybe not wanting to permit iframes to unknown sites, but YouTube is a known site. You're not accomplishing anything by substituting code for an iframe containing a YouTube video.

 

Object code deprecated, posted on August 14, 2016 at 01:12:20
J.Mac
Audiophile

Posts: 3450
Location: Colorado
Joined: November 6, 2002
It may still work, but there's a notice that this was deprecated back in January 2015.


Deprecation Notice

YouTube [object] embeds were deprecated on January 27, 2015. Please migrate your applications to use [iframe] embeds, which can intelligently use whichever embedded player - HTML ([video]) or Flash ([object]) - the client supports.



 

Most modern forums, posted on August 14, 2016 at 01:53:41
J.Mac
Audiophile

Posts: 3450
Location: Colorado
Joined: November 6, 2002
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.

 

Page processed in 0.017 seconds.