Skip to content

Commit

Permalink
Merge pull request TheWidlarzGroup#1298 from relivecc/ios-cached-asset
Browse files Browse the repository at this point in the history
return cached asset

(rebased from commit 2c391f5)
  • Loading branch information
cobarx authored and Beau Ner committed Oct 10, 2019
1 parent c8e02f3 commit 6b3e2fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Video/RCTVideo.m
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ - (void)playerItemForSourceUsingCache:(NSString *)uri assetOptions:(NSDictionary
if (cachedAsset) {
DebugLog(@"Playing back uri '%@' from cache", uri);
// See note in playerItemForSource about not being able to support text tracks & caching
handler([AVPlayerItem playerItemWithAsset:asset]);
handler([AVPlayerItem playerItemWithAsset:cachedAsset]);
return;
}
}
Expand Down

0 comments on commit 6b3e2fa

Please sign in to comment.