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 new custom action #530

Open
wants to merge 3 commits into
base: compose
Choose a base branch
from
Open

Conversation

plksharma30
Copy link

@plksharma30 plksharma30 commented Aug 3, 2023

This pull request aims to enhance the compatibility and functionality of the uamp application by enabling the transmission of custom actions from the main app to connected client apps.

Copy link
Contributor

@SigmanZero SigmanZero left a comment

Choose a reason for hiding this comment

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

Sorry for the delay! I've requested some fixes.

@SigmanZero SigmanZero changed the title Added custom actions to support on wear devices Add new custom action Aug 10, 2023
Copy link
Contributor

@SigmanZero SigmanZero left a comment

Choose a reason for hiding this comment

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

Thank you! Looking much better - I think you're adding the commands in correctly now. Just one last comment about the functionality of each command.

@@ -470,6 +495,16 @@ open class MusicService : MediaLibraryService() {

return Futures.immediateFuture(SessionResult(SessionResult.RESULT_SUCCESS))
}

if (customCommand.customAction == SEEK_BACK) {
exoPlayer.seekBack()
Copy link
Contributor

Choose a reason for hiding this comment

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

These commands are replicating functionality that's already handled by standard commands defined by a Player, which we don't want to encourage (see the note at the end of this section) - could you update these commands to do something different? Here are some ideas:

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