fix bug that allowed only one video in the shadowbox per page
bug: 18777918 Change-Id: I07c75f795128165e2f1472112cf8ba1a1ee782c7
This commit is contained in:
@@ -642,6 +642,10 @@ function startYouTubePlayer(videoId) {
|
|||||||
} else {
|
} else {
|
||||||
// reset the size in case the user adjusted the window since last play
|
// reset the size in case the user adjusted the window since last play
|
||||||
youTubePlayer.setSize(videoWidth, videoHeight);
|
youTubePlayer.setSize(videoWidth, videoHeight);
|
||||||
|
// if a video different from the one already playing was requested, cue it up
|
||||||
|
if (videoId != youTubePlayer.getVideoUrl().split('?v=')[1]) {
|
||||||
|
youTubePlayer.cueVideoById(videoId);
|
||||||
|
}
|
||||||
youTubePlayer.playVideo();
|
youTubePlayer.playVideo();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user