From 44a80672cbc7f4f5309deb1e2098d69eabace15c Mon Sep 17 00:00:00 2001 From: Max Gu Date: Tue, 19 Jul 2016 20:25:32 -0700 Subject: [PATCH] Adding track to the requestedKeys to be loaded asynchronously so that it doesn't block the main thread --- AsyncDisplayKit/ASVideoNode.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AsyncDisplayKit/ASVideoNode.mm b/AsyncDisplayKit/ASVideoNode.mm index 4e799398cd..686950fbae 100644 --- a/AsyncDisplayKit/ASVideoNode.mm +++ b/AsyncDisplayKit/ASVideoNode.mm @@ -370,7 +370,7 @@ static NSString * const kStatus = @"status"; [_delegate videoNodeDidStartInitialLoading:self]; } - NSArray *requestedKeys = @[@"playable"]; + NSArray *requestedKeys = @[@"playable", @"tracks"]; [asset loadValuesAsynchronouslyForKeys:requestedKeys completionHandler:^{ ASPerformBlockOnMainThread(^{ if (_delegateFlags.delegateVideoNodeDidFinishInitialLoading) {