Needs review
Project:
Video Embed Field
Version:
7.x-2.0-beta5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 May 2013 at 16:35 UTC
Updated:
10 Jul 2014 at 18:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
texas-bronius commentedI'm referring to line #2 in froogaloop2.js:
From https://github.com/vimeo/player-api/blob/master/javascript/froogaloop.js...
Comment #2
texas-bronius commentedVisual aid attached.
Comment #3
svajlenka commentedHere's a patch to fix this.
Comment #4
bachbach commentedthnaks for the patch, works for me.
Without it i wasn't able to controle the vimeo iframe according to this page : http://jsfiddle.net/bdougherty/UTt2K/ because url was incorrect
Comment #5
bao truong commentedI found a type-o in the video_embed_field-invalid_urls_in_iframes-1985290-3.patch at line 30 for the youtube iframe code:
$output['#markup'] = '<iframe width="' . $settings['width'] . '" height="' . $settings['height'] . '" src="http:' . $s . '//www.youtube.com/embed/' . $id . '?' . $settings_str . '" frameborder="0" allowfullscreen></iframe>';should be
$output['#markup'] = '<iframe width="' . $settings['width'] . '" height="' . $settings['height'] . '" src="http' . $s . '://www.youtube.com/embed/' . $id . '?' . $settings_str . '" frameborder="0" allowfullscreen></iframe>';Looks like the $s variable was inserted after the colon in the http string instead of before. The new patch video_embed_field-invalid_urls_in_iframes-1985290-5.patch has this fix