Skip to content

Add new feature: Always On Top on the anime player view.#614

Merged
kodjodevf merged 2 commits intokodjodevf:mainfrom
hndrbrm:add_always_on_top_on_anime_player_view
Dec 5, 2025
Merged

Add new feature: Always On Top on the anime player view.#614
kodjodevf merged 2 commits intokodjodevf:mainfrom
hndrbrm:add_always_on_top_on_anime_player_view

Conversation

@hndrbrm
Copy link
Copy Markdown
Contributor

@hndrbrm hndrbrm commented Nov 29, 2025

New Feature:
User could make the player always shown in desktop.

Its not a bug, its a new feature.
I don't know whether its gonna be accepted to the main repo.
Its up to you guys.

I usually playing video while doing something else 😁.
So in my cases, i need this feature.

@hndrbrm
Copy link
Copy Markdown
Contributor Author

hndrbrm commented Nov 29, 2025

Add some working video

Screen.Recording.2025-11-29.at.17.39.15.mov

@Whiskas101
Copy link
Copy Markdown
Contributor

is this compatible on all platforms that mangayomi supports? I am certain iOS and some versions of Android will have trouble with this.

@Whiskas101
Copy link
Copy Markdown
Contributor

Whiskas101 commented Nov 30, 2025

I just checked. This only supports MacOS, Windows and Linux platforms, because of the package that you're introducing.
Here's the support page.

The package you're introducing window_manager, also has a lot of issues on various platforms that it does support.
You can see it has recent issues with Win11 and KDEPlasma, ubuntu 22.04, some Mac versions, and a ton of others!

Lastly, the package itself is under migration to another native implementation, introducing it now could potentially include problems down the line.

@hndrbrm
Copy link
Copy Markdown
Contributor Author

hndrbrm commented Nov 30, 2025

is this compatible on all platforms that mangayomi supports? I am certain iOS and some versions of Android will have trouble with this.

Always-on-top feature only for desktop platform.
I have never seen any app on playstore or appstore that use those kind of feature.
I don't think its necessary for mobile app.

Lastly, the package itself is under migration to another native implementation, introducing it now could potentially include problems down the line.

The package window_manager are already used on mangayomi. I don't know if its gonna migrated to native implementation. I use the existing package on pubspec.yaml to minimize the change.

}

// Whether the platform support AlwaysOnTop feature.
bool _supportAlwaysOnTop() =>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You could've used the variable _isDesktop, defined at line 60, instead.
They are essentially the same

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I just made it more concise, rather using _isDesktop, just make it more concise by making a function that simply stated what platform supported for the feature.

I have bad experience on using variable such as isMobile or isDesktop for some scenario in the past.
In some scenario, i have forced to support only on specific platform.
Its more concise if we define on what platform should a feature supported.

But if you want it too, i could change it to use _isDesktop.

@Whiskas101
Copy link
Copy Markdown
Contributor

I didn't notice that it was already being used. That changes things. Always on top is a common thing for video on android anyways. Youtube does it, and so do many apps that support videos.

Nonetheless, I was only concerned with stability, not the idea. I like the idea and would love to see it as an option.

@hndrbrm
Copy link
Copy Markdown
Contributor Author

hndrbrm commented Dec 1, 2025

I didn't notice that it was already being used. That changes things. Always on top is a common thing for video on android anyways. Youtube does it, and so do many apps that support videos.

Nonetheless, I was only concerned with stability, not the idea. I like the idea and would love to see it as an option.

If not mistaken, its called Picture in Picture (PiP) mode.
But its problematic. The subtitle usually are not shown.
Its common problem on PiP for playing video.

PiP also exist on Desktop (macos).

@Whiskas101
Copy link
Copy Markdown
Contributor

Yeah, it is indeed called picture in picture.

Although, there's some work being done regarding the video player crashing heavily on linux, so this might be a while until it's merged.

@kodjodevf
Copy link
Copy Markdown
Owner

LGTM

@kodjodevf kodjodevf merged commit da7c32f into kodjodevf:main Dec 5, 2025
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.

4 participants