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

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;
}
}