jrebecchi / React-Web-Media-Player

A React Player that can play videos, audio tracks, slideshows, with a customizable design.
https://react-web-media-player.herokuapp.com/
MIT License
30 stars 9 forks source link

Hls support #2

Closed c0b41 closed 5 years ago

c0b41 commented 5 years ago

example usage with https://github.com/dailymotion/hls.js + https://github.com/mingxinstar/react-hls

jrebecchi commented 5 years ago

Hi,

I guess it might be possible because HLS work with an HTML video element. The solution could be to propose a "isHLS" option to the React-Web-Media-Player, and to add the HLS logic in "src/components/Medias/Channels/Video.js" when this option is true.

However, I don't know if the time navigation will work as it is "live streaming". If it is not compatible, adding an option to disable the time navigation could be a workaround.

Regards