JSFiddle - React, Tailwind, and code Playground

by romanych

HTML

<div id="player"></div>

<script src="https://content.jwplatform.com/libraries/QE39r56O.js"></script>

JavaScript

window.onload = function() {
   var playerInstance = jwplayer('player').setup({
     // key: license,
     width: "350",
     height: "250",
     image: 'https://hakuna.audienceproject.com/_assets/video/poster.jpg',
     file: 'https://hakuna.audienceproject.com/_assets/video/avengers-trailer.mp4',

     advertising: {
       debug: false,
       client: 'vast'
     }
   });

   playerInstance.on('firstFrame', function() {
     setTimeout(function() {
       playerInstance.playAd("https://sak.userreport.com/_rt/bl/vast?bl=UMEojvH0Ai3y8&test_invite=true");
     }, 500);

   })
 };