Add buttons for soccer world championship 2018

This commit is contained in:
Martin Müller 2018-06-20 16:20:34 +02:00
parent 5fcf58ccb2
commit 834966bbe8
2 changed files with 10 additions and 0 deletions

View File

@ -262,3 +262,11 @@ function killAllAudio() {
ajaxRequest("/?killvideo=yes"); ajaxRequest("/?killvideo=yes");
} }
} }
function wm2018(channel) {
if (channel === "ard") {
ajaxRequest("/?video="+encodeURI("https://www.ardmediathek.de/tv/live?kanal=208"));
} else if (channel === "zdf") {
ajaxRequest("/?video="+encodeURI("https://www.zdf.de/sender/zdf/zdf-live-beitrag-100.html"));
}
}

View File

@ -60,6 +60,8 @@
<form> <form>
<label for="video">Stream URL</label> <label for="video">Stream URL</label>
<input id="streaming-url" type="text" name="video" placeholder="paste stream url here..." /> <input id="streaming-url" type="text" name="video" placeholder="paste stream url here..." />
<button onclick="wm2018('ard');">⚽️ WM 2018: ARD</button>
<button onclick="wm2018('zdf');">⚽️ WM 2018: ZDF</button>
</form> </form>
<button onclick="playStream();">Play!</button> <button onclick="playStream();">Play!</button>
</div> </div>