mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Updated embedded player, and fixes for chromecast on mobile
This commit is contained in:
@@ -35,6 +35,7 @@ var Player = {
|
||||
Player.getTitle(obj.np[0].title, viewers);
|
||||
//Player.setBGimage(video_id);
|
||||
if(!Helper.mobilecheck()) Player.notifyUser(obj.np[0].id, obj.np[0].title);
|
||||
console.log("trying to stop");
|
||||
Player.stopVideo();
|
||||
}else if(!paused){
|
||||
//Helper.log("gotten new song");
|
||||
@@ -261,9 +262,9 @@ var Player = {
|
||||
Player.durationSetter();
|
||||
if(embed){
|
||||
setTimeout(function(){
|
||||
Player.seekTo(seekTo);
|
||||
Player.player.seekTo(seekTo);
|
||||
if(!autoplay){
|
||||
Player.pauseVideo();
|
||||
Player.player.pauseVideo();
|
||||
Playercontrols.play_pause_show();
|
||||
}
|
||||
}, 1000);
|
||||
|
||||
Reference in New Issue
Block a user