mirror of
https://github.com/MioMioOS/mio-plugin-music.git
synced 2026-06-11 03:44:31 +00:00
v2.0.4's 15s safety-net poll broke Apple Music latency because macOS 14+
Music.app doesn't reliably broadcast com.apple.Music.playerInfo, and
MediaRemote is 15.4-gated. With no event source actually firing, 15s
between polls = 15s track-change lag.
Poll interval is now computed from stickySource + isPlaying:
- Apple Music playing → 0.8s (no reliable event source)
- Chrome playing → 1.2s (no event source, web audio too)
- Spotify playing → 3.0s (playerInfo broadcast is fast,
poll is just backup)
- MediaRemote playing → 3.0s (MR notifications cover it)
- Idle / nothing playing → 10.0s (NSWorkspace launch observer will
wake us instantly)
rearmPoll() is called after every stickySource change + after the
optimistic isPlaying flip in togglePlayPause, so the cadence adapts
within a single RunLoop tick. Cheap: if the new interval equals the
current one within 0.01s, skip the Timer re-alloc.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>CFBundleDevelopmentRegion</key>
|
|
<string>en</string>
|
|
<key>CFBundleExecutable</key>
|
|
<string>MusicPlugin</string>
|
|
<key>CFBundleIdentifier</key>
|
|
<string>com.mioisland.plugin.music-player</string>
|
|
<key>CFBundleInfoDictionaryVersion</key>
|
|
<string>6.0</string>
|
|
<key>CFBundleName</key>
|
|
<string>Music Player</string>
|
|
<key>CFBundlePackageType</key>
|
|
<string>BNDL</string>
|
|
<key>CFBundleShortVersionString</key>
|
|
<string>2.0.5</string>
|
|
<key>CFBundleVersion</key>
|
|
<string>7</string>
|
|
<key>NSPrincipalClass</key>
|
|
<string>MusicPlugin.MusicPlugin</string>
|
|
<!--
|
|
Optional size hint for the expanded plugin panel.
|
|
Host reads these on plugin load and caps the expanded area to the
|
|
requested dimensions instead of the default ~620x780. Both keys
|
|
must be present. Range: width 280-1200, height 180-900. Values
|
|
outside that range are ignored and the host falls back to default.
|
|
-->
|
|
<key>MioPluginPreferredWidth</key>
|
|
<integer>440</integer>
|
|
<key>MioPluginPreferredHeight</key>
|
|
<integer>340</integer>
|
|
</dict>
|
|
</plist>
|