Closed (fixed)
Project:
Googtube
Version:
6.x-1.x-dev
Component:
code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Jan 2011 at 13:03 UTC
Updated:
22 Jan 2011 at 20:26 UTC
Please change the following function in the googtube.module to allow fullscreen mode...
function googtube_youtube($match) {
$parsed_url = parse_url(check_url($match[0]));
parse_str($parsed_url[query], $parsed_query);
$youtube_id = $parsed_query['v'];
return '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/' . $youtube_id . '&fs=1"></param><param name="wmode" value="transparent"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/' . $youtube_id . '&fs=1" type="application/x-shockwave-flash" wmode="transparent" allowscriptaccess="always" allowfullscreen="true" width="425" height="350"></embed></object>';
}
Thanks
Comments
Comment #1
willeaton commentedp.s. I have manually set a different height and width to what you had originally, maybe this should be a variable in the input format settings page
Comment #2
alexandreracine commentedGood idea, I'll add the ((allowfullscreen="true")) parameter.
Comment #3
alexandreracine commentedComited, should be up soon.