mirror of
https://github.com/yuliskov/SmartTube.git
synced 2026-02-10 00:30:18 -06:00
player: stream end fix; pixel aspect settings
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user