window.addEventListener("DOMContentLoaded", () => { jwplayer("container28850").setup({ "playlist": [ { "file": "https://www.solidsolutions.co.uk/video-streamer/index.aspx", "title": "index", "image": "https://www.solidsolutions.co.uk/dam-thumbnails/half/b7434bee-3813-4d2e-830e-480eef2b133a.jpg", }], "width": "100%", "aspectratio": "16:9", playbackRateControls: [0.25, 0.5, 0.75, 1, 1.25, 1.5, 2], cast: {}, sharing: {}, ga: {} }); jwplayer().on('ready', function(e) { $(".jw-media").attr("id", "Video1"); $(".jw-preview").wrap( "
"); }) jwplayer().on('play', (e) => { $.post("https://www.solidsolutions.co.uk/_JSON/_JSON.aspx?type=RECORD-VIDEO-VIEW&guid=b7434bee-3813-4d2e-830e-480eef2b133a"); }); });