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

Player skip buttons #57

Open
ronildo opened this issue Aug 26, 2022 · 5 comments
Open

Player skip buttons #57

ronildo opened this issue Aug 26, 2022 · 5 comments

Comments

@ronildo
Copy link
Contributor

ronildo commented Aug 26, 2022

This is just a question, not an issue.
Is there a way to add the skip buttons like in the print screen below?

AE40EEF9-40BF-4629-8273-777DFD3633D1

thanks for the awesome work, this plugin will fit like a glove for me.

@timstoute
Copy link
Contributor

In my experience you would need to use the RmxAudioPlayer seek function, and do some maths with the available values from status events such as playbackPercent which is included in the RMXSTATUS_PLAYBACK_POSITION status event, and duration which is included in the RMXSTATUS_DURATION status event.

@ronildo
Copy link
Contributor Author

ronildo commented Aug 26, 2022

Thanks for replying Tim, I’ll see if I can find any information on how to add the buttons, thank you!

@PavelShvets-dev
Copy link

@ronildo hi! That would be a great refinement and it seems to be not too hard. For iOS we need to add new optional commands here

RmxAudioPlayer.swift: initializeMPCommandCenter

seekBackwardCommand
seekForwardComand

https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter

And then we need to register new events outside.

Android version looks harder for me…🙂

Anyway, I will be glad to help the development of this function

@ronildo
Copy link
Contributor Author

ronildo commented Aug 26, 2022

Hi @PavelShvets-dev thanks for the reply, I wish I could help, I only know JavaScript (yet). I wish I could help.

thanks for the links, I will see if I can implement this on my app.

@mariusbolik
Copy link

Yes, this would be a helpful feature!
capacitor-music-controls-plugin-new already has this type of functionality. Maybe this could be helpful.

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

No branches or pull requests

4 participants