summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorsmain@google.com <smain@google.com>2014-12-16 19:07:08 -0800
committersmain@google.com <smain@google.com>2014-12-16 19:07:08 -0800
commit94e0b530868c56547ee05e84534fa68a1f6346f7 (patch)
tree20da41f99d16c532a2abbe81be9e481fb0709929 /tools
parentbf644aa564263120fdc61a2578aa2466fbc1d55a (diff)
downloadbuild-94e0b530868c56547ee05e84534fa68a1f6346f7.zip
build-94e0b530868c56547ee05e84534fa68a1f6346f7.tar.gz
build-94e0b530868c56547ee05e84534fa68a1f6346f7.tar.bz2
fix bug that allowed only one video in the shadowbox per page
bug: 18777918 Change-Id: I07c75f795128165e2f1472112cf8ba1a1ee782c7
Diffstat (limited to 'tools')
-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();
}
}