mirror of
https://github.com/BluemediaGER/nginx-live.git
synced 2024-11-13 23:25:29 +01:00
52 lines
1.9 KiB
HTML
52 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Livestream</title>
|
|
<link rel="icon" href="assets/favicon.ico">
|
|
<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>
|
|
</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>
|
|
new Clappr.Player({
|
|
|
|
//** Standard clappr.io Options **
|
|
// Use custom source
|
|
sources: ["hls/live.m3u8"],
|
|
|
|
// Plugins
|
|
plugins: [ClapprNerdStats, ClapprStats, ClapprPIPPlugin],
|
|
clapprNerdStats: {
|
|
iconPosition: 'none'
|
|
},
|
|
|
|
// Disable m3u8 preload to prevent error on page load
|
|
hlsPlayback: {
|
|
preload: false
|
|
},
|
|
|
|
// Set a custom poster
|
|
poster: "assets/backdrop.jpg",
|
|
|
|
// Assign parent by id
|
|
parentId: "#player",
|
|
|
|
// Set dimensions and media control delay
|
|
height: "100%",
|
|
width: "100%",
|
|
hideMediaControlDelay: 1000
|
|
})
|
|
</script>
|
|
</html> |