Skip to content

Add macOS media play/pause controls#492

Open
rhaix wants to merge 1 commit into
Stremio:masterfrom
rhaix:codex/macos-media-play-pause-master
Open

Add macOS media play/pause controls#492
rhaix wants to merge 1 commit into
Stremio:masterfrom
rhaix:codex/macos-media-play-pause-master

Conversation

@rhaix

@rhaix rhaix commented Jun 13, 2026

Copy link
Copy Markdown

Summary

  • add a macOS MediaPlayer/MPRemoteCommandCenter bridge for play, pause, and toggle play/pause
  • keep the remote commands active only while mpv has loaded media, with playback state synced from mpv property changes
  • provide a no-op implementation for non-macOS builds

Testing

  • .codex-tools/Qt/5.15.2/clang_64/bin/qmllint main.qml
  • MPV_BIN_PATH="$PWD/deps/libmpv/mac" OPENSSL_BIN_PATH="$PWD/.codex-tools/openssl-x86" qt-buildkit/Qt/5.15.2/clang_64/bin/qmake -o build-master-local/Makefile stremio.pro CONFIG+=sdk_no_version_check
  • MPV_BIN_PATH="$PWD/deps/libmpv/mac" OPENSSL_BIN_PATH="$PWD/.codex-tools/openssl-x86" make -C build-master-local -j"$(sysctl -n hw.ncpu)"
  • local macOS smoke test with media play/pause controls

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