Experimental Player: PrevChapter/NextChapter are not supported

Hi!

I’ve been testing the new player for the last couple of weeks, and overall it looks very promising.

There is a minor inconvenience: I noticed, that it does not support PrevChapter/NextChapter MediaRemote commands. I know it’s not possible to invoke them using the standard remote, but still, they work perfectly in the old player, and it would be really nice if I could use them in the new one.

Here is what it looks like in the logs:

default	00:55:53.940398 +0100	Plex	Got Command = <NextChapter>, SenderDevice = <Living Room>, SenderBundleIdentifier = <com.apple.mediaremoted>, SenderPID = <26>, commandID = <C0CBBC5B-500B-467D-B608-F86E0845C147>, remote control interface = <(null)>, appOptions = <0>, options = <{
}> for path origin-Living Room-1280262988/client-com.plexapp.plex-5029/player-MediaRemote-DefaultPlayer
default	00:55:53.940606 +0100	Plex	Resolved playerPath to origin-Living Room-1280262988/client-com.plexapp.plex-5029/player-MediaRemote-DefaultPlayer for command C0CBBC5B-500B-467D-B608-F86E0845C147
default	00:55:53.940924 +0100	mediaremoted	Response: Command = <NextChapter>, SenderDevice = <Living Room>, SenderBundleIdentifier = <com.apple.mediaremoted>, SenderPID = <26>, commandID = <C0CBBC5B-500B-467D-B608-F86E0845C147>, remote control interface = <(null)>, appOptions = <0>, options = <not included> (null) returned <(
)> with error <None> for origin-Living Room-1280262988/client-com.plexapp.plex-5029/player-MediaRemote-DefaultPlayer in 0.0201 seconds

And this is for a supported command:

default	00:55:55.799965 +0100	Plex	Got Command = <Pause>, SenderDevice = <Living Room>, SenderBundleIdentifier = <com.apple.PineBoard>, SenderPID = <45>, commandID = <97DA070C-EE9B-4B34-872D-C290C0411117>, remote control interface = <(null)>, appOptions = <0>, options = <{
}> for path origin-Living Room-1280262988/client-com.plexapp.plex-5029/player-MediaRemote-DefaultPlayer
default	00:55:55.800085 +0100	Plex	Resolved playerPath to origin-Living Room-1280262988/client-com.plexapp.plex-5029/player-MediaRemote-DefaultPlayer for command 97DA070C-EE9B-4B34-872D-C290C0411117
default	00:55:55.800144 +0100	Plex	2018/12/11 00:55:55.778 (530 MB) (9206060) 🔧 PMKRemoteControlEventResponder.m:132 | Received iOS remote control event 101 for content type video
default	00:55:55.800184 +0100	Plex	2018/12/11 00:55:55.778 (530 MB) (9206060) ➖ PMKVideoPlaybackEngine.m:617 | Pausing video playback...
default	00:55:55.800219 +0100	Plex	2018/12/11 00:55:55.784 (530 MB) (9206060) ➖ PMKScreenLockManager.m:79 | Restoring screen dimming
default	00:55:55.804816 +0100	Plex	2018/12/11 00:55:55.787 (530 MB) (9206060) 🔧 PMMediaPlayerBufferUnderflowManager.m:175 | New state - paused
default	00:55:55.804860 +0100	PineBoard	Response: Command = <Pause>, SenderDevice = <Living Room>, SenderBundleIdentifier = <com.apple.PineBoard>, SenderPID = <45>, commandID = <97DA070C-EE9B-4B34-872D-C290C0411117>, remote control interface = <(null)>, appOptions = <0>, options = <not included> (null) returned <(
    Success
)> with error <None> for origin-Living Room-1280262988/client-com.plexapp.plex-5029/player-MediaRemote-DefaultPlayer in 0.0241 seconds

Please let me know if you need any additional info.

1 Like

@stigger how do you send that command exactly?

Using a reverse-engineered MediaRemote protocol (the same that is used in the iOS Remote app): https://github.com/stigger/trakt-for-appletv/blob/control/tvremote.py#L104

Doesn’t look like that’s available for iOS/tvOS devs:

Am I missing something? :confused:

I’ll investigate and get back to you.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.