Skip to content

Commit

Permalink
refactor: improve loading speed for online files (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
godly-devotion committed Mar 28, 2024
1 parent 45086e1 commit d462f93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Front Row/Support/PlayEngine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ import SwiftUI
for sub in currentItemSubs { sub.cancel() }
currentItemSubs.removeAll()

let playerItem = AVPlayerItem(url: url)
let playerItem = AVPlayerItem(asset: asset!)

playerItem.publisher(for: \.status)
.removeDuplicates()
Expand Down

0 comments on commit d462f93

Please sign in to comment.