Sunday, 15 January 2012

javascript - Add "http" to embedded Vimeo iframe -



javascript - Add "http" to embedded Vimeo iframe -

i'm using vimeo's oembed api replace the thumbnail embedded video on click.

the src attribute in embedded <iframe> html doesn't contain "http". instead, it's rendered src="//player.vimeo.com/video/00000000". prevents video loading.

do have update url automatically? after going through vimeo faq, seems issue http / https.

how can work around this?

var src= ('https:' == document.location.protocol ? 'https://' : 'http://') +'//player.vimeo.com/video/00000000'

javascript jquery iframe

No comments:

Post a Comment