1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 function goFullscreen(id
) {
6 var element
= document
.getElementById(id
);
7 if (element
.webkitRequestFullScreen
) {
8 element
.webkitRequestFullScreen();
12 function playVideo() {
13 document
.getElementById('video').play();
16 addEventListener('DOMContentLoaded', function() {
17 document
.addEventListener('webkitfullscreenerror', function() {
18 javaFullScreenErrorObserver
.notifyJava();