Skip to content

Commit

Permalink
Revert "Log error"
Browse files Browse the repository at this point in the history
This reverts commit 2aa17df.
  • Loading branch information
Gustl22 committed Mar 14, 2024
1 parent 3aea341 commit ac2b98b
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,19 +180,9 @@ class WrappedMediaPlayer {
let playerItem: AVPlayerItem

if #available(iOS 17, macOS 14.0, *), mimeType != nil {
self.eventHandler.onError(
code: "DarwinAudioError",
message: "Available ios 17, macos 14",
details: "MimeType: \(mimeType)"
)
let asset = AVURLAsset(url: parsedUrl, options: [AVURLAssetOverrideMIMETypeKey: mimeType!])
playerItem = AVPlayerItem(asset: asset)
} else {
self.eventHandler.onError(
code: "DarwinAudioError",
message: "NOT Available ios 17, macos 14",
details: "MimeType: \(mimeType)"
)
playerItem = AVPlayerItem(url: parsedUrl)
}

Expand Down

0 comments on commit ac2b98b

Please sign in to comment.