forked from qnblackcat/iSponsorBlock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiSponsorBlock.h
207 lines (174 loc) · 6.99 KB
/
iSponsorBlock.h
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import <AVKit/AVKit.h>
#include <RemoteLog.h>
#import <dlfcn.h>
#import "MBProgressHUD.h"
#import "SponsorSegment.h"
//prefs
BOOL kIsEnabled;
NSString *kUserID;
NSDictionary *kCategorySettings;
CGFloat kMinimumDuration;
BOOL kShowSkipNotice;
BOOL kShowButtonsInPlayer;
BOOL kShowModifiedTime;
BOOL kEnableSkipCountTracking;
CGFloat kSkipNoticeDuration;
NSMutableArray <NSString *> *kWhitelistedChannels;
@interface YTInlinePlayerBarView : UIView
@end
@interface YTInlinePlayerBarContainerView : UIView
-(void)setChapters:(NSArray *)arg1;
@property (strong, nonatomic) NSArray *chaptersArray;
@property (strong, nonatomic) YTInlinePlayerBarView *playerBar;
@property (strong, nonatomic) UILabel *durationLabel;
@end
@interface YTQTMButton : UIButton
+(instancetype)iconButton;
@property (strong, nonatomic) UIImageView *imageView;
@end
@interface YTMainAppControlsOverlayView : UIView
@end
@interface YTMainAppVideoPlayerOverlayView : UIView
@property (strong, nonatomic) YTInlinePlayerBarContainerView *playerBar;
@property (strong, nonatomic) YTMainAppControlsOverlayView *controlsOverlayView;
@end
@interface YTPlayerView : UIView
@property (strong, nonatomic) YTMainAppVideoPlayerOverlayView *overlayView;
@end
@interface YTIVideoDetails : NSObject
@property (strong, nonatomic) NSString *channelId;
@end
@interface MLVideo : NSObject
@property (strong, nonatomic) YTIVideoDetails *videoDetails;
@end
@interface YTPlaybackData : NSObject
@property (strong, nonatomic) MLVideo *video;
@end
@interface YTSingleVideo : NSObject
@property (strong, nonatomic) MLVideo *video;
@property (strong, nonatomic) YTPlaybackData *playbackData;
@end
@interface YTSingleVideoController : NSObject
@property (strong, nonatomic) YTSingleVideo *singleVideo;
@end
@interface YTPlayerViewController : UIViewController
@property (strong, nonatomic) YTPlayerView *view;
-(instancetype)initWithParentResponder:(id)arg1 overlayFactory:(id)arg2;
-(void)scrubToTime:(CGFloat)arg1;
-(NSInteger)playerViewLayout;
-(void)didPressToggleFullscreen;
-(void)setPlayerViewLayout:(NSInteger)arg1;
@property (strong, nonatomic) NSString *currentVideoID;
@property (nonatomic, assign) CGFloat currentVideoMediaTime;
@property (nonatomic, assign) CGFloat currentVideoTotalMediaTime;
@property (nonatomic, assign) BOOL isPlayingAd;
@property (strong, nonatomic) NSMutableArray <SponsorSegment *> *skipSegments;
@property (nonatomic, assign) NSInteger currentSponsorSegment;
@property (strong, nonatomic) MBProgressHUD *hud;
@property (nonatomic, assign) NSInteger unskippedSegment;
@property (strong, nonatomic) NSMutableArray <SponsorSegment *> *userSkipSegments;
@property (strong, nonatomic) YTSingleVideoController *activeVideo;
@property (strong, nonatomic) NSString *channelID;
@property (nonatomic, assign, getter=isMDXActive) BOOL MDXActive;
@end
//ik i'm redefining it im just lazy and dont feel like fixing this header
@interface YTMainAppControlsOverlayView ()
-(void)sponsorBlockButtonPressed:(YTQTMButton *)sender;
-(void)sponsorStartedButtonPressed:(YTQTMButton *)sender;
-(void)sponsorEndedButtonPressed:(YTQTMButton *)sender;
-(void)setOverlayVisible:(BOOL)arg1;
-(void)presentSponsorBlockViewController;
-(NSArray *)topControls;
- (void)setOverlayVisible:(BOOL)arg1;
@property (strong, nonatomic) YTQTMButton *sponsorBlockButton;
@property (strong, nonatomic) YTQTMButton *sponsorStartedEndedButton;
@property (strong, nonatomic) YTPlayerViewController *playerViewController;
@property (nonatomic, assign) BOOL isDisplayingSponsorBlockViewController;
@property (nonatomic, assign, getter=isOverlayVisible) BOOL overlayVisible;
@end
@interface YTSingleVideoTime : NSObject
@property (nonatomic, assign) CGFloat time;
@end
@interface YTIFormattedString : NSObject
+(instancetype)formattedStringWithString:(NSString *)arg1;
@end
@interface YTIChapterRenderer : NSObject
@property (strong, nonatomic) YTIFormattedString *title;
@property (nonatomic, assign) NSInteger timeRangeStartMillis;
@end
@interface YTIChapterRendererWrapper : NSObject
-(instancetype)initWithStartTime:(CGFloat)arg1 endTime:(CGFloat)arg2 title:(NSString *)arg3;
+(instancetype)chapterRendererWrapperWithRenderer:(YTIChapterRenderer *)arg1;
@property (nonatomic, assign) CGFloat endTime;
@end
@interface YTPlayerBarSegmentedProgressView : UIView
-(void)setChapters:(NSArray *)arg1;
@property (nonatomic, assign) CGFloat totalTime;
@property (strong, nonatomic) NSMutableArray *sponsorMarkerViews;
@property (nonatomic, assign) NSInteger playerViewLayout;
@property (nonatomic, retain) NSMutableArray <SponsorSegment *> *skipSegments;
@property (strong, nonatomic) YTPlayerViewController *playerViewController;
-(void)createAndAddMarker:(CGFloat)arg1 type:(NSInteger)arg2 width:(CGFloat)arg3;
-(void)createAndAddMarker:(CGFloat)arg1 type:(NSInteger)arg2 clusterType:(NSInteger)arg3 width:(CGFloat)arg4;
-(void)addMarkerViewToClosestSegmentView:(id)arg1;
-(void)maybeCreateMarkerViews;
-(void)removeSponsorMarkers;
-(NSMutableArray *)segmentViews;
@end
@interface YTPlayerBarSegmentMarkerView : UIView
@property (nonatomic, assign) CGFloat startTime;
@property (nonatomic, assign) CGFloat endTime;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) BOOL isSponsorMarker;
@property (nonatomic, assign) NSInteger type;
@end
@interface YTNGWatchLayerViewController
@property (strong, nonatomic) YTPlayerViewController *playerViewController;
@end
@interface YTRightNavigationButtons : UIView
@property (strong, nonatomic) YTQTMButton *sponsorBlockButton;
-(void)setLeadingPadding:(CGFloat)arg1;
@end
@interface YTPageStyleController
+(NSInteger)pageStyle;
@end
//Cercube
@interface CADownloadObject : NSObject
@property(readonly, nonatomic) NSString *filePath;
@property(copy, nonatomic) NSString *fileName; // @dynamic fileName;
@property(copy, nonatomic) NSString *videoId;
@end
@interface CADownloadObject_CADownloadObject_ : CADownloadObject
@end
@interface AVPlayerItem ()
-(NSURL *)_URL;
@end
@interface AVQueuePlayer ()
@property (strong, nonatomic) NSMutableArray <SponsorSegment *> *skipSegments;
@property (nonatomic, assign) NSInteger currentSponsorSegment;
@property (strong, nonatomic) MBProgressHUD *hud;
@property (nonatomic, assign) NSInteger unskippedSegment;
@property (nonatomic, assign) BOOL isSeeking;
@property (nonatomic, assign) NSInteger currentPlayerItem;
@property (strong, nonatomic) id timeObserver;
@property (strong, nonatomic) AVPlayerViewController *playerViewController;
@property (strong, nonatomic) NSMutableArray *markerViews;
-(void)sponsorBlockSetup;
-(void)updateMarkerViews;
@end
@interface AVScrubber : UIView
@end
@interface AVPlaybackControlsView : UIView
@property (strong, nonatomic) AVScrubber *scrubber;
@end
@interface AVPlayerViewControllerContentView : UIView
@property (strong, nonatomic) AVPlaybackControlsView *playbackControlsView;
@end
@interface AVPlayerViewController ()
@property (strong, nonatomic) AVPlayerViewControllerContentView *contentView;
@end
@interface AVContentOverlayView : UIView
@end