am 351c908b: am 94e0b530: fix bug that allowed only one video in the shadowbox per page bug: 18777918

* commit '351c908b757fcfee03d5f15b4a29cb9a48f93f46':
  fix bug that allowed only one video in the shadowbox per page bug: 18777918
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 @@
   } 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();
   }
 }