Updates for channel-user-password modal and channel-info input-fields

This commit is contained in:
Kasper Rynning-Tønnesen
2018-04-30 16:05:09 +02:00
parent 902cc9df11
commit b2f51c4682
13 changed files with 485 additions and 537 deletions

View File

@@ -126,6 +126,7 @@ var Player = {
startTime = time - conf.startTime;
song_title = obj.np[0].title;
duration = obj.np[0].duration;
Player.setThumbnail(conf, video_id);
Player.cueVideoById(video_id, duration);
//Player.setBGimage(video_id);
} else if(!paused){
@@ -155,7 +156,7 @@ var Player = {
startTime = time - conf.startTime;
song_title = obj.np[0].title;
duration = obj.np[0].duration;
Player.setThumbnail(conf, video_id);
if(mobile_beginning && Helper.mobilecheck() && seekTo === 0 && !chromecastAvailable) {
seekTo = 1 + Player.np.start;
}
@@ -247,6 +248,12 @@ var Player = {
}
},
setThumbnail: function(conf, video_id) {
if(!conf.hasOwnProperty("thumbnail") || conf.thumbnail == "") {
document.getElementById("thumbnail_image").innerHTML = "<img id='thumbnail_image_channel' src='https://img.youtube.com/vi/"+video_id+"/mqdefault.jpg' alt='thumbnail' />";
}
},
onPlayerStateChange: function(newState) {
Helper.log([
"onPlayerStateChange",