-
Notifications
You must be signed in to change notification settings - Fork 377
/
Copy pathVKVideoPlayerTrack.h
44 lines (35 loc) · 1.18 KB
/
VKVideoPlayerTrack.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
//
// Created by Viki.
// Copyright (c) 2014 Viki Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "VKVideoPlayerConfig.h"
@protocol VKVideoPlayerTrackProtocol <NSObject>
@property (nonatomic, assign) BOOL isPlayedToEnd;
@property (nonatomic, assign) BOOL isVideoLoadedBefore;
@property (nonatomic, strong) NSNumber* totalVideoDuration;
@property (nonatomic, strong) NSNumber* lastDurationWatchedInSeconds;
// video title
- (NSString*)title;
// video stream URL
- (NSURL*)streamURL;
- (BOOL)hasNext;
- (BOOL)hasPrevious;
@end
@interface VKVideoPlayerTrack : NSObject<
VKVideoPlayerTrackProtocol
> {
BOOL _isVideoLoadedBefore;
NSNumber* _totalVideoDuration;
NSNumber* _lastDurationWatchedInSeconds;
}
@property (nonatomic, strong) NSString *title;
@property (nonatomic, assign) BOOL hasNext;
@property (nonatomic, assign) BOOL hasPrevious;
@property (nonatomic, assign) BOOL isPlayedToEnd;
@property (nonatomic, strong) NSURL* streamURL;
@property (nonatomic, assign) BOOL isVideoLoadedBefore;
@property (nonatomic, strong) NSNumber* totalVideoDuration;
@property (nonatomic, strong) NSNumber* lastDurationWatchedInSeconds;
- (id)initWithStreamURL:(NSURL*)url;
@end