From f0a1bebc048dd33a05bf4380962eb2da6d452781 Mon Sep 17 00:00:00 2001 From: Frikkie Snyman Date: Tue, 23 Oct 2018 16:09:19 +0200 Subject: [PATCH] return cached asset --- ios/Video/RCTVideo.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Video/RCTVideo.m b/ios/Video/RCTVideo.m index 9fe30b63..cf4ee14b 100644 --- a/ios/Video/RCTVideo.m +++ b/ios/Video/RCTVideo.m @@ -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; } }