| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 $(document).ready(function() { 2 //lets see if we have any jmedia movies 3 if($.fn.media) { 4 $('.jmedia').media(); 5 } 6 7 if(Drupal.settings.video) { 8 $.fn.media.defaults.flvPlayer = Drupal.settings.video.flvplayer; 9 } 10 11 //lets setup our colorbox videos 12 $('.video-box').each(function() { 13 var url = $(this).attr('href'); 14 var data = $(this).metadata(); 15 var width = data.width; 16 var height= data.height; 17 var player = Drupal.settings.video.player; //player can be either jwplayer or flowplayer. 18 $(this).colorbox({ 19 html: '<a id="video-overlay" href="'+url+'" style="height:'+height+'; width:'+width+'; display: block;"></a>', 20 onComplete:function() { 21 if(player == 'flowplayer') { 22 flowplayer("video-overlay", Drupal.settings.video.flvplayer, { 23 clip: { 24 autoPlay: Drupal.settings.video.autoplay, 25 autoBuffering: Drupal.settings.video.autobuffer 26 } 27 }); 28 } else { 29 $('#video-overlay').media({ 30 flashvars: { 31 autostart: Drupal.settings.video.autoplay 32 }, 33 width:width, 34 height:height 35 }); 36 } 37 } 38 }); 39 }); 40 }); 41
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |