@@ -78,7 +93,7 @@ function shortcode_video_tip($format, $long) {
$output[]=t('Embeds the video into the text.').'</p>';
}
else{
$output[]=t('Embeds the video into the content text. With the <em>width</em> and <em>height</em> parameter you can specify the video size.').'</p>';
$output[]=t('Embeds video into the content text. With the <em>width</em> and <em>height</em> parameter you can specify the video size.').'</p>';
$output[]='<p>'.t('For YouTube videos you can specify the width with 420, 480, 640, 960 as the default videos sizes, then the height of the video will be added according to the default embed sizes. The default video size is 480x360px.').'</p>';
}
...
...
@@ -103,8 +118,8 @@ function shortcode_video_tip($format, $long) {
*/
function_shortcode_video_get_youtube_videoid($m){
$params=array();
// $m[4] contains the video url from the end of the provider url to the end of the given text
// maybe contains html (</iframe>)
// $m[4] contains the video url from the end of the provider url to the end of
// the given text. Maybe it contains HTML (</iframe> tag).
$type=substr($m[4],0,5);
if('watch'==$type){
$mm=array();
...
...
@@ -135,20 +150,30 @@ function _shortcode_video_get_youtube_videoid($m) {