MyBB Requests

Embed an HLS Stream

Submitted by djmokhtar, , Thread ID: 138998

Thread Closed
djmokhtar
Lurker
Level:
0
Reputation:
0
Posts:
2
Likes:
0
Credits:
3
02-08-2019, 12:17 PM
This post was last modified: 02-08-2019, 12:18 PM by djmokhtar
#1
Hello
I need MyCode to play m3u8 url in my forum . the following code works fine in the html file

PHP Code:
<video id="video" width="800" height="600" controls autoplay 
class="videoCentered"></video>
<
script src="https://cdn.jsdelivr.net/hls.js/latest/hls.js"></script>
<
script>
 if(
Hls.isSupported()) {
  var 
video document.getElementById('video');
  var 
hls = new Hls({ autoStartLoad:false });
  
hls.loadSource('https://nn.geo.joj.sk/live/hls/jojplus-360.m3u8');
  
hls.attachMedia(video);
hls.startLoad(1);
  
hls.on(Hls.Events.MANIFEST_PARSED,function() {
 
hls.startLoad(20);
   
video.play();
 });
 }
</
script

its works well in the admin panel but it does not work on the forum
I tested even with a fresh version of MyBB on localhost .

RE: Embed an HLS Stream

b7347878
Novice
Level:
0
Reputation:
0
Posts:
24
Likes:
1
Credits:
11
11-08-2019, 10:43 AM
#2
Get html in posts and you can put html in your post. You can chose which group can use html in posts.

Users browsing this thread: 1 Guest(s)