Barton Lewis
Barton Lewis

Reputation: 157

create loop for video playing on jw player

I am using jw player to play a video on my website which I want to loop. Can I do this? I am pasting the code below but I don't think it will be of use to see the video since the player is loaded onto my website. If someone can still answer the answer and tell me if/how I can loop the video I would appreciate it. Thanks.

<!DOCTYPE HTML>
<html>
<head>
    <script src="https://use.typekit.net/qkv6kzb.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script>
    <script src="https://use.typekit.net/qkv6kzb.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script>
    <meta charset="UTF-8">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
body {
    width: 960px;
    margin: 0 auto 0;
    }
</style>
</head>
<body>
<header>
    </header>
    <div>
        <script src="//content.jwplatform.com/players/JGjET8HV-DzNBF8a9.js"></script>
    </div>
    </body>
</html>

Upvotes: 1

Views: 3024

Answers (1)

Bertrand Martel
Bertrand Martel

Reputation: 45362

From jw player API reference, you can set repeat parameter to true from jwplayer().setConfig() :

jwplayer().setConfig({
  repeat: true
});
<div>
  <script src="https://content.jwplatform.com/players/JGjET8HV-DzNBF8a9.js"></script>
</div>

Upvotes: 1

Related Questions