mirror of
https://github.com/yattee/yattee.git
synced 2026-11-04 02:47:18 +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,
|
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
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user