Report video as the Now Playing media type (#969)

NowPlayingService set the media-library key MPMediaItemPropertyMediaType,
which MediaRemote ignores, so external clients classified playback as
audio. Use MPNowPlayingInfoPropertyMediaType instead.
This commit is contained in:
Arkadiusz Fal
2026-10-19 18:02:42 +02:00
parent f5e5202d79
commit 13eb89abc0

View File

@@ -83,7 +83,7 @@ final class NowPlayingService {
MPNowPlayingInfoPropertyElapsedPlaybackTime: currentTime, MPNowPlayingInfoPropertyElapsedPlaybackTime: currentTime,
MPNowPlayingInfoPropertyPlaybackQueueCount: 1, MPNowPlayingInfoPropertyPlaybackQueueCount: 1,
MPNowPlayingInfoPropertyPlaybackQueueIndex: 0, MPNowPlayingInfoPropertyPlaybackQueueIndex: 0,
MPMediaItemPropertyMediaType: MPMediaType.anyVideo.rawValue, MPNowPlayingInfoPropertyMediaType: MPNowPlayingInfoMediaType.video.rawValue,
MPNowPlayingInfoPropertyPlaybackRate: isPlaying ? 1.0 : 0.0, MPNowPlayingInfoPropertyPlaybackRate: isPlaying ? 1.0 : 0.0,
MPNowPlayingInfoPropertyDefaultPlaybackRate: 1.0 MPNowPlayingInfoPropertyDefaultPlaybackRate: 1.0
] ]