var source = []; var caption = []; var isM8U3 = true; var options = { image: './bg-video.jpg', width: "54%", aspectratio: "16:9", autostart: false, controls: true, preload: "metadata", primary: "html5", height: 480, skin: { name: "tube" }, timeSliderAbove: true, logo: { link: 'http://codecanyon.net/user/facetheme' }, abouttext: "Tube Skin Retina for JW7", aboutlink: "http://codecanyon.net/user/facetheme", }; source.push( ); caption.push( ) options.sources = source; options.tracks = caption; jwplayer.key = "cpLJCXL2KCLiYMtUS43HpwMcs9RITiolsW4if2CADX0="; // jwplayer.key = "dWwDdbLI0ul1clbtlw+4/UHPxlYmLoE9Ii9QEw=="; console.log(options); jwplayer('my_video').setup(options);