Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

use the iframe Youtube player when possible #40

Open
steren opened this issue Feb 8, 2012 · 0 comments
Open

use the iframe Youtube player when possible #40

steren opened this issue Feb 8, 2012 · 0 comments

Comments

@steren
Copy link
Contributor

steren commented Feb 8, 2012

Youtube players used should be the "new" Youtube player (that uses an iframe, not the embed flash object).
With this new player, Youtube decides to une a flash version of an HTML5 version itself.

On my project, I changed this in the video.youtube element of the iOS adapter (that I use for Android too):

  // options.url : need to be the ID of the Youtube video
  // the src should be like src="http://www.youtube.com/embed/khWXdkryBE4?rel=0"
  this.htmlEl.innerHTML = '<iframe width="' + width + '" height="' + height + '" ' + 
      'src="http://www.youtube.com/embed/' + options.url + '?rel=0" frameborder="0" allowfullscreen></iframe>';

I guess this is obsolete since the new framework based on backbone.js is on its way.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant