30 lines
885 B
Objective-C
30 lines
885 B
Objective-C
//
|
||
// AVLiveStreamModel.h
|
||
// AVDemo
|
||
//
|
||
|
||
#import <Foundation/Foundation.h>
|
||
|
||
NS_ASSUME_NONNULL_BEGIN
|
||
|
||
@interface AVLiveStreamModel : NSObject
|
||
|
||
@property (nonatomic, copy) NSString *vhost;
|
||
@property (nonatomic, copy) NSString *app;
|
||
@property (nonatomic, copy) NSString *stream;
|
||
//如果该字段不为空,则为连麦pk房间
|
||
@property (nonatomic, copy) NSString *stream_pk;
|
||
@property (nonatomic, copy) NSString *url;
|
||
@property (nonatomic, assign) NSTimeInterval startTime;
|
||
@property (nonatomic, assign) NSTimeInterval duration;
|
||
@property (nonatomic, copy) NSString *preview_image; // 预览图 URL
|
||
@property (nonatomic, copy) NSString *play_protocol; // 播放协议:rtc, rtmp, flv, hls 等
|
||
@property (nonatomic, copy, nullable) NSString *xorKey; // XOR 解密密钥 (十六进制字符串)
|
||
|
||
- (NSString *)displayName;
|
||
- (NSString *)durationString;
|
||
|
||
@end
|
||
|
||
NS_ASSUME_NONNULL_END
|