summaryrefslogtreecommitdiffstats
path: root/docs/html
diff options
context:
space:
mode:
authorScott Main <smain@google.com>2014-03-25 10:18:28 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-25 10:18:28 +0000
commit686f041ea484abe23e5d70fcc141de687f38d1df (patch)
tree785ac82125c235a3097f779e8a2a01ea7410dd1f /docs/html
parentaddeab5c0459223be9a1059b18b3f2e34188328a (diff)
parent77dc3c00cb102fe91634aa63edf8fbec4a5ad03f (diff)
downloadframeworks_base-686f041ea484abe23e5d70fcc141de687f38d1df.zip
frameworks_base-686f041ea484abe23e5d70fcc141de687f38d1df.tar.gz
frameworks_base-686f041ea484abe23e5d70fcc141de687f38d1df.tar.bz2
am 77dc3c00: am 27fa561f: am 52f449fd: fix size and behavior of video thumbnail when flash not available
* commit '77dc3c00cb102fe91634aa63edf8fbec4a5ad03f': fix size and behavior of video thumbnail when flash not available
Diffstat (limited to 'docs/html')
-rw-r--r--docs/html/wear/index.html13
1 files changed, 9 insertions, 4 deletions
diff --git a/docs/html/wear/index.html b/docs/html/wear/index.html
index 4a71856..9660463 100644
--- a/docs/html/wear/index.html
+++ b/docs/html/wear/index.html
@@ -297,7 +297,7 @@ onkeyup="return search_changed(event, false, '/')" />
</div>
<script src="//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<div id="ytapiplayer">
- <a href="http://www.youtube.com/watch?v=0xQ3y902DEQ"><img width=600
+ <a href="http://www.youtube.com/watch?v=0xQ3y902DEQ"><img width=940
src="https://i1.ytimg.com/vi/0xQ3y902DEQ/maxresdefault.jpg"></a><!--You need Flash player 8+ and JavaScript enabled to view this video. -->
</div>
</div>
@@ -346,9 +346,14 @@ $("#watchVideo").on("click", function(e) {
});
$("#icon-video-close").on("click", function() {
ytplayer = document.getElementById("ytapiplayer");
- ytplayer.stopVideo();
- $(ytplayer).hide();
- $("#video-container").fadeOut(400);
+ try {
+ ytplayer.stopVideo();
+ $(ytplayer).hide();
+ $("#video-container").fadeOut(400);
+ } catch(e) {
+ console.log('Video not available');
+ $("#video-container").fadeOut(400);
+ }
});
</script>
</div>