-
Notifications
You must be signed in to change notification settings - Fork 377
/
Copy pathVKVideoPlayerExternalMonitor.h
35 lines (30 loc) · 1.21 KB
/
VKVideoPlayerExternalMonitor.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
//
// Created by Viki.
// Copyright (c) 2014 Viki Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "VKVideoPlayer.h"
@class VKVideoPlayerExternalMonitorProtocol;
@class VKVideoPlayerView;
typedef enum {
VKVideoPlayerExternalMonitorStateDisconnected,
VKVideoPlayerExternalMonitorStateConnected,
VKVideoPlayerExternalMonitorStateActive
} VKVideoPlayerExternalMonitorState;
@protocol VKVideoPlayerExternalMonitorProtocol <NSObject>
@property (nonatomic, readonly) BOOL isConnected;
@property (nonatomic, weak, readonly) VKVideoPlayer* player;
@property (nonatomic, strong) VKVideoPlayerView* externalView;
@property (nonatomic, assign) VKVideoPlayerExternalMonitorState state;
- (void)setup;
- (void)activate:(VKVideoPlayer*)player;
- (void)deactivate;
- (NSString*)deviceName;
- (void)changePlayerSteteFrom:(VKVideoPlayerState)oldState to:(VKVideoPlayerState)newState;
@end
@interface VKVideoPlayerExternalMonitor : NSObject<VKVideoPlayerExternalMonitorProtocol>
@property (nonatomic, weak, readonly) VKVideoPlayer* player;
@property (nonatomic, assign) VKVideoPlayerExternalMonitorState state;
@property (nonatomic, strong) VKVideoPlayerView* externalView;
@property (nonatomic, strong) UIWindow* window;
@end