fix(android): ensure rate is never set to 0 (#3593)
* fix(android): ensure rate is never set to 0 --------- Co-authored-by: Olivier Bouillet <olivier@OrdinateOlivier.lan>
This commit is contained in:
@@ -1903,6 +1903,11 @@ public class ReactExoplayerView extends FrameLayout implements
|
||||
}
|
||||
|
||||
public void setRateModifier(float newRate) {
|
||||
if (newRate <= 0) {
|
||||
DebugLog.w(TAG, "cannot set rate <= 0");
|
||||
return;
|
||||
}
|
||||
|
||||
rate = newRate;
|
||||
|
||||
if (player != null) {
|
||||
|
Reference in New Issue
Block a user