Adding track to the requestedKeys to be loaded asynchronously so that it doesn't block the main thread

This commit is contained in:
Max Gu
2016-07-19 20:25:32 -07:00
parent 7237149b0f
commit 44a80672cb

View File

@@ -370,7 +370,7 @@ static NSString * const kStatus = @"status";
[_delegate videoNodeDidStartInitialLoading:self];
}
NSArray<NSString *> *requestedKeys = @[@"playable"];
NSArray<NSString *> *requestedKeys = @[@"playable", @"tracks"];
[asset loadValuesAsynchronouslyForKeys:requestedKeys completionHandler:^{
ASPerformBlockOnMainThread(^{
if (_delegateFlags.delegateVideoNodeDidFinishInitialLoading) {