Merge pull request #1298 from relivecc/ios-cached-asset

return cached asset
This commit is contained in:
Hampton Maxwell 2018-10-23 19:18:24 -07:00 committed by GitHub
commit 2c391f5807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -516,7 +516,7 @@ static int const RCTVideoUnset = -1;
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;
}
}