Embed an HLS Stream
#1
Hello
I need MyCode to play m3u8 url in my forum . the following code works fine in the html file

<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>

Reply
#2
Can anyone convert this code to MyCode?
Reply
#3
In your code https://nn.geo.joj.sk/live/hls/jojplus-360.m3u8 is the source file, is that suppose to be any file from any server?
Soporte en Español

[Image: signature.png]

Discord at omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
Reply
#4
(2019-01-17, 08:45 PM)Omar G. Wrote: In your code https://nn.geo.joj.sk/live/hls/jojplus-360.m3u8 is the source file, is that suppose to be any file from any server?

That is the example
That suppose to be any file from any server Heart
Reply
#5
I'm waiting for your help  Heart Heart
Reply
#6
(2019-01-19, 05:36 PM)DJMOKHTAR Wrote: I'm waiting for your help  Heart Heart

The following might work:
https://community.mybb.com/thread-221672.html
Soporte en Español

[Image: signature.png]

Discord at omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
Reply
#7
(2019-01-25, 08:37 AM)Omar G. Wrote:
(2019-01-19, 05:36 PM)DJMOKHTAR Wrote: I'm waiting for your help  Heart Heart

The following might work:
https://community.mybb.com/thread-221672.html

I tested but unfortunately did not play
   
Reply
#8
(2019-01-25, 12:54 PM)DJMOKHTAR Wrote: I tested but unfortunately did not play

If you try the Test Value the HTML Result matches that of your code.
Soporte en Español

[Image: signature.png]

Discord at omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
Reply
#9
(2019-01-25, 08:38 PM)Omar G. Wrote:
(2019-01-25, 12:54 PM)DJMOKHTAR Wrote: I tested but unfortunately did not play

If you try the Test Value the HTML Result matches that of your code.

It 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 .
Reply
#10
Why doesn't it work? I need more details than what you are giving.
Soporte en Español

[Image: signature.png]

Discord at omar.gonzalez (Omar G.#6117); Telegram at @omarugc;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)