Can HTML5 video player play m3u8 playlist (HLS)?

How can I play the HLS stream in an HTML5 Video.JS player? I find examples where this source is:

<source src="http://server/hls/stream007.m3u8" type='video/mp4' />

<source src="http://server/hls/stream007.m3u8" type='application/vnd.apple.mpegurl' />

<source src="http://server/hls/stream007.m3u8" type='application/x-mpegURL' />

Can someone help me?

+3
source share
4 answers

To use HLS in browsers that support it (Safari, iOS, some androids), use "application / x-mpegURL". You still need to provide mp4 backup for browsers that do not support HLS. HLS support in other browsers is currently working.

0
source

I know this is an old post, but what could you do if you want a buffer and follow these steps.

.m3u8, . mp4 ffmpeg, . , .

0

You can use a Kaltura player that plays HLS using a flash component that works with IE8 and uses native video playback on ios and Android 4+ devices.

0
source

just use mangui custom videojs flash player

https://github.com/mangui/video-js-swf

0
source

All Articles