Commit 67a38891 authored by Hampton Maxwell's avatar Hampton Maxwell
Browse files

Add debug message when disabling caching due to text tracks

parent b6ee8f7f
Loading
Loading
Loading
Loading
+1 −0
Changes for ios/Video/RCTVideo.m: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -460,6 +460,7 @@ static int const RCTVideoUnset = -1;
       *  to bring in the text track code will crash. I suspect this is because the asset hasn't fully loaded.
       * Until this is fixed, we need to bypass caching when text tracks are specified.
       */
      DebugLog(@"Caching is not supported for uri '%@' because text tracks are not compatible with the cache. Checkout https://github.com/react-native-community/react-native-video/blob/master/docs/caching.md", uri);
      [self playerItemForSourceUsingCache:uri assetOptions:assetOptions withCallback:handler];
      return;
    }