MPEG-DASH video stream with just single mp4 file

前端 未结 4 1269
野的像风
野的像风 2021-02-06 18:05

I\'m researching for a week to find a simple and platform independent method to stream a mp4 file to any browser. In case of browser incompatibility progressive stream(direct do

4条回答
  •  鱼传尺愫
    2021-02-06 18:51

    Yes there is a solution. dash.js only plays fragmented mp4s that have been packaged. However, this project from Cyril at Telecom Paristech will do what you want:

    https://github.com/gpac/mp4box.js/

    This is a js version of mp4box. What it can do is on-the-fly conversion of your non-fragmented mp4 in to media fragments which can then be fed to a MSE sourceBuffer. They have a sample player that does this which you can copy:

    http://download.tsi.telecom-paristech.fr/gpac/mp4box.js/

    Cheers Will

提交回复
热议问题