diff --git a/assets/js/flixplayer.js b/assets/js/flixplayer.js index 205e1fb..7b74550 100644 --- a/assets/js/flixplayer.js +++ b/assets/js/flixplayer.js @@ -94,3 +94,7 @@ const video = document.getElementById('videoplayer'); showControls(); } }); + + + + playPauseIcon.focus(); \ No newline at end of file diff --git a/bundle.js b/bundle.js index 4439f81..8269cb8 100644 --- a/bundle.js +++ b/bundle.js @@ -63,7 +63,12 @@ function listen () { // Send BingePack ping(bingePack,'bingepack'); - videoplayer.setAttribute("src", data.video); + videoplayer.setAttribute("src", bingePack.video); + + + ping({position:videoplayer.currentTime},'seek'); + + }); @@ -99,6 +104,7 @@ function listen () { // }]); console.log('Binge Pack Recieved'); videoplayer.setAttribute("src", data.video); + bingePack = data; } if(data.from == selfId){ return; @@ -192,6 +198,9 @@ adminVideoChange.addEventListener('click',()=>{ var adminSyncPlayback = document.getElementById('sync-playback'); adminSyncPlayback.addEventListener('click',()=>{ + + videoplayer.setAttribute('src',bingePack.video); + adminSyncPlayback.setAttribute('disabled',true); position = videoplayer.currentTime; diff --git a/play/index.html b/play/index.html index a26d925..f23a1ba 100644 --- a/play/index.html +++ b/play/index.html @@ -23,11 +23,11 @@