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

STATUS_SKIP_FORWARD event is not being reported in iOS #56

Open
timstoute opened this issue Aug 12, 2022 · 3 comments
Open

STATUS_SKIP_FORWARD event is not being reported in iOS #56

timstoute opened this issue Aug 12, 2022 · 3 comments

Comments

@timstoute
Copy link
Contributor

timstoute commented Aug 12, 2022

My tests in iOS are finding that the STATUS_SKIP_FORWARD status event is not being fired when playNext function is called in RmxAudioPlayer.swift (approx. line 316)

It appears that the bool var isCommand is false even though true is passed to the playNext function. When isCommand is false, the line:

onStatus(.rmx_STATUS_SKIP_FORWARD, trackId: playerItem?.trackId, param: param)

will not be called.

@timstoute timstoute changed the title STATUS_SKIP_FORWARD event is not being reported STATUS_SKIP_FORWARD event is not being reported in iOS Aug 12, 2022
@phiamo
Copy link
Owner

phiamo commented Aug 14, 2022

hmm are you calling the playNext from your code or triggering it from the control center?
i am at the moment unsure if the isCommand if case is needed at all

@timstoute
Copy link
Contributor Author

I am calling playNext from code. I see that when playNext is called from the control center the STATUS_SKIP_FORWARD event is reported. It seems to me that the isCommand if case is not needed.

@ronildo
Copy link
Contributor

ronildo commented Sep 27, 2022

Could this line be the issue?

https://github.com/phiamo/capacitor-plugin-playlist/blob/main/src/web.ts#L197

The status should be this: RMX_STATUS_SKIP_FORWARD instead of RMX_STATUS_SKIP_BACK

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

3 participants