0

HTML/JS:

<html lang="en">
<head>
    <script type="text/javaScript" src="javascript/bootstrap/js/bootstrap.js"></script>
    <script type="text/javaScript" src="javascript/jquery/jquery-1.7.1.js"></script>
    <script type="text/javascript" src="javascript/jwplayer/jwplayer.js"></script>
    <link rel="stylesheet" type="text/css" href="javascript/bootstrap/css/bootstrap.css">
</head> 
<body>
    <div class="container">
    <div class="row">
        <div class="span12 page-header ">
            <h1>
                Videos
            </h1>   
        </div>  
    </div>  
    <div class="row">
      <div class="span12" id="vid">
            video will go here.
      </div>

    </div>
</div>

<script>
    jwplayer("vid").setup({
        flashplayer: "javascript/jwplayer/player.swf",
        file: "d2rlstwcyqj5nz.cloudfront.net/01.03.12.mp4",
        height: 270,
        width: 480
    });
</script>
</body>
</html>

如果我直接在浏览器中打开 d2rlstwcyqj5nz.cloudfront.net/01.03.12.mp4,则会下载视频。但是在上面的代码中,播放器没有找到视频。为什么?

在此处输入图像描述

4

1 回答 1

2

尝试包括http://在开头。

于 2012-07-21T08:39:55.287 回答