JWPlayer 7 Setup

Please refer to JW Player Configuration Reference

In order to use JWPlayer, the prerequisites are shown as following:

  • You need to have a valid JWPlayer 7 script including a license key
  • The script should be imported before the chameleon one

Example:

<script type="text/javascript" src="jwplayer.js"></script>
<script type="text/javascript" src="chameleon.min.js"></script>

<script type="text/javascript">
    jwplayer.key="YOUR_JWPLAYER_7_LICENSE_KEY";
</script>
$('.chameleon').chameleon({
   player: "jwplayer",
   chameleonContext: {
     "jwplayerSetup": {
        "file": "http://example.com/myVideo.mp4",
        "height": 360,
        "width": 640,
        "autostart": true,
        "advertising": {
              "client": "vast",
              "tag": "http://adserver.com/vastTag.xml"
          }
       }
    }
});

results matching ""

    No results matching ""