MediaSource API and mp4

前端 未结 4 808
夕颜
夕颜 2020-12-08 12:20

I followed this example from Html5Rocks.com, that is using the MediaSource API and a .webm video. I tried the example with another .webm video and it was working, but when I

4条回答
  •  天命终不由人
    2020-12-08 13:12

    As @Steven mentioned, use MP4Box to create the dashed MP4 file and try with Chrome canary m23 build (media source api enabled). You need to take care of the following:

    1. There should be a single fragment per segment (-dash -frag )
    2. The segment should start with SAP (-rap)
    3. Modify the demo's script such that it appends segment after segment. Splitting into equal size chunks as in the case of webm does not work for ISO BMFF. You can use mpd file generated by MP4Box to know individual segment sizes.

提交回复
热议问题