Improved mobile and desktop

- Showing correct button on mobile
- Showing and hiding player-element on play/pause on mobile
- Improved playback on desktop, not stopping videoes if they're skipped while one is loading/buffering
- Small player visual-fixes on mobile
This commit is contained in:
Kasper Rynning-Tønnesen
2018-05-08 09:56:55 +02:00
parent 52fbf7a5b1
commit 35014d6a05
4 changed files with 27 additions and 8 deletions

View File

@@ -9,6 +9,7 @@ var socket_connected = false;
var dynamicListeners = {};
var player_ready = false;
var previousSoundcloud;
var buffering = false;
var empty_clear = false;
var fix_too_far = false;
var beginning = false;
@@ -79,10 +80,8 @@ function receiveMessage(event) {
window.addEventListener("message", receiveMessage, false);
window.addEventListener("DOMContentLoaded", function() {
console.log("Loaded DOMContent");
})
window.addEventListener("load", function() {
console.log("Window loaded");
if(hash.length >= 3 && hash[2] == "autoplay"){
autoplay = true;
Helper.css("#player", "visibility", "hidden");