mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Hiding 'waiting for video' text
This commit is contained in:
@@ -90,7 +90,7 @@ function hide_native(way) {
|
||||
Player.player.setVolume(100);
|
||||
Player.soundcloud_player.setVolume(1);
|
||||
|
||||
Helper.toggleClass("#player_overlay_text", "hide");
|
||||
Helper.addClass("#player_overlay_text", "hide");
|
||||
} else if(way == 0){
|
||||
if(!Helper.mobilecheck()) {
|
||||
if(M.Tooltip.getInstance(document.getElementsByClassName("castButton")[0])) {
|
||||
@@ -120,7 +120,7 @@ function hide_native(way) {
|
||||
Player.soundcloud_player.setVolume(embed ? 1 : Crypt.get_volume() / 100);
|
||||
}
|
||||
Helper.addClass("#player_overlay", "hide");
|
||||
Helper.toggleClass("#player_overlay_text", "hide");
|
||||
Helper.removeClass("#player_overlay_text", "hide");
|
||||
Helper.setHtml("#chromecast_text", "");
|
||||
Helper.css("#playing_on", "display", "none");
|
||||
if(!offline){
|
||||
@@ -456,7 +456,6 @@ function get_list_listener(){
|
||||
socket.emit("list", { offline: offline, version: parseInt(localStorage.getItem("VERSION")), channel: add + chan.toLowerCase()});
|
||||
});
|
||||
socket.on("id_chromecast", function(msg) {
|
||||
console.log(msg);
|
||||
chromecast_specs_sent = true;
|
||||
castSession.sendMessage("urn:x-cast:zoff.me", {type: "mobilespecs", guid: msg.guid, socketid: msg.cookie_id, channel: chan.toLowerCase()})
|
||||
})
|
||||
|
||||
@@ -297,7 +297,6 @@ initializeCastApi = function() {
|
||||
castSession.sendMessage("urn:x-cast:zoff.me", {type: "nextVideo", videoId: full_playlist[0].id, title: full_playlist[0].title, source: full_playlist[0].source, thumbnail: full_playlist[0].thumbnail})
|
||||
|
||||
//if(Helper.mobilecheck()) {
|
||||
console.log("trying to get id");
|
||||
socket.emit("get_id");
|
||||
//}
|
||||
hide_native(1);
|
||||
|
||||
Reference in New Issue
Block a user