playableDuration was not converting the percentage to a decimal

This commit is contained in:
Hampton Maxwell 2018-06-25 12:25:14 -07:00
parent 6b8b16a9df
commit 9c0ddde131

View File

@ -136,7 +136,7 @@ class ReactExoplayerView extends FrameLayout implements
&& player.getPlayWhenReady()
) {
long pos = player.getCurrentPosition();
long bufferedDuration = player.getBufferedPercentage() * player.getDuration();
long bufferedDuration = player.getBufferedPercentage() * player.getDuration() / 100;
eventEmitter.progressChanged(pos, bufferedDuration, player.getDuration());
msg = obtainMessage(SHOW_PROGRESS);
sendMessageDelayed(msg, Math.round(mProgressUpdateInterval));