IMP(低代码音视频工厂)SDK v1.5.0
IMP SDK API Reference Manual for iOS Platforms
AIRBLivePlayerProtocol.h
1//
2// AIRBLivePlayerProtocol.h
3// AliInteractiveRoomBundle
4//
5// Created by fernando on 2021/6/22.
6// Copyright © 2021 AliYun. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import <UIKit/UIKit.h>
11#import <AliInteractiveRoomBundle/AIRBCommonDefines.h>
12
13NS_ASSUME_NONNULL_BEGIN
14
15@protocol AIRBLivePlayerDelegate <NSObject>
16- (void) onAIRBLivePlayerErrorWithCode:(AIRBErrorCode)code message:(NSString*)msg;
17- (void) onAIRBLivePlayerEvent:(AIRBLivePlayerEvent)event info:(NSDictionary*)info;
18- (void) onAIRBLivePlayerImageSnapshot:(UIImage*)image;
19@end
20
21@protocol AIRBLivePlayerProtocol <NSObject>
22
26@property (weak, nonatomic) id<AIRBLivePlayerDelegate> delegate;
27
31@property (strong, nonatomic) UIView* playerView;
32
36@property (assign, nonatomic) AIRBVideoViewContentMode contentMode;
37
41@property (assign, nonatomic) float playerVolume;
42
47@property (assign, nonatomic) BOOL lowDelay;
48
52@property (assign, nonatomic) BOOL playStatistic;
53
57- (void) start;
58
62- (void) pause;
63
67- (void) resume;
68
72- (void) stop;
73
77- (void) refresh;
78
82- (void) snapshotAsync;
83
87- (void) toggleMuted;
88@end
89
90NS_ASSUME_NONNULL_END
Definition: AIRBLivePlayerProtocol.h:15
Definition: AIRBLivePlayerProtocol.h:21
BOOL lowDelay
Definition: AIRBLivePlayerProtocol.h:47
UIView * playerView
Definition: AIRBLivePlayerProtocol.h:31
AIRBVideoViewContentMode contentMode
Definition: AIRBLivePlayerProtocol.h:36
id< AIRBLivePlayerDelegate > delegate
Definition: AIRBLivePlayerProtocol.h:26
float playerVolume
Definition: AIRBLivePlayerProtocol.h:41
BOOL playStatistic
Definition: AIRBLivePlayerProtocol.h:52