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

This adds a media_player_keep_if_same setting to ds::ui::MediaPlayer… #105

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

paulhoux
Copy link
Contributor

@paulhoux paulhoux commented Mar 7, 2024

…allowing you to keep the current resource when loading the same media.

This is useful if you have a sequence of templates, each using the same background media. The background media would continue to show uninterrupted.

…r, allowing you to keep the current resource when loading the same media.

This is useful if you have a sequence of templates, each using the same background media. The background media would continue to show uninterrupted.
Copy link
Contributor

@s133p s133p left a comment

Choose a reason for hiding this comment

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

Just the small note about checking for new crops, otherwise I'm happy to merge this

if (mInitialized) uninitialize();
if (mInitialized) {
// If the resource is the same, don't do anything.
if (mMediaViewerSettings.mKeepIfSame && reccy.getAbsoluteFilePath() == mResource.getAbsoluteFilePath()) return;
Copy link
Contributor

Choose a reason for hiding this comment

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

In addition to checking the path you'll need to confirm if the cropping is the same for images here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good one!

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.

None yet

2 participants