forked from LiteAVSDK/Player_iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSuperPlayerControlView.m
executable file
·57 lines (43 loc) · 1.18 KB
/
SuperPlayerControlView.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#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
{
}
@end