Index: video_filter.codecs.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/video_filter/video_filter.codecs.inc,v retrieving revision 1.3.2.23 diff -u -r1.3.2.23 video_filter.codecs.inc --- video_filter.codecs.inc 14 Mar 2010 13:21:32 -0000 1.3.2.23 +++ video_filter.codecs.inc 15 Mar 2010 22:26:16 -0000 @@ -166,24 +166,28 @@ function video_filter_youtube($video) { $video['source'] = 'http://www.youtube.com/v/'.$video['codec']['matches'][1].($video['autoplay'] ? '&autoplay=1' : '').'&fs=1'.($video['related'] ? '' : '&rel=0'); - + $video['uniq-id'] = $video['codec']['matches'][1]; + return video_filter_flash($video); } function video_filter_google($video) { $video['source'] = 'http://video.google.com/googleplayer.swf?docId='.$video['codec']['matches'][1]; + $video['uniq-id'] = $video['codec']['matches'][1]; return video_filter_flash($video); } function video_filter_tangle($video) { $video['source'] = 'http://www.tangle.com/flash/swf/flvplayer.swf?viewkey='.$video['codec']['matches'][1]; + $video['uniq-id'] = $video['codec']['matches'][1]; return video_filter_flash($video); } function video_filter_dailymotion($video) { $video['source'] = 'http://www.dailymotion.com/swf/'.$video['codec']['matches'][1]; + $video['uniq-id'] = $video['codec']['matches'][1]; return video_filter_flash($video); } @@ -196,6 +200,7 @@ function video_filter_vimeo($video) { $video['source'] = 'http://www.vimeo.com/moogaloop.swf?clip_id='.$video['codec']['matches'][1].'&server=www.vimeo.com&fullscreen=1&show_title=1&show_byline=1&show_portrait=0&color=&autoplay='.$video['autoplay']; + $video['uniq-id'] = $video['codec']['matches'][1]; return video_filter_flash($video); } @@ -208,26 +213,30 @@ $set_id = $video['codec']['matches'][2]; $params['flashvars'] = "&offsite=true&lang=en-us&page_show_url=%2Fphotos%2F$user_name%2Fsets%2F$set_id%2Fshow%2F&page_show_back_url=%2Fphotos%2F$user_name%2Fsets%2F$set_id%2F&set_id=$set_id&jump_to="; + + $video['uniq-id'] = $user_name.'-'.$set_id; return video_filter_flash($video, $params); } function video_filter_flickr_video($video) { $video['source'] = 'http://www.flickr.com/apps/video/stewart.swf?v=1.161'; - $params['flashvars'] = '&photo_id='.$video['codec']['matches'][2].'&flickr_show_info_box=true'; + $video['uniq-id'] = $video['codec']['matches'][2]; return video_filter_flash($video, $params); } function video_filter_gamevideos($video) { $video['source'] = 'http://gamevideos.1up.com/swf/gamevideos12.swf?embedded=1&fullscreen=1&autoplay=0&src=http://gamevideos.1up.com/do/videoListXML%3Fid%3D'.$video['codec']['matches'][1]; + $video['uniq-id'] = $video['codec']['matches'][1]; return video_filter_flash($video); } function video_filter_metacafe($video) { $video['source'] = 'http://metacafe.com/fplayer/'.$video['codec']['matches'][1].'/'.$video['codec']['matches'][2].'.swf'; + $video['uniq-id'] = $video['codec']['matches'][1].'-'.$video['codec']['matches'][2]; return video_filter_flash($video); } @@ -251,6 +260,8 @@ $params['flashvars'] .= '&width=' . $video['width'] ; $params['flashvars'] .= '&height=' . $video['height'] ; $params['flashvars'] .= !empty($video['autoplay']) ? '&autostart=true' : '&autostart=false'; + + $video['uniq-id'] = $video['codec']['matches'][3].'-'.$video['codec']['matches'][4]; return video_filter_flash($video, $params); } @@ -263,24 +274,28 @@ $match = $video['codec']['matches'][2]; } $video['source'] = 'http://www.gametrailers.com/remote_wrap.php?mid='.$match; + $video['uniq-id'] = $match; return video_filter_flash($video, $params); } function video_filter_collegehumor($video) { $video['source'] = 'http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id='.$video['codec']['matches'][1].'&fullscreen=1'; + $video['uniq-id'] = $video['codec']['matches'][1]; return video_filter_flash($video); } function video_filter_myspace($video) { $video['source'] = 'http://mediaservices.myspace.com/services/media/embed.aspx/m='.$video['codec']['matches'][1]; + $video['uniq-id'] = $video['codec']['matches'][1]; return video_filter_flash($video, $params); } function video_filter_capped($video) { $video['source'] = 'http://capped.micksam7.com/playeralt.swf?vid='.$video['codec']['matches'][1]; + $video['uniq-id'] = $video['codec']['matches'][1]; return video_filter_flash($video); } @@ -330,12 +345,14 @@ $params = array( 'allowscriptaccess' => 'always', ); + $video['uniq-id'] = $id; return video_filter_flash($video, $params); } function video_filter_slideshare($video) { $video['source'] = 'http://static.slideshare.net/swf/ssplayer2.swf?id=' . $video['codec']['matches'][1] . '&doc=' . ($video['codec']['matches'][2]); + $video['uniq-id'] = $video['codec']['matches'][1].'-'.$video['codec']['matches'][2]; return video_filter_flash($video); } @@ -347,6 +364,8 @@ $set_id = $video['codec']['matches'][2]; $params['flashvars'] = "host=picasaweb.google.com&&feat=flashalbum&RGB=0x000000&feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F" . $user_name . "%2Falbumid%2F" . $set_id . "%3Falt%3Drss%26kind%3Dphoto%26" . ($video['autoplay'] ? '' : '&noautoplay=1'); + + $video['uniq-id'] = $user_name.'-'.$set_id; return video_filter_flash($video, $params); } Index: video_filter.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/video_filter/video_filter.module,v retrieving revision 1.12.2.12 diff -u -r1.12.2.12 video_filter.module --- video_filter.module 5 Mar 2010 09:32:24 -0000 1.12.2.12 +++ video_filter.module 15 Mar 2010 22:20:21 -0000 @@ -209,8 +209,14 @@ */ function theme_video_filter_flash($video, $params) { $output = ''; + + $classes = array('video-filter'); - $output .= '