player: stream end fix; pixel aspect settings

This commit is contained in:
Yuriy Liskov
2022-08-01 18:37:49 +03:00
parent dbd45bffc6
commit fc65a3fcb1
2 changed files with 5 additions and 1 deletions

View File

@@ -59,8 +59,10 @@ public class VideoLoaderManager extends PlayerEventListenerHelper {
if (getController() != null &&
getController().getVideo() != null &&
getController().getVideo().isLive) {
getController().showSuggestions(true);
// Do rewind ten sec to stop buffering
getController().setPositionMs(getController().getPositionMs() - 10_000);
getController().setPlayWhenReady(false);
getController().showControls(true);
}
};

View File

@@ -378,6 +378,8 @@ public class PlayerSettingsPresenter extends BasePresenter<Void> {
ArrayList<Pair<String, Float>> pairs = new ArrayList<>();
pairs.add(new Pair<>("1:1 (16:9 monitor)", 1.0f));
pairs.add(new Pair<>("1.11111:1 (16:10 monitor)", 1.11111f));
pairs.add(new Pair<>("1.3333:1 (4:3 monitor)", 1.3333f));
pairs.add(new Pair<>("0.7619:1 (21:9 monitor)", 0.7619f));
for (Pair<String, Float> pair : pairs) {
options.add(UiOptionItem.from(pair.first,