Alexander Tumin
Alexander Tumin

Reputation: 1591

Streaming mp4 live broadcasting video content over websocket to mediasource element

I have a number of questions related to streaming (via websockets) on-air broadcasting h264 video to MediaSource element inside of mp4 container:

Upvotes: 3

Views: 945

Answers (1)

Pablo Montilla
Pablo Montilla

Reputation: 3050

The moov box is the initialization segment and it is required so the decoder knows what it needs to decode, any other boxes should be ignored (never tried to include a fragment at initialization, so maybe that's not allowed) so no need to remove them.

moof and mdat boxes should be appended in a single call (those are the segments), no other boxes are needed. As far as I know timestamp data is included in the moof box, so no need to add anything else.

Basically you are good with a sequence of moov [moof mdat]+.

Upvotes: 2

Related Questions