WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#17108 closed enhancement (invalid)

YouTube iframe embed (HTML5)

Reported by: ramoonus Owned by:
Milestone: Priority: normal
Severity: minor Version: 3.1
Component: Embeds Keywords: 2nd-opinion
Focuses: Cc:

Description

Since July 2010 Youtube supports iframe`s for integrating youtube movies

for users this has two benefits: html5 video support (still in beta - I know) valid XHTML pages because of no flash

http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html

Change History (15)

#1 @nacin
7 years ago

Beyond iframe support in TinyMCE (in trunk), I don't see how that affects us. We use whatever HTML is provided via oEmbed.

#2 @azaozz
7 years ago

  • Keywords close added
  • Milestone Awaiting Review deleted

Agree with @nacin. Apart from the iframe support in the Visual editor (that is in trunk already) there's not much we can do.

#3 @hebbet
7 years ago

i think the new tinymce is good enough. The iframe-Code is btw. no longer beta. it is the default code for embedding.

Maybe Wordpress or Automattic could contact Google and ask if they are going to provide the iframe code via oEmbed.

#4 @nacin
7 years ago

  • Keywords 2nd-opinion added; close removed
  • Milestone set to Awaiting Review

Apparently you can add iframe=1 and you get the new embed code. Since this is the default code now, I'm fine with adding on that argument to YouTube requests.

Reference: http://www.quora.com/When-will-YouTube-update-their-oEmbed-endpoint-to-return-their-new-default-iframe-based-embeds

Cross-referencing #16996 for custom parameter support.

#5 @newmediarts
7 years ago

  • Cc gabrielmansour@… added

#6 @scribu
7 years ago

  • Component changed from General to Embeds

#7 follow-up: @PowerKiKi
7 years ago

  • Cc PowerKiKi added

Would there be any downside in forcing the iframe=1 parameter ? To me it's sounds like a good idea, but maybe I didn't think of special use-case.

#8 in reply to: ↑ 7 @ramoonus
7 years ago

Replying to PowerKiKi:

Would there be any downside in forcing the iframe=1 parameter ? To me it's sounds like a good idea, but maybe I didn't think of special use-case.

iframe exploits and browsers plugins blocking iframes for safety

#9 @ramoonus
7 years ago

  • Type changed from defect (bug) to enhancement

#10 @ramoonus
7 years ago

for 3.3?

#11 follow-up: @pathawks
7 years ago

There are plugins that will do this already.

The reason that Google has not made this the default behavior is because the Iframe embed code does not yet provide the same APIs for player integration that the Flash player allows. While they may be edge cases, there are situations where returning the Iframe code when Flash is expected could break things.

#12 in reply to: ↑ 11 @ramoonus
7 years ago

Replying to pathawks:

There are plugins that will do this already.

The reason that Google has not made this the default behavior is because the Iframe embed code does not yet provide the same APIs for player integration that the Flash player allows. While they may be edge cases, there are situations where returning the Iframe code when Flash is expected could break things.

its better to include permanent fixes in the core instead of creating workarounds

#13 @pathawks
7 years ago

The YouTube team answered a question about this at Google I/O 2011

Google I/O 2011: YouTube's iframe Player: The Future of Embedding

They said that they were worried about breaking compatibility with existing systems that rely on Flash code being returned.

#14 @Otto42
6 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Youtube now returns the iframe based code in their oembed responses by default. Thus, this ticket is now outdated.

No idea when they started doing this, but this gives me back an iframe response:

http://www.youtube.com/oembed?url=http%3A//www.youtube.com/watch%3Fv%3DoHg5SJYRHA0&format=json

#15 @helenyhou
6 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.