// // QNTranscodingLiveStreamingConfig.h // QNRTCKit // // Created by tony.jing on 2021/8/17. // Copyright © 2021 Pili Engineering, Qiniu Inc. All rights reserved. // #import #import "QNTypeDefines.h" #import "QNTranscodingLiveStreamingImage.h" #import "QNTranscodingLiveStreamingTrack.h" @interface QNTranscodingLiveStreamingConfig : NSObject < NSCopying > /*! * @abstract 合流的 id * * @since v4.0.0 */ @property (nonatomic, strong) NSString *streamID; /*! * @abstract 合流的转推地址 * * @since v4.0.0 */ @property (nonatomic, strong) NSString *publishUrl; /*! * @abstract 图像的宽度,默认值为 480 * * @since v4.0.0 */ @property (nonatomic, assign) int width; /*! * @abstract 图像的高度,默认值为 848 * * @since v4.0.0 */ @property (nonatomic, assign) int height; /*! * @abstract 帧率,默认值为 25 * * @since v4.0.0 */ @property (nonatomic, assign) int fps; /*! * @abstract 码率,单位为 bps,默认值为 1000*1000 * * @since v4.0.0 */ @property (nonatomic, assign) NSUInteger bitrateBps; /*! * @abstract 图像的填充模式,默认值为 QNVideoFillModePreserveAspectRatioAndFill * * @since v4.0.0 */ @property (nonatomic, assign) QNVideoFillModeType fillMode; /*! * @abstract 水印,为可选项 * * @since v4.0.0 */ @property (nonatomic, strong) NSArray *watermarks; /*! * @abstract 背景图片,为可选项 * * @since v4.0.0 */ @property (nonatomic, strong) QNTranscodingLiveStreamingImage *background; /*! * @abstract 最小码率,为可选项 * * @since v4.0.0 */ @property (nonatomic, assign) NSUInteger minBitrateBps; /*! * @abstract 最大码率,为可选项 * * @since v4.0.0 */ @property (nonatomic, assign) NSUInteger maxBitrateBps; /*! * @abstract 是否开启纯音频合流任务,默认为 NO * * @since 5.1.1 */ @property (nonatomic, assign) BOOL isAudioOnly; /*! * @abstract 创建默认配置的实例 * * @since v4.0.0 */ + (instancetype)defaultConfiguration; @end