Mov视频不能在网络上播放,而是在VLC Media Player中播放

时间:2014-01-19 17:31:39

标签: video quicktime mov

我的Mov视频有问题,它在我的桌面播放器(如VLC)中播放效果不错但是当我将其嵌入到我的网站时,它没有播放。 Checkout the test page这是代码。

在您网页的 <head> 中使用此代码:

<script src="http://www.apple.com/library/quicktime/scripts/ac_quicktime.js" language="JavaScript" type="text/javascript"></script>
<script src="http://www.apple.com/library/quicktime/scripts/qtp_library.js" language="JavaScript" type="text/javascript"></script>
<link href="http://www.apple.com/library/quicktime/stylesheets/qtp_library.css" rel="StyleSheet" type="text/css" />

在您网页的 <body> 中使用此代码:

<script type="text/javascript"><!--
    QT_WritePoster_XHTML('Click to Play', 'GoScRUB_Infomercial-poster.jpg',
        'GoScRUB_Infomercial.mov',
        '853', '496', '',
        'controller', 'true',
        'autoplay', 'true',
        'bgcolor', 'black',
        'scale', 'aspect');
//-->
</script>
<noscript>
<object width="853" height="496" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
    <param name="src" value="GoScRUB_Infomercial-poster.jpg" />
    <param name="href" value="GoScRUB_Infomercial.mov" />
    <param name="target" value="myself" />
    <param name="controller" value="false" />
    <param name="autoplay" value="false" />
    <param name="scale" value="aspect" />
    <embed width="853" height="496" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"
        src="GoScRUB_Infomercial-poster.jpg"
        href="GoScRUB_Infomercial.mov"
        target="myself"
        controller="false"
        autoplay="false"
        scale="aspect">
    </embed>
</object>
</noscript>

1 个答案:

答案 0 :(得分:0)

试试这个,我希望这会帮助你

<div class="embeddedVideo">
    <object classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B'
        width="600" height="400"
        codebase='http://www.apple.com/qtactivex/qtplugin.cab'>
        <param name='src' value="assets/videos/movie.mov">
        <param name='autoplay' value="false">
        <param name='controller' value="true">
        <param name='loop' value="false">

        <embed src="assets/videos/movie.mov" width="600" height="400"
        scale="tofit" autoplay="false"
        controller="true" loop="false" bgcolor="#000000"
        pluginspage='http://www.apple.com/quicktime/download/'>
        </embed>
    </object>     
</div>