Skip to content

Commit

Permalink
FEC-11963 - if player is paused playbackrate should be reported 0 to …
Browse files Browse the repository at this point in the history
…youbora (#89)

* if player is paused playbackrate should be reported 0 to youbora

* simplify logic

* - Extra space removed

Co-authored-by: Gourav Saxena <[email protected]>
  • Loading branch information
giladna and GouravSna authored Feb 15, 2022
1 parent 9f99d97 commit 91602c1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,10 @@ public Integer getDroppedFrames() {

@Override
public double getPlayrate() {
double currentPlaybackRate = (getPlayer() != null) ? getPlayer().getPlaybackRate() : 1.0;
double currentPlaybackRate = 0;
if (getPlayer() != null && getPlayer().isPlaying()) {
currentPlaybackRate = getPlayer().getPlaybackRate();
}
log.d("getPlayrate currentPlaybackRate = " + currentPlaybackRate + " isNullPlayer = " + (getPlayer() == null));
return currentPlaybackRate;
}
Expand Down

0 comments on commit 91602c1

Please sign in to comment.