Skip to content

Commit

Permalink
Merge branch 'minor' of https://github.com/basira-ca/audio_service in…
Browse files Browse the repository at this point in the history
…to basira-ca-minor
  • Loading branch information
ryanheise committed Feb 4, 2025
2 parents 4ee4483 + 58570d4 commit 23af1c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions audio_service/darwin/Classes/AudioServicePlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ - (void) updateNowPlayingInfo {
updated |= [self updateNowPlayingField:MPNowPlayingInfoPropertyMediaType value:@(MPNowPlayingInfoMediaTypeAudio)];
}
updated |= [self updateNowPlayingField:MPNowPlayingInfoPropertyPlaybackRate value:(playing ? speed : [NSNumber numberWithDouble: 0.0])];
updated |= [self updateNowPlayingField:MPNowPlayingInfoPropertyDefaultPlaybackRate value:(playing ? speed : [NSNumber numberWithDouble: 0.0])];
updated |= [self updateNowPlayingField:MPNowPlayingInfoPropertyElapsedPlaybackTime value:[NSNumber numberWithDouble:([position doubleValue] / 1000)]];
MPNowPlayingInfoCenter *center = [MPNowPlayingInfoCenter defaultCenter];
if (@available(iOS 13.0, macOS 10.12.2, *)) {
Expand Down

0 comments on commit 23af1c5

Please sign in to comment.