summaryrefslogtreecommitdiffstats
path: root/mobile/android/focus-android/app/src/androidTest/assets/mutedVideoPage.html
diff options
context:
space:
mode:
Diffstat (limited to 'mobile/android/focus-android/app/src/androidTest/assets/mutedVideoPage.html')
-rw-r--r--mobile/android/focus-android/app/src/androidTest/assets/mutedVideoPage.html77
1 files changed, 38 insertions, 39 deletions
diff --git a/mobile/android/focus-android/app/src/androidTest/assets/mutedVideoPage.html b/mobile/android/focus-android/app/src/androidTest/assets/mutedVideoPage.html
index 8c4fbfc686..9283ff296b 100644
--- a/mobile/android/focus-android/app/src/androidTest/assets/mutedVideoPage.html
+++ b/mobile/android/focus-android/app/src/androidTest/assets/mutedVideoPage.html
@@ -1,53 +1,52 @@
<html>
-<head>
+ <head>
<title>Muted_Video_Test_Page</title>
-</head>
-<body>
-<p id="testContent">Page content: muted video player</p>
-<div class="playbackState">
-</div>
-<div id="video-container" style="text-align:center">
- <button onclick="play()">Play</button>
- <button onclick="pause()">Pause</button>
- <button onclick="fullscreen()">Full Screen</button>
- <br><br>
- <video id="mutedVideo" width="420" autoplay muted controls loop>
- <source src="resources/clip.mp4" type="video/mp4">
+ </head>
+ <body>
+ <p id="testContent">Page content: muted video player</p>
+ <div class="playbackState"></div>
+ <div id="video-container" style="text-align: center">
+ <button onclick="play()">Play</button>
+ <button onclick="pause()">Pause</button>
+ <button onclick="fullscreen()">Full Screen</button>
+ <br /><br />
+ <video id="mutedVideo" width="420" autoplay muted controls loop>
+ <source src="resources/clip.mp4" type="video/mp4" />
Your browser does not support HTML video.
- </video>
-</div>
+ </video>
+ </div>
-<script>
- const mutedVideo = document.getElementById("mutedVideo");
+ <script>
+ const mutedVideo = document.getElementById("mutedVideo");
- function play() {
+ function play() {
mutedVideo.play();
- }
+ }
- function pause() {
+ function pause() {
mutedVideo.pause();
- }
+ }
- function fullscreen() {
+ function fullscreen() {
mutedVideo.requestFullscreen();
- }
+ }
- var showPlayAlert=true;
+ var showPlayAlert = true;
- mutedVideo.addEventListener('playing', (event) => {
- <!-- document.querySelector('.playbackState').innerHTML="Media file is playing";-->
- <!-- Need this hack to verify that the video is playing, -->
- <!-- the test cannot currently verify the text displayed on the page-->
- if(showPlayAlert===true){
- showPlayAlert=false;
- alert("Media file is playing");
- }
- });
+ mutedVideo.addEventListener("playing", event => {
+ <!-- document.querySelector('.playbackState').innerHTML="Media file is playing";-->
+ <!-- Need this hack to verify that the video is playing, -->
+ <!-- the test cannot currently verify the text displayed on the page-->
+ if (showPlayAlert === true) {
+ showPlayAlert = false;
+ alert("Media file is playing");
+ }
+ });
- mutedVideo.addEventListener('pause', (event) => {
- // document.querySelector('.playbackState').innerHTML="Media file is paused";
- alert("Media file is paused");
- });
-</script>
-</body>
+ mutedVideo.addEventListener("pause", event => {
+ // document.querySelector('.playbackState').innerHTML="Media file is paused";
+ alert("Media file is paused");
+ });
+ </script>
+ </body>
</html>