mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-08 13:42:51 +00:00
Removing some unused method
This commit is contained in:
parent
f6eaa43315
commit
b04aa2e2bc
@ -144,3 +144,4 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
@end
|
@end
|
||||||
NS_ASSUME_NONNULL_END
|
NS_ASSUME_NONNULL_END
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -139,12 +139,6 @@ static NSString * const kStatus = @"status";
|
|||||||
return playerItem;
|
return playerItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL)hasURLAsset
|
|
||||||
{
|
|
||||||
// The array of AVAssetTrack objects available via the tracks property of an URL asset is typically empty for streaming-based media
|
|
||||||
return _asset.tracks.count == 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)prepareToPlayAsset:(AVAsset *)asset withKeys:(NSArray<NSString *> *)requestedKeys
|
- (void)prepareToPlayAsset:(AVAsset *)asset withKeys:(NSArray<NSString *> *)requestedKeys
|
||||||
{
|
{
|
||||||
for (NSString *key in requestedKeys) {
|
for (NSString *key in requestedKeys) {
|
||||||
@ -368,7 +362,7 @@ static NSString * const kStatus = @"status";
|
|||||||
[_delegate videoNodeDidStartInitialLoading:self];
|
[_delegate videoNodeDidStartInitialLoading:self];
|
||||||
}
|
}
|
||||||
|
|
||||||
NSArray<NSString *> *requestedKeys = @[@"playable", @"tracks"];
|
NSArray<NSString *> *requestedKeys = @[@"playable"];
|
||||||
[asset loadValuesAsynchronouslyForKeys:requestedKeys completionHandler:^{
|
[asset loadValuesAsynchronouslyForKeys:requestedKeys completionHandler:^{
|
||||||
ASPerformBlockOnMainThread(^{
|
ASPerformBlockOnMainThread(^{
|
||||||
if (_delegateFlags.delegateVideoNodeDidFinishInitialLoading) {
|
if (_delegateFlags.delegateVideoNodeDidFinishInitialLoading) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user