forked from openkylin/platform_build
am e6bf9dcd: am 02be1804: am fdb9fa0e: am 351c908b: am 94e0b530: fix bug that allowed only one video in the shadowbox per page bug: 18777918
* commit 'e6bf9dcde7d150885a98519512c725066601db10': fix bug that allowed only one video in the shadowbox per page bug: 18777918
This commit is contained in:
commit
cc717505e4
|
@ -642,6 +642,10 @@ function startYouTubePlayer(videoId) {
|
|||
} else {
|
||||
// reset the size in case the user adjusted the window since last play
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue