Skip to content

Should the WebWorker be enabled also for fMp4? #5977

Answered by robwalch
phloxic asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @phloxic,

That really depends on the content and platform you are running on. Message event roundtrip to and from workers can introduce latency, but at least parsing of the media does not block UI operations.

Subtitles segments (VTT) are never sent to the worker. Only audio and video segments are sent to the transmuxer for parsing. Even fragmented mp4 are subject to parsing (mp4 trac start and duration, SEI/emsg/captions).

We haven't experimented with a more dynamic worker mode where fragment stats are analyzed, and a decision to demux sync or async is made in real-time, based on throughput and segment bitrate.

It also could be beneficial for all network activity to be handled in the w…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by phloxic
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants