play flv in html

后端 未结 6 1225
梦谈多话
梦谈多话 2020-12-03 03:39

Can anyone give a concise instruction on how I can have a flv play from my html page please?

6条回答
  •  难免孤独
    2020-12-03 04:22

    You can try https://github.com/Bilibili/flv.js

    With flv.js, You'll get:

    • Pure HTML5 + JavaScript Video Player for flv videos
    • Pure HTML5 + JavaScript LiveStream Player for http-flv streams
    • Flawless experience
    • Smaller size than H.264 Videos

    Flv.js utilizes MSE (Media Source Extensions) therefore it'll only be available on Chrome 43+, Firefox but not Apple / iOS Safari.

    Flv.js instantaneously transmuxes flv streams to H.264 streams and then push the H.264 stream to Media Source Extensions. It'll display as a video tag in HTML Element with a blob URL.

提交回复
热议问题