2021-06-02 23:25:21 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Livestream</title>
|
|
|
|
<link rel="icon" href="assets/favicon.ico">
|
2021-07-31 00:44:42 +02:00
|
|
|
<link rel="stylesheet" href="assets/style.css">
|
|
|
|
<script type="text/javascript" crossorigin="anonymous" src="https://cdn.jsdelivr.net/npm/clappr/dist/clappr.min.js"></script>
|
|
|
|
<script type="text/javascript" crossorigin="anonymous" src="https://cdn.jsdelivr.net/npm/clappr-stats/dist/clappr-stats.min.js"></script>
|
|
|
|
<script type="text/javascript" crossorigin="anonymous" src="https://cdn.jsdelivr.net/npm/clappr-nerd-stats/dist/clappr-nerd-stats.min.js"></script>
|
|
|
|
<script type="text/javascript" crossorigin="anonymous" src="https://cdn.jsdelivr.net/npm/clappr-pip-plugin/dist/clappr-pip-plugin.js"></script>
|
|
|
|
</head>
|
2021-06-02 23:25:21 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
|
|
|
<h1>Start watching</h1>
|
|
|
|
<p>Click on the play button to start watching. If you see an error, the stream is not live yet. In this case, try again a little later.</p>
|
|
|
|
|
|
|
|
<div id="player"></div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
<script>
|
2021-07-31 00:44:42 +02:00
|
|
|
new Clappr.Player({
|
2021-06-02 23:25:21 +02:00
|
|
|
|
|
|
|
//** Standard clappr.io Options **
|
|
|
|
// Use custom source
|
|
|
|
sources: ["hls/live.m3u8"],
|
|
|
|
|
2021-07-31 00:44:42 +02:00
|
|
|
// Plugins
|
|
|
|
plugins: [ClapprNerdStats, ClapprStats, ClapprPIPPlugin],
|
|
|
|
clapprNerdStats: {
|
|
|
|
iconPosition: 'none'
|
|
|
|
},
|
|
|
|
|
|
|
|
// Disable m3u8 preload to prevent error on page load
|
|
|
|
hlsPlayback: {
|
|
|
|
preload: false
|
|
|
|
},
|
|
|
|
|
2021-06-02 23:25:21 +02:00
|
|
|
// Set a custom poster
|
|
|
|
poster: "assets/backdrop.jpg",
|
|
|
|
|
|
|
|
// Assign parent by id
|
2021-07-31 00:44:42 +02:00
|
|
|
parentId: "#player",
|
|
|
|
|
|
|
|
// Set dimensions and media control delay
|
|
|
|
height: "100%",
|
|
|
|
width: "100%",
|
|
|
|
hideMediaControlDelay: 1000
|
|
|
|
})
|
2021-06-02 23:25:21 +02:00
|
|
|
</script>
|
|
|
|
</html>
|