mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Trying to fix errors with mobile chromecasting
This commit is contained in:
2
static/dist/embed.min.js
vendored
2
static/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -50,7 +50,7 @@ var Player = {
|
|||||||
song_title = obj.np[0].title;
|
song_title = obj.np[0].title;
|
||||||
duration = obj.np[0].duration;
|
duration = obj.np[0].duration;
|
||||||
|
|
||||||
if(mobile_beginning && Helper.mobilecheck() && seekTo === 0)
|
if(mobile_beginning && Helper.mobilecheck() && seekTo === 0 && !chromecastAvailable)
|
||||||
seekTo = 1;
|
seekTo = 1;
|
||||||
|
|
||||||
try{
|
try{
|
||||||
@@ -75,7 +75,7 @@ var Player = {
|
|||||||
Player.pauseVideo();
|
Player.pauseVideo();
|
||||||
}
|
}
|
||||||
if(!paused){
|
if(!paused){
|
||||||
if(!mobile_beginning)
|
if(!mobile_beginning || chromecastAvailable)
|
||||||
Player.playVideo();
|
Player.playVideo();
|
||||||
if(!durationBegun)
|
if(!durationBegun)
|
||||||
Player.durationSetter();
|
Player.durationSetter();
|
||||||
@@ -117,7 +117,7 @@ var Player = {
|
|||||||
case 1:
|
case 1:
|
||||||
|
|
||||||
playing = true;
|
playing = true;
|
||||||
if(beginning && Helper.mobilecheck()){
|
if(beginning && Helper.mobilecheck() && !chromecastAvailable){
|
||||||
Player.pauseVideo();
|
Player.pauseVideo();
|
||||||
beginning = false;
|
beginning = false;
|
||||||
mobile_beginning = false;
|
mobile_beginning = false;
|
||||||
@@ -255,7 +255,7 @@ var Player = {
|
|||||||
$("#controls").css("opacity", "1");
|
$("#controls").css("opacity", "1");
|
||||||
$(".playlist").css("opacity", "1");
|
$(".playlist").css("opacity", "1");
|
||||||
Player.loadVideoById(video_id);
|
Player.loadVideoById(video_id);
|
||||||
if(autoplay && !Helper.mobilecheck())
|
if(autoplay && (!Helper.mobilecheck() || chromecastAvailable))
|
||||||
Player.playVideo();
|
Player.playVideo();
|
||||||
if(!durationBegun)
|
if(!durationBegun)
|
||||||
Player.durationSetter();
|
Player.durationSetter();
|
||||||
|
|||||||
Reference in New Issue
Block a user