return cached asset

This commit is contained in:
Frikkie Snyman 2018-10-23 16:09:19 +02:00
parent b0c0ac10f4
commit f0a1bebc04

View File

@ -500,7 +500,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;
}
}