You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
497 B
Objective-C
23 lines
497 B
Objective-C
//
|
|
// SPPlayCGIParser.m
|
|
// SuperPlayer
|
|
//
|
|
// Created by cui on 2019/12/26.
|
|
// Copyright © 2019 annidy. All rights reserved.
|
|
//
|
|
|
|
#import "SPPlayCGIParser.h"
|
|
#import "SPPlayCGIParser_V2.h"
|
|
#import "SPPlayCGIParser_V4.h"
|
|
|
|
@implementation SPPlayCGIParser
|
|
+ (Class<SPPlayCGIParserProtocol>)parserOfVersion:(NSInteger)version {
|
|
if (version == 2) {
|
|
return [SPPlayCGIParser_V2 class];
|
|
} else if (version == 4) {
|
|
return [SPPlayCGIParser_V4 class];
|
|
}
|
|
return Nil;
|
|
}
|
|
@end
|