Reputation: 11
I study android.
How can i calculate and predict a time that is video buffering when use video streaming.
It will calculate time when showing video streaming.(ex youtube)
How catch a point of start and end streaming.
How catch a point of start and end buffering.
Thanks for your help.
Upvotes: 1
Views: 201
Reputation: 12719
You can use onBufferingUpdate to catch buffer percantage
public void onBufferingUpdate(MediaPlayer arg0, int percent) {
Log.d(TAG, "onBufferingUpdate percent:" + percent);
}
Upvotes: 1
Reputation: 362
Use a Timer
object? Android Timer and make it increment an object every 1000 ms.
Upvotes: 0