Merge pull request 'Fix android build' (#7) from volodymyr/fix-android-build into feat/shaka
Reviewed-on: #7 Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
This commit is contained in:
commit
bd64379837
@ -533,12 +533,21 @@ public class ReactExoplayerView extends FrameLayout implements
|
|||||||
|
|
||||||
builder.setSingleChoiceItems(speedOptions, selectedSpeedIndex, (dialog, which) -> {
|
builder.setSingleChoiceItems(speedOptions, selectedSpeedIndex, (dialog, which) -> {
|
||||||
selectedSpeedIndex = which;
|
selectedSpeedIndex = which;
|
||||||
float speed = switch (which) {
|
float speed;
|
||||||
case 0 -> 0.5f;
|
switch (which) {
|
||||||
case 2 -> 1.5f;
|
case 0:
|
||||||
case 3 -> 2.0f;
|
speed = 0.5f;
|
||||||
default -> 1.0f;
|
break;
|
||||||
};
|
case 1:
|
||||||
|
speed = 1.0f;
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
speed = 1.5f;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
speed = 1.0f;
|
||||||
|
break;
|
||||||
|
}
|
||||||
setRateModifier(speed);
|
setRateModifier(speed);
|
||||||
});
|
});
|
||||||
builder.show();
|
builder.show();
|
||||||
|
Loading…
Reference in New Issue
Block a user