How to Play HLS in a Browser

Asked 1 years ago, Updated 1 years ago, 132 views

I would like to play HLS in my browser.Safari can play HLS, but I would like to play it in other browsers.
It seems that HLS can be played open source.
https://github.com/mangui/flashls
The collects open sources that HLS can play, but does not play the following two cases:
It may be a bad way to try it, but I would appreciate it if you could let me know if you can play it with this player.

(1) Live Playback
The m3u8 file is as follows:

#EXTM3U
# EXT-X-TARGETDURATION: 10
# EXT-X-MEDIA-SEQUENCE: 8064
# EXTINF: 10,
24_576bd7d6.ts
# EXTINF: 10,
24_576bd7e0.ts
# EXTINF: 10,
24_ 576bd7ea.ts

(*#EXT-X-ENDLIST is missing)

(2) Byte HLS Playback
The contents of the m3u8 are as follows:

#EXTM3U
# EXT-X-TARGETDURATION: 20
#EXT-X-VERSION: 4
# EXT-X-MEDIA-SEQUENCE:0
## EXT-X-PLAYLIST-TYPE: VOD
# EXTINF: 10.01,
#EXT-X-BYTERANGE: 1835632@0
20160404_193000_16.ts
# EXTINF: 10.01,
#EXT-X-BYTERANGE: 1901996@1835632
20160404_193000_16.ts
# EXTINF: 10.01,
#EXT-X-BYTERANGE: 1777540 @3737628
20160404_193000_16.ts
・・・・
# EXT-X-BYTERANGE: 259816 @312737624
20160404_193000_16.ts
# EXT-X-ENDLIST

Thank you for your cooperation.

hls browser

2022-09-30 21:17

1 Answers

MDN has organized support.It can be played in many environments such as Firefox, Safari, Chrome and IE10+.There was also a demo site.


2022-09-30 21:17

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.