-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlive.php
35 lines (32 loc) · 896 Bytes
/
live.php
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
<?php include_once "navbar.php" ?>
<div class="container">
<div class="row-md" id="player">
<video-js id=vid1 width="512" height="288" class="vjs-default-skin" controls poster="img/livestreaming_thumbnail.jpg" />
</div>
<!-- <div class="alert-danger" id="message" hidden>
Bideoa ezin izan da erreproduzitu.
</div> -->
<div class="row mt-4">
<p>Live Streaminga abiarazteko, streaming egin ezazu hurrengo zerbitzarira:</p>
</div>
<div class="row">
<pre>
server: rtmp://flixnet.cf:1935/live
key: my-stream-key
</pre>
</div>
</div>
<script>
var player = videojs('vid1', {
errorDisplay: false
});
player.src({
src: 'live/my-stream-key/index.m3u8',
type: 'application/x-mpegURL',
withCredentials: true
});
// player.on("error", function() {
// $("#message").show();
// })
</script>
<?php include_once "footer.php" ?>