mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Adding track to the requestedKeys to be loaded asynchronously so that it doesn't block the main thread
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user