JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://jwpsrv.com/library/GoZt1tQ+EeOEtyIACrqE1A.js"></script>
<input type='button' id='btnShowLink1' value='Show Setvi link' />
<input type='button' id='btnShowLink2' value='Show direct link' />
<div id="setviLink">FROM SETVI LINK</div>
<div id="directLink">FROM DIRECT LINK</div>

JavaScript

$(function(){
    
    $('#btnShowLink1').click(function(){
        jwplayer("setviLink").setup({
            file: "http://tomonews-test.s3.amazonaws.com/mov_bbb.mp4",
            type:'mp4',
            image: "http://dev.setvi.com/ResourceAPI/GetResourceRetina?resourceID=1235&token=SHNW2Z128M22DSNX2BE9BF40M75PL7VC24GDCE9YT1K6RK25T6PYH42MNXK43NRB1ZAJMKUYCRRL68JCEA6PS657C50Q4E4FKHF1"
        }).onPlay(function(){ alert('play'); })
        .onPause(function(){ alert('stop'); });        
    });
    
    $('#btnShowLink2').click(function(){
        jwplayer("directLink").setup({
            file: "http://tomonews-test.s3.amazonaws.com/mov_bbb.mp4",
            image: "http://dev.setvi.com/ResourceAPI/GetResourceRetina?resourceID=1235&token=SHNW2Z128M22DSNX2BE9BF40M75PL7VC24GDCE9YT1K6RK25T6PYH42MNXK43NRB1ZAJMKUYCRRL68JCEA6PS657C50Q4E4FKHF1"
        });        
    });   
    
});