-1

I have learned about livestream using files .flv, the answer is that it is not supported, or must be converted to mp4, or webm. Is there any way to directly handle the livestream of the file .flv, if you use html5 or reactjs, even better.

datnv
  • 15
  • 3

1 Answers1

2

For H5, you could use flv.js to covert HTTP-FLV stream to fMP4, feed data to video tag by MSE. It works very well on PC/Android/iPadOS H5, except iOS H5. For more information about MSE, please see here and here.

For iOS H5, WASM is a possible solution, but it seems not easy. And there is no proper open-source project, for example:

  • WasmVideoPlayer is built by FFmpeg+WASM, which is able to play HTTP-FLV on iOS H5, but the LICENSE is GPLv3 and performance is not good.
  • EasyPlayer also supports HTTP-FLV on iOS H5, but it's not open-source, there is a libDecoder.wasm which is about 2MB, and there is no LICENSE about the project.

For iOS native, ijkplayer is a choice, wrapped FFmpeg.

ChrisF
  • 134,786
  • 31
  • 255
  • 325
Winlin
  • 1,136
  • 6
  • 25