Removing some unused method

This commit is contained in:
Max Gu 2016-07-20 16:07:17 -07:00
parent f6eaa43315
commit b04aa2e2bc
2 changed files with 2 additions and 7 deletions

View File

@ -144,3 +144,4 @@ NS_ASSUME_NONNULL_BEGIN
@end @end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END
#endif #endif

View File

@ -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) {