-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
115 lines (110 loc) · 6.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
<link href="https://fonts.googleapis.com/css?family=Titillium+Web&display=swap" rel="stylesheet">
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" href="css/main.css">
<script src="https://unpkg.com/vue"></script>
<script src="https://kit.fontawesome.com/cfa5b23a00.js" crossorigin="anonymous"></script>
<title>M Media Player</title>
</head>
<body>
<div id="app">
<h1 class="sr-only">M Media Player</h1>
<header class="header container-fluid px-2 py-4">
<h2 class="sr-only">Main Header</h2>
<a href="index.html" class="logo mt-3 d-flex justify-content-center">
<img src="images/logo.svg" alt="logo">
</a>
</header>
<main class="container">
<h2 class="mt-4 mx-2 h1 text-center">Welcome to<br> M Media Player</h2>
<p class="mt-3 mx-3 text-center">We have various types of media to choose from. We made sure all our media is accessible to everyone.</p>
<section class="mt-5 p-4">
<h2 class="h2 d-block mx-auto text-center">Choose Your Media</h2>
<div class="media-container container mt-5">
<ul class="row">
<poster @make-selection="setSrc" v-for="(element, index) in mediaelements"
:src="element.src"
:type="element.type"
:name="element.name"
:isvideo="element.isvideo"
:isaudio="element.isaudio"
:key="index">
</poster>
</ul>
</div>
</section>
<section v-if="player" class="player container-fluid">
<h2 class="sr-only">Media Player</h2>
<div v-if="media.active" class="active-media mt-4 container-fluid">
<div class="col">
<h3 class="h3 text-center">{{ mediatype }}</h3>
<h4 class="h4 text-center">{{ medianame }}</h4>
<video v-if="video" v-on:timeupdate="updateProgress" ref="mediaEl" class="media mt-3 d-block mx-auto" role="video">
<source :src="'video/' + mediasrc + '.mp4'" type="video/mp4">
<source :src="'video/' + mediasrc + '.webm'" type="video/webm">
<track kind="captions" :src="'video/' + mediasrc + '.vtt'">
</video>
<audio v-if="audio" ref="mediaEl" class="media d-block mt-5 mx-auto" controls role="audio">
<source :src="'audio/' + mediasrc + '.mp3'" type="audio/mpeg">
<source :src="'audio/' + mediasrc + '.ogg'" type="audio/ogg">
</audio>
<progress v-show="video" ref="progress" id="progress" value="0" aria-label="progress bar" role="progressbar"></progress>
</div>
</div>
<div class="controls d-flex justify-content-center mt-4 mb-4">
<i v-if="media.paused" @click="playPauseMedia" @keyup.enter="playPauseMedia" tabindex="0" class="icon fas fa-pause mr-2" aria-label="pause" role="button"></i>
<i v-else @click="playPauseMedia" @keyup.enter="playPauseMedia" tabindex="0" class="icon fas fa-play mr-2" aria-label="play" role="button"></i>
<i @click="stopMedia" @keyup.enter="stopMedia" tabindex="0" class="icon fas fa-stop mr-2" aria-label="stop"></i>
<i @click="muteMedia" @keyup.enter="muteMedia" v-if="media.muted" tabindex="0" class="icon fas fa-volume-down mr-2" aria-label="unmute" role="button"></i>
<i @click="muteMedia" @keyup.enter="muteMedia" v-else tabindex="0" class="icon fas fa-volume-mute mr-2" aria-label="mute" role="button"></i>
<i @click="toggleCaptions" @keyup.enter="toggleCaptions" v-if="video" tabindex="0" class="icon fas fa-closed-captioning" aria-label="closed captions" role="button"></i>
<button v-if="audio" @click="viewTranscript" @keyup.enter="viewTranscript" class="ml-3 py-2 px-4" tabindex="0" role="button">transcript</button>
</div>
<p class="transcript" :class="{'view':transcript.view}">
You and me<br>
We used to be together<br>
Every day together always<br>
I really feel<br>
That I'm losing my best friend<br>
I can't believe this could be the end<br>
It looks as though you're letting go<br>
And if it's real<br>
Well I don't want to know<br>
Don't speak<br>
I know just what you're saying<br>
So please stop explaining<br>
Don't tell me 'cause it hurts<br>
Don't speak<br>
I know what you're thinking<br>
I don't need your reasons<br>
Don't tell me 'cause it hurts<br>
Our memories<br>
They can be inviting<br>
But some are altogether mighty frightening<br>
As we die, both you and I<br>
With my head in my hands I sit and cry<br>
Don't speak<br>
I know just what you're saying<br>
So please stop explaining<br>
Don't tell me 'cause it hurts<br>
(No, no, no) Don't speak<br>
I know what you're thinking<br>
And I don't need your reasons<br>
Don't tell me 'cause it hurts<br>
It's all…<br>
</p>
</section>
</main>
<footer class="footer container-fluid p-4 mt-5">
<h2 class="sr-only">Main Footer</h2>
<p class="text-center">© M Media Player 2020.</p>
</footer>
</div>
<script defer src="js/main.js"></script>
</body>
</html>