summaryrefslogtreecommitdiffstats
path: root/tools/droiddoc
diff options
context:
space:
mode:
authorsmain@google.com <smain@google.com>2014-12-19 17:30:59 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-12-19 17:30:59 +0000
commit4c67290d5ad9ccf1e3829c03a378303de73dee49 (patch)
treeb5afa3dbe3d6ae921602bbcfe3fb2aace7f36822 /tools/droiddoc
parent8123730d50bebcde77363525bec9738f07786a82 (diff)
parentcc717505e4590d29ec544a0d58ac26f3ce8d0e24 (diff)
downloadbuild-4c67290d5ad9ccf1e3829c03a378303de73dee49.zip
build-4c67290d5ad9ccf1e3829c03a378303de73dee49.tar.gz
build-4c67290d5ad9ccf1e3829c03a378303de73dee49.tar.bz2
am cc717505: 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 'cc717505e4590d29ec544a0d58ac26f3ce8d0e24': fix bug that allowed only one video in the shadowbox per page bug: 18777918
Diffstat (limited to 'tools/droiddoc')
-rw-r--r--tools/droiddoc/templates-sdk/assets/js/docs.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/droiddoc/templates-sdk/assets/js/docs.js b/tools/droiddoc/templates-sdk/assets/js/docs.js
index 69090a3..c35de27 100644
--- a/tools/droiddoc/templates-sdk/assets/js/docs.js
+++ b/tools/droiddoc/templates-sdk/assets/js/docs.js
@@ -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();
}
}