bug fix
This commit is contained in:
parent
5b71feebfd
commit
0f8d47fb2a
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue