summaryrefslogtreecommitdiffstats
path: root/mobile/android/fenix/app/src/androidTest/assets/pages/videoMediaPage.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
commit59203c63bb777a3bacec32fb8830fba33540e809 (patch)
tree58298e711c0ff0575818c30485b44a2f21bf28a0 /mobile/android/fenix/app/src/androidTest/assets/pages/videoMediaPage.html
parentAdding upstream version 126.0.1. (diff)
downloadfirefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz
firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mobile/android/fenix/app/src/androidTest/assets/pages/videoMediaPage.html')
-rw-r--r--mobile/android/fenix/app/src/androidTest/assets/pages/videoMediaPage.html68
1 files changed, 35 insertions, 33 deletions
diff --git a/mobile/android/fenix/app/src/androidTest/assets/pages/videoMediaPage.html b/mobile/android/fenix/app/src/androidTest/assets/pages/videoMediaPage.html
index 50af35c170..3245cb5fa2 100644
--- a/mobile/android/fenix/app/src/androidTest/assets/pages/videoMediaPage.html
+++ b/mobile/android/fenix/app/src/androidTest/assets/pages/videoMediaPage.html
@@ -1,49 +1,51 @@
-<!DOCTYPE HTML>
+<!DOCTYPE html>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<html>
-<head>
+ <head>
<title>Video_Test_Page</title>
-</head>
-<body>
-<p id="testContent">Page content: video player</p>
-<div class="playbackState">
- <p>Media file not playing</p>
-</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="video" width="420" autoplay controls loop>
- <source src="../resources/clip.mp4" type="video/mp4">
+ </head>
+ <body>
+ <p id="testContent">Page content: video player</p>
+ <div class="playbackState">
+ <p>Media file not playing</p>
+ </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="video" width="420" autoplay controls loop>
+ <source src="../resources/clip.mp4" type="video/mp4" />
Your browser does not support HTML video.
- </video>
-</div>
+ </video>
+ </div>
-<script>
- const video = document.getElementById("video");
+ <script>
+ const video = document.getElementById("video");
- function play() {
+ function play() {
video.play();
- }
+ }
- function pause() {
+ function pause() {
video.pause();
- }
+ }
- function fullscreen() {
+ function fullscreen() {
video.requestFullscreen();
- }
+ }
- video.addEventListener('playing', (event) => {
- document.querySelector('.playbackState').innerHTML="Media file is playing";
- });
+ video.addEventListener("playing", event => {
+ document.querySelector(".playbackState").innerHTML =
+ "Media file is playing";
+ });
- video.addEventListener('pause', (event) => {
- document.querySelector('.playbackState').innerHTML="Media file is paused";
- });
-</script>
-</body>
+ video.addEventListener("pause", event => {
+ document.querySelector(".playbackState").innerHTML =
+ "Media file is paused";
+ });
+ </script>
+ </body>
</html>