BaseParse.setAverageBitrate

Optionally sets the average bitrate detected in media (if non-zero), e.g. based on metadata, as it will be posted to the application.

By default, announced average bitrate is estimated. The average bitrate is used to estimate the total duration of the stream and to estimate a seek position, if there's no index and the format is syncable (see BaseParse.setSyncable).

class BaseParse
void
setAverageBitrate
(
uint bitrate
)

Parameters

bitrate uint

average bitrate in bits/second