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.
61 lines
1.2 KiB
Objective-C
61 lines
1.2 KiB
Objective-C
#import "SuperPlayerControlView.h"
|
|
|
|
@implementation SuperPlayerControlView
|
|
- (instancetype)initWithFrame:(CGRect)frame
|
|
{
|
|
self = [super initWithFrame:frame];
|
|
if (self) {
|
|
_compact =YES;
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (void)layoutSubviews
|
|
{
|
|
[super layoutSubviews];
|
|
|
|
// UIInterfaceOrientation currentOrientation = [UIApplication sharedApplication].statusBarOrientation;
|
|
if (self.compact) {
|
|
[self setOrientationPortraitConstraint];
|
|
} else {
|
|
[self setOrientationLandscapeConstraint];
|
|
}
|
|
[self.delegate controlViewDidChangeScreen:self];
|
|
}
|
|
|
|
- (void)setOrientationPortraitConstraint
|
|
{
|
|
|
|
}
|
|
|
|
- (void)setOrientationLandscapeConstraint
|
|
{
|
|
|
|
}
|
|
|
|
- (void)resetWithResolutionNames:(NSArray<NSString *> *)resolutionNames
|
|
currentResolutionIndex:(NSUInteger)resolutionIndex
|
|
isLive:(BOOL)isLive
|
|
isTimeShifting:(BOOL)isTimeShifting
|
|
isPlaying:(BOOL)isAutoPlay
|
|
{
|
|
|
|
}
|
|
|
|
- (void)setPlayState:(BOOL)isPlay {
|
|
|
|
}
|
|
|
|
- (void)setProgressTime:(NSInteger)currentTime
|
|
totalTime:(NSInteger)totalTime
|
|
progressValue:(CGFloat)progress
|
|
playableValue:(CGFloat)playable
|
|
{
|
|
|
|
}
|
|
|
|
- (void)hideDanmu {}
|
|
- (void)hideReplay {}
|
|
|
|
@end
|