septerr
septerr

Reputation: 6603

jwplayer play linked video

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>

If I open d2rlstwcyqj5nz.cloudfront.net/01.03.12.mp4 directly in the browser, the video gets downloaded. But in the code above, the player does not find the video. Why?

enter image description here

Upvotes: 0

Views: 2201

Answers (1)

Jonathan
Jonathan

Reputation: 21

Try including http:// at the beginning.

Upvotes: 2

Related Questions