mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +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];
|
[_delegate videoNodeDidStartInitialLoading:self];
|
||||||
}
|
}
|
||||||
|
|
||||||
NSArray<NSString *> *requestedKeys = @[@"playable"];
|
NSArray<NSString *> *requestedKeys = @[@"playable", @"tracks"];
|
||||||
[asset loadValuesAsynchronouslyForKeys:requestedKeys completionHandler:^{
|
[asset loadValuesAsynchronouslyForKeys:requestedKeys completionHandler:^{
|
||||||
ASPerformBlockOnMainThread(^{
|
ASPerformBlockOnMainThread(^{
|
||||||
if (_delegateFlags.delegateVideoNodeDidFinishInitialLoading) {
|
if (_delegateFlags.delegateVideoNodeDidFinishInitialLoading) {
|
||||||
|
|||||||
Reference in New Issue
Block a user