-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get the current bitrate and resolution of HLS Video? #646
Comments
As I know yoy should listen to DefaultBandwidthMeter . It is shown in
|
but its never come on onBandwidthSample .. unable to fetch bitrate |
As I can see through , hlsRenderBuilder has defaultBandwidthMeter
|
+1 |
You should be listening to DemoPlayer.InfoListener.onVideoFormatEnabled. The format is passed to that method whenever the selection changes. Format.bitrate is the bitrate as declared in the master playlist. Format.width and Format.height are the dimensions as declared in the master playlist by RESOLUTION tags. Note that if RESOLUTION tags are omitted from the master playlist then these fields may be set to -1. You can also use DemoPlayer.Listener.onVideoSizeChanged to determine when the resolution changes. |
@ojw28 How about manual switch the bitrate not auto? |
See #676 |
@ojw28 thanks for the information on how to get the indicated bitrate. How about getting the actual observed bitrate? |
Is it possible to get current bitrate and resolution of playing HLS Video ? when the bit rate is switched and fetch the current bitrate ?
The text was updated successfully, but these errors were encountered: