Exoplayer: how can I check buffer size after buffering?

Created on 19 Dec 2017  路  4Comments  路  Source: google/ExoPlayer

Is there a way to check the size of the buffer after reading it from the Exoplayer?

question

All 4 comments

Does Player.getBufferedPosition() provide the information you need? If not, please could you elaborate on which buffer you're talking about, and what you mean by reading it?

Thank you for answer :-). But, It is not the answer I wanted.
This is my question:
When max_buffer_ms, min_buffer_ms, and playback_buffer_ms are fixed in the exo-player, the server loads the chunks for a same amount of time regardless of the video quality.
I am wondering how to obtain the physical size of the chunks read at this time
(ex 240p - > 180kb, 360-> 300kb ... 1080p ->2.1MB )

When you set up your adaptive media source you should be able to pass in a AdaptiveMediaSourceEventListener to the media source. This listener gets notifications whenever a load starts, ends, or fails. And it includes all times, number of loaded bytes etc.

Thank you for your help! Have a nice day :-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ufosek picture Ufosek  路  3Comments

mkaflowski picture mkaflowski  路  3Comments

arjun-redspace picture arjun-redspace  路  3Comments

qeadsw picture qeadsw  路  3Comments

petitTrung picture petitTrung  路  3Comments