Skip to content

feat: add mpvKT support for Android#1570

Closed
Dhairya3391 wants to merge 6 commits intopystardust:masterfrom
Dhairya3391:feature/mpvkt-support
Closed

feat: add mpvKT support for Android#1570
Dhairya3391 wants to merge 6 commits intopystardust:masterfrom
Dhairya3391:feature/mpvkt-support

Conversation

@Dhairya3391
Copy link
Contributor

This PR adds support for mpvKT player on Android devices as requested in issue #1564.

Changes made:

  • Added android_mpvkt player function implementation with correct package name and activity
  • Added --mpvkt command line option that only works on Android platforms
  • Updated help documentation with mpvKT option and example usage
  • Added note about disabling "Save position on quit" in mpvKT settings to avoid resuming from previous episodes
  • The implementation follows the same pattern as existing Android players (mpv and VLC)

Fixes #1564

- Added android_mpvkt player function implementation
- Added --mpvkt command line option
- Updated help documentation with mpvKT option and example usage
- mpvKT is only available on Android platforms
- Uses the correct package name live.mehiz.mpvkt and MainActivity

Fixes pystardust#1564
- Changed from live.mehiz.mpvkt/.MainActivity to live.mehiz.mpvkt/.ui.player.PlayerActivity
- This is the correct activity that handles video playback in mpvKT
- Fixes the issue where mpvKT was opening but not playing the video
- Added note to disable 'Save position on quit' in mpvKT settings
- This prevents episodes from resuming from previous playback positions
- Helps ensure each episode starts from the beginning when using mpvKT
@Dhairya3391 Dhairya3391 requested a review from Derisis13 as a code owner October 5, 2025 06:33
@Dhairya3391 Dhairya3391 changed the title Add mpvKT support for Android feat: add mpvKT support for Android Oct 5, 2025
- Apply proper indentation formatting to pass CI checks
- Maintain all mpvKT functionality while ensuring code style consistency
- Fixes shellcheck and shfmt CI failures
- Fixed printf format string argument count mismatch in help_info function
- Ensure proper number of arguments match the %s placeholders
- Addresses shellcheck SC2183 warning to pass CI checks
- Format code with shfmt using 4-space indentation to pass CI checks
- Ensure consistent code style throughout the script
- Fix any remaining formatting issues that were causing CI to fail

Fixes CI failures in PR pystardust#1570
@port19x
Copy link
Collaborator

port19x commented Oct 6, 2025

We're not adding another random mpv frontend.
Use the ANI_CLI_PLAYER environment variable if you want to use one.

@port19x port19x closed this Oct 6, 2025
@tisupe
Copy link

tisupe commented Oct 22, 2025

anyone else wondering to use another player, export this in shell

export ANI_CLI_PLAYER="nohup am start --user 0 -a android.intent.action.VIEW -n live.mehiz.mpvkt/.ui.player.PlayerActivity -d"

@CoolnsX
Copy link
Collaborator

CoolnsX commented Oct 22, 2025

U don't need nohup in case of am start that command just pass the uri to application and terminates itself

@tisupe
Copy link

tisupe commented Oct 22, 2025

anyone else wondering to use another player, export this in shell

export ANI_CLI_PLAYER="nohup am start --user 0 -a android.intent.action.VIEW -n live.mehiz.mpvkt/.ui.player.PlayerActivity -d"

thanks mori.zen

do not bother this doesnt work, jst results in endless buffering.

@tisupe
Copy link

tisupe commented Oct 22, 2025

We're not adding another random mpv frontend. Use the ANI_CLI_PLAYER environment variable if you want to use one.

Not jst another, the only other mpv frontend for android with an ui a sane human can look at. Please consider adding it (。・´д`・。).

@Dhairya3391 Dhairya3391 deleted the feature/mpvkt-support branch October 31, 2025 16:53
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.

Support for mpvKT on android

4 participants