Skip to content

Commit

Permalink
Hand over mimeType
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustl22 committed Mar 14, 2024
1 parent 364af3a commit c0fbb3b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class WrappedMediaPlayer {
reset()
self.url = url
do {
let playerItem = try createPlayerItem(url, isLocal)
let playerItem = try createPlayerItem(url: url, isLocal: isLocal, mimeType: mimeType)
// Need to observe item status immediately after creating:
setUpPlayerItemStatusObservation(
playerItem,
Expand Down Expand Up @@ -166,9 +166,9 @@ class WrappedMediaPlayer {
}

private func createPlayerItem(
_ url: String,
_ isLocal: Bool,
_ mimeType: String? = nil
url: String,
isLocal: Bool,
mimeType: String? = nil
) throws -> AVPlayerItem {
guard
let parsedUrl = isLocal
Expand Down

0 comments on commit c0fbb3b

Please sign in to comment.