forked from CommercialTribe/react-native-opentok
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RCTOpenTokPublisherView.h
41 lines (31 loc) · 1.35 KB
/
RCTOpenTokPublisherView.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
/**
* Copyright (c) 2015-present, Callstack Sp z o.o.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
@import UIKit;
#import "RCTEventDispatcher.h"
#import "RCTComponent.h"
@interface RCTOpenTokPublisherView : UIView
@property (nonatomic, strong) NSString *apiKey;
@property (nonatomic, strong) NSString *sessionId;
@property (nonatomic, strong) NSString *token;
@property (nonatomic, assign) NSInteger cameraResolution;
@property (nonatomic, assign) NSInteger cameraFrameRate;
@property (nonatomic, assign) BOOL videoEnabled;
- (void)pausePublish;
- (void)resumePublish;
- (void)stopPublish;
@property (nonatomic, copy) RCTDirectEventBlock onPublishError;
@property (nonatomic, copy) RCTDirectEventBlock onPublishStop;
@property (nonatomic, copy) RCTDirectEventBlock onPublishStart;
@property (nonatomic, copy) RCTDirectEventBlock onClientConnected;
@property (nonatomic, copy) RCTDirectEventBlock onClientDisconnected;
@property (nonatomic, copy) RCTDirectEventBlock onSessionDidConnect;
@property (nonatomic, copy) RCTDirectEventBlock onSessionDidDisconnect;
@property (nonatomic, copy) RCTDirectEventBlock onArchiveStarted;
@property (nonatomic, copy) RCTDirectEventBlock onArchiveStopped;
@property (nonatomic, copy) RCTDirectEventBlock onThumbnailReady;
@end