1<!-- This is a test html file for video test. -->
2<html>
3<body>
4    <video id='testvideo' name='media' controls autoplay loop muted
5            width="640" height="360">
6    </video>
7    <br/>playing: <span id='message_box'/><br/>
8</body>
9<script type="text/javascript">
10  function changeSourceAndPlay(video_url) {
11    testvideo.src = video_url;
12    message_box.innerHTML = 'src = ' + testvideo.src;
13    testvideo.play();
14  }
15
16  function isVideoPlaying() {
17    return (!testvideo.paused) && (testvideo.error == null);
18  }
19
20  function getVideoCurrentTime() {
21    return testvideo.currentTime;
22  }
23</script>
24</html>
25