Add debug message when disabling caching due to text tracks

This commit is contained in:
Hampton Maxwell 2018-08-27 18:16:59 -07:00
parent b6ee8f7fed
commit 67a388911d

View File

@ -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. * 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. * 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]; [self playerItemForSourceUsingCache:uri assetOptions:assetOptions withCallback:handler];
return; return;
} }