-
Notifications
You must be signed in to change notification settings - Fork 0
/
kreta.html
183 lines (163 loc) · 7.47 KB
/
kreta.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
<!DOCTYPE html>
<html>
<head>
<title>Reiseblog | KRETA</title>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<meta name="license" content="https://creativecommons.org/publicdomain/zero/1.0/">
<link href="reise_files/style.css" rel="stylesheet" type="text/css" />
<link href="reise_files/big.png" rel="icon" />
</head>
<body>
<a href="index.html"><img class="logo" src="reise_files/big.png" /></a>
<div class="dropdown">
<button class="dropbtn" onclick="myFunction()"></button>
<div class="dropdown-content" id="myDropdown">
<a href="entermalle.html">MALLE</a>
<a href="contact.html">KONTAKT</a>
</div>
</div>
<div id="space">
<h1 class="section-title">KRETA</h1>
</div>
<div class="image-grid">
<img src="media/kreta/images/small/Small-park.jpg" srcset="
media/kreta/images/small/Small-park.jpg 500w,
media/kreta/images/medium/Medium-park.jpg 1000w,
media/kreta/images/large/Large-park.jpg 1500w,
media/kreta/images/large/large-retina/Large-park.jpg 2x
" sizes="(max-width: 600px) 500px, (max-width: 1200px) 1000px, 1500px" alt="Park image">
<img src="media/kreta/images/small/Small-strand.jpg" srcset="
media/kreta/images/small/Small-strand.jpg 500w,
media/kreta/images/medium/Medium-strand.jpg 1000w,
media/kreta/images/large/Large-strand.jpg 1500w,
media/kreta/images/large/large-retina/Large-strand.jpg 2x
" sizes="(max-width: 600px) 500px, (max-width: 1200px) 1000px, 1500px" alt="Strand image">
<img src="media/kreta/images/small/Small-kirche.jpg" srcset="
media/kreta/images/small/Small-kirche.jpg 500w,
media/kreta/images/medium/Medium-kirche.jpg 1000w,
media/kreta/images/large/Large-kirche.jpg 1500w,
media/kreta/images/large/large-retina/Large-kirche.jpg 2x
" sizes="(max-width: 600px) 500px, (max-width: 1200px) 1000px, 1500px" alt="Kirche image">
<div class="video-container">
<video id="videoKeller" controls>
<source src="media/kreta/videos/keller_final.mp4" type="video/mp4">
<track src="media/kreta/videos/keller_subtitle_de.vtt" kind="subtitles" srclang="de" label="German"
default>
<track src="media/kreta/videos/keller_subtitle_en.vtt" kind="subtitles" srclang="en" label="English">
<track src="media/kreta/videos/keller_subtitle_fr.vtt" kind="subtitles" srclang="fr" label="French">
</video>
<div id="videoKellerSubtitles">
<a href="javascript:void(0);" class="dash-btn" onclick="hideSubtitles()">Hide</a>
<a href="javascript:void(0);" class="dash-btn"
onclick="switchSubtitleLanguage('videoKeller', 'de')">German</a>
<a href="javascript:void(0);" class="dash-btn"
onclick="switchSubtitleLanguage('videoKeller', 'en')">English</a>
<a href="javascript:void(0);" class="dash-btn"
onclick="switchSubtitleLanguage('videoKeller', 'fr')">French</a>
</div>
</div>
<div class="video-container">
<video id="videoLandung" controls></video>
<div id="videoLandungButtons">
<a class="dash-btn" onclick="playVideo('videoLandung')">Play</a>
<a class="dash-btn" onclick="pauseVideo('videoLandung')">Pause</a>
<a class="dash-btn" onclick="volumeUp('videoLandung')">Volume Up</a>
<a class="dash-btn" onclick="volumeDown('videoLandung')">Volume Down</a>
</div>
</div>
<div class="video-container">
<video id="videoOstern" controls></video>
<div id="videoOsternAudio">
<a class="dash-btn" onclick="switchAudioTrack(playerOstern)">Switch Track</a>
</div>
</div>
</div>
</div>
<div id="particles-js">
<canvas class="particles-js-canvas-el" height="975" style="width: 100%; height: 100%;" width="1680"></canvas>
</div>
<div class="footer">
<a href="index.html">
©
<script>
document.write(new Date().getFullYear());
</script> Gebaut von Kai Lauber & Robin Ruzza
</a>
<br />
<a href="impressum.html">Impressum</a>
<br />
<a rel="license" href="https://creativecommons.org/publicdomain/zero/1.0/">Diese Arbeit ist lizenziert unter einer Creative
Commons CC0 1.0 Universell (CC0 1.0) Public Domain Dedication Lizenz.</a>
</div>
<!-- Scripts -->
<script src="reise_files/particles.js" type="text/javascript"></script>
<script src="reise_files/app.js" type="text/javascript"></script>
<script src="reise_files/menu.js" type="text/javascript"></script>
<script src="https://cdn.dashjs.org/latest/dash.all.min.js"></script>
<script>
function playVideo(videoId) {
var video = document.getElementById(videoId);
video.play();
}
function pauseVideo(videoId) {
var video = document.getElementById(videoId);
video.pause();
}
function volumeUp(videoId) {
var video = document.getElementById(videoId);
if (video.volume < 1) {
video.volume += 0.1;
}
}
function volumeDown(videoId) {
var video = document.getElementById(videoId);
if (video.volume > 0) {
video.volume -= 0.1;
}
}
function switchSubtitleLanguage(videoId, language) {
var video = document.querySelector("#" + videoId);
var tracks = video.textTracks;
for (var i = 0; i < tracks.length; i++) {
var track = tracks[i];
track.mode = 'disabled';
if (track.language === language) {
track.mode = 'showing';
}
}
}
function hideSubtitles() {
var video = document.getElementById('videoKeller');
var tracks = video.textTracks;
for (var i = 0; i < tracks.length; i++) {
var track = tracks[i];
track.mode = 'disabled';
}
}
function switchAudioTrack(player) {
var audioTracks = player.getTracksFor('audio');
if (audioTracks.length >= 2) {
var currentTrackId = player.getCurrentTrackFor('audio').id;
var otherTrack = audioTracks.find(function (track) {
return track.id !== currentTrackId;
});
if (otherTrack) {
player.setCurrentTrack(otherTrack);
}
}
}
window.onload = function () {
var video = document.getElementById('videoKeller');
video.load();
hideSubtitles();
var urlOstern = 'media/kreta/videos/ostern/manifest/manifest.mpd';
var urlLandung = 'media/kreta/videos/landung/landung_final.mpd';
playerOstern = dashjs.MediaPlayer().create();
playerLandung = dashjs.MediaPlayer().create();
playerOstern.initialize(document.querySelector("#videoOstern"), urlOstern, false);
playerLandung.initialize(document.querySelector("#videoLandung"), urlLandung, false);
}
</script>
</body>
</html>