Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setting for delay of start of video #4025

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

JagerSprinkles
Copy link

Changes

This updates the delay when starting the video player to be user configurable. Having this as configurable will help people who have displays that are slow to change resolution or refresh rate. I have two displays and a soundbar that take longer than the 0.75 seconds default to change format or mode. With this setting the first few seconds of the video and audio are not missed.

Issues

None I can find.

@@ -646,7 +646,7 @@ public void run() {
if (mVideoManager != null)
mVideoManager.start();
}
}, 750);
}, userPreferences.getValue().get(UserPreferences.Companion.getVideoStartDelay()));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment above (about why this is delayed) is inaccurate and could be removed. Additionally a fast-path when there is no delay would be nice to have.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By fast-path I assumed you meant to add a condition to skip the mHandler.postDelayed logic if the delay is set to 0. I have added a check for this.

app/src/main/res/values/strings.xml Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants