mirror of
https://github.com/yattee/yattee.git
synced 2026-10-23 21:22:53 +00:00
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:
@@ -83,7 +83,7 @@ final class NowPlayingService {
|
||||
MPNowPlayingInfoPropertyElapsedPlaybackTime: currentTime,
|
||||
MPNowPlayingInfoPropertyPlaybackQueueCount: 1,
|
||||
MPNowPlayingInfoPropertyPlaybackQueueIndex: 0,
|
||||
MPMediaItemPropertyMediaType: MPMediaType.anyVideo.rawValue,
|
||||
MPNowPlayingInfoPropertyMediaType: MPNowPlayingInfoMediaType.video.rawValue,
|
||||
MPNowPlayingInfoPropertyPlaybackRate: isPlaying ? 1.0 : 0.0,
|
||||
MPNowPlayingInfoPropertyDefaultPlaybackRate: 1.0
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user