Unverified Commit 2c391f58 authored by Hampton Maxwell's avatar Hampton Maxwell Committed by GitHub
Browse files

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

return cached asset
parents 6bf21348 f0a1bebc
Loading
Loading
Loading
Loading
+1 −1
Changes for ios/Video/RCTVideo.m: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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;
                }
        }