This commit is contained in:
Dallas Groot 2026-04-10 17:30:29 -07:00
parent 5b71feebfd
commit 0f8d47fb2a

View file

@ -1613,6 +1613,7 @@ class ShazamRecognizer: NSObject, ObservableObject, SHSessionDelegate {
// MARK: - MTAudioProcessingTap
/// Async because `loadTracks(withMediaType:)` is the non-deprecated API (iOS 16+).
@MainActor
private func installTap(on playerItem: AVPlayerItem) async -> Bool {
// loadTracks is the non-deprecated replacement for tracks(withMediaType:)
guard let audioTrack = try? await playerItem.asset