forked from AgoraIO/API-Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVideoView.h
More file actions
61 lines (41 loc) · 1.27 KB
/
VideoView.h
File metadata and controls
61 lines (41 loc) · 1.27 KB
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
//
// VideoView.h
// APIExample
//
// Created by zhaoyongqiang on 2023/7/11.
//
#import <UIKit/UIKit.h>
#import "AgoraSampleBufferRender.h"
#import "APIExample_OC-swift.h"
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger,StreamType)
{
StreamTypeLocal,
StreamTypeRemote
};
@interface NSBundle (LoadView)
+ (UIView *)loadViewFormNib: (NSString *)name;
+ (UIView *)loadVideoViewFormType: (StreamType)type audioOnly: (BOOL)audioOnly;
@end
@interface VideoView : UIView
@property (weak, nonatomic) IBOutlet UIView *videoView;
@property (nonatomic, assign)BOOL audioOnly;
@property (nonatomic, assign)NSUInteger uid;
@property (nonatomic, assign)StreamType type;
- (void)setPlaceholder: (NSString *)text;
- (void)setInfo: (NSString *)text;
- (void)setStats:(NSString *)stats;
@end
@interface SampleBufferDisplayView : UIView
@property (nonatomic, assign)NSUInteger uid;
@property (weak, nonatomic) IBOutlet AgoraSampleBufferRender *videoView;
- (void)setPlaceholder: (NSString *)text;
- (void)setInfo: (NSString *)text;
@end
@interface MetalVideoView : UIView
@property (nonatomic, assign)NSUInteger uid;
@property (weak, nonatomic) IBOutlet AgoraMetalRender *videoView;
- (void)setPlaceholder: (NSString *)text;
- (void)setInfo: (NSString *)text;
@end
NS_ASSUME_NONNULL_END