html5 - Is it possibleto Start a Flash video with jquery? -


i'm using html5 video player doesn't work in ie8 , have support ie8 im using fallback flash. need videos swap 1 on click have got work both html5 video player using .load , flash player replacing html in div need video start play.

in html5 works follows:

                    $(".featurelogotext").on("click", function (event) {                          $ovideo[0].pause();                         $opause.hide();                         $oplay.hide();                         $oplay.css('display', 'block');                          var media = $(this).attr('media');                         var mediamp4 = media + "mp4";                         var mediawebm = media + "webm";                         var mediaogv = media + "ogv";                         var newposter = $(this).attr('data-poster');                         $('.scrposter').attr('poster', newposter);                         $('.scrvideomp4').attr('src', mediamp4);                         $('.scrvideowebm').attr('src', mediawebm);                         $('.scrvideogg').attr('src', mediaogv);                         $(".scrposter").load();                          var html = ' <param name=\"movie\" value=\"http://fpdownload.adobe.com/strobe/flashmediaplayback.swf\"></param><param name=\"allowfullscreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://fpdownload.adobe.com/strobe/flashmediaplayback.swf\" type=\"application/x-shockwave-flash\"allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"352\" height=\"198\" flashvars=\"src=' + mediamp4 + '&poster=' + newposter + '\"></embed>';                          $("#objflash").html("");                         $("#objflash").append(html);                          var number = $(this).attr('data-number');                         alert(number);                          $ovideo[0].play();                         $oplay.hide();                         $oplaybig.hide();                         $opause.css('display', 'block');                     }); 

how can same thing flash? possible? or there better way show video across browser incl ie8 - i've looked @ videojs says doesn t support ie8.

thanks

this strictly dependent on type of flash player choose use.

some have api allow programatically play video.

in example. common player flowplayer has such command:

// handle first player on page , start clip $f(0).play();  // handle first player , stop $f().stop(); 

short answer: yes.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -