Fix remote player SDK types and signing prefix; test remote commands

This commit is contained in:
2026-09-14 00:48:25 +03:00
parent e2902e6031
commit eaf091b1cf
9 changed files with 123 additions and 12 deletions
+1 -1
View File
@@ -26,7 +26,7 @@
<string>com.apple.nowplaying.remote-media</string>
</dict>
<key>MusicBridgeSharedKeychainGroup</key>
<string>$(AppIdentifierPrefix)ru.yukinoki.musicbridge.remote-control</string>
<string>ru.yukinoki.musicbridge.remote-control</string>
<key>NSLocalNetworkUsageDescription</key>
<string>MusicBridge подключается к вашему ПК, чтобы показывать музыку и управлять воспроизведением.</string>
<key>NSAppTransportSecurity</key>
+1 -1
View File
@@ -40,7 +40,7 @@ final class PCMediaSession: RemoteMediaSessionRepresentable {
}
var playbackSnapshot: MediaPlaybackSnapshot? {
MediaPlaybackSnapshot(state: attributes.playing ? .playing(rate: attributes.rate) : .paused,
MediaPlaybackSnapshot(state: attributes.playing ? .playing(rate: Float(attributes.rate)) : .paused,
elapsedTime: attributes.position, timestamp: attributes.timestamp)
}