Skip to content

feat(audio): add remote-command MediaRemote stimulus and MPRemoteCommandCenter state - #20

Merged
Apdelrahman1911 merged 1 commit into
mainfrom
feat/remote-command-stimulus
Dec 6, 2026
Merged

Apdelrahman1911 merged 1 commit into
mainfrom
feat/remote-command-stimulus

Conversation

@Apdelrahman1911

Copy link
Copy Markdown

Summary

Adds native MediaRemote command dispatch (x86sim remote-command play|pause|toggle-play-pause|next|previous [--bundle BID]) and exposes MPRemoteCommandCenter.sharedCommandCenter() enabled flags in audio-state.

Changes

  • host/simax/simax_actions.m: inspect MPRemoteCommandCenter.sharedCommandCenter() enabled state in audio_state_info() (zero extra link deps); implement remote_command op invoking Apple's MRMediaRemoteSendCommand via dlopen/dlsym on MediaRemote.framework (fail-closed if unavailable or rejected).
  • tools/launcher/core/src/axact.rs: add remote_command_pid / remote_command + wire-protocol unit tests in audio_state_and_interrupt_wire_protocol.
  • tools/launcher/core/src/bin/x86sim.rs & ax_parts/mod.rs: expose x86sim remote-command.

Verification

  • Native ci.yml (rust-launcher-tests, rust-mtlvk-tests, web, build / appimage) + Ubuntu libsimax.dylib cross-compile.

@Apdelrahman1911
Apdelrahman1911 merged commit 344d408 into main Dec 6, 2026
4 checks passed
@Apdelrahman1911
Apdelrahman1911 deleted the feat/remote-command-stimulus branch December 6, 2026 09:32
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.

1 participant