Skip to content

Commit

Permalink
fix(ios): fix regression when playing source starting with ph:// (#3630)
Browse files Browse the repository at this point in the history
  • Loading branch information
freeboub committed Mar 29, 2024
1 parent f10511d commit 75d3707
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ios/Video/RCTVideo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,6 @@ class RCTVideo: UIView, RCTVideoPlayerViewControllerDelegate, RCTPlayerObserverH
throw NSError(domain: "", code: 0, userInfo: nil)
}
if let uri = source.uri, uri.starts(with: "ph://") {
self.isSetSourceOngoing = false
self.applyNextSource()
return Promise {
RCTVideoUtils.preparePHAsset(uri: uri).then { asset in
return self.playerItemPrepareText(asset: asset, assetOptions: nil, uri: source.uri ?? "")
Expand Down

0 comments on commit 75d3707

Please sign in to comment.