停止视频库中的FLV音频

时间:2011-12-12 14:38:04

标签: jquery flv

我正在尝试创建一个各种类型的视频库,当我使用jQuery滑动到一个新视频时,我仍然在后台播放的.FLV音频存在问题。

是否有任何方法可以通过jQuery,javascript等强制停止.FLV的音频。

以下是我加载.FLV的方法:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="300" height="240" id="FLVPlayer">
<param name="movie" value="/wp-content/themes/blank-theme/flash/FLVPlayer_Progressive.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="FlashVars" value="&amp;MM_ComponentVersion=1&amp;skinName=/wp-content/themes/blank-theme/flash/Clear_Skin_2&amp;streamName=".( $formattedURL )."&amp;autoPlay=false&amp;autoRewind=false" />
<param name="swfversion" value="8,0,0,0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don't want users to see the prompt. -->
<param name="expressinstall" value="/wp-content/themes/blank-theme/flash/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="/wp-content/themes/blank-theme/flash/FLVPlayer_Progressive.swf" width="300" height="240">
  <!--<![endif]-->
  <param name="quality" value="high" />
  <param name="wmode" value="transparent" />
  <param name="scale" value="noscale" />
  <param name="salign" value="lt" />
  <param name="FlashVars" value="&amp;MM_ComponentVersion=1&amp;skinName=/wp-content/themes/blank-theme/flash/Clear_Skin_2&amp;streamName=".( $formattedURL )."&amp;autoPlay=false&amp;autoRewind=false" />
  <param name="swfversion" value="8,0,0,0" />
  <param name="expressinstall" value="/wp-content/themes/blank-theme/flash/expressInstall.swf" />
  <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
  <div>
    <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
    <p><a href="http://www.adobe.com/go/getflashplayer"><img src="/wp-content/themes/blank-theme/images/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
  </div>
  <!--[if !IE]>-->
</object>
<!--<![endif]-->

$ formattedURL是我.flv的链接。

非常感谢任何帮助。

谢谢是提前

更新

好的,所以我已经弄清楚如何删除音频,但是,我使用的方法在IE7 / 8中不起作用:S(看起来我的.FLV不会加载到框中)

我正在克隆视频div并在点击链接时将其附加到div,请参阅代码:

<script type="text/javascript"> 
$(document).ready(function(){

     $('div.video2').hide();
     var clone1 = $("div.video1 div.videoInner").clone(true);
     var clone2 = $("div.video2 div.videoInner").clone(true);
     $("div.video1 div.videoInner").remove();                
     $("div.video2 div.videoInner").remove();

     $('a.vid1').click(function() {

        $('div.video1').slideDown();
        $('div.video2').slideUp();

        $(clone1).appendTo('div.video1');
     });
      $('a.vid2').click(function() {

        $('div.video1').slideUp();
        $('div.video2').slideDown();

        $(clone2).appendTo('div.video2');
     });
});</script>                    

其中a.vid1和a.vid2是我用来在两个视频之间切换的链接。

有什么想法吗?

0 个答案:

没有答案