123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- //
- // QNTranscodingLiveStreamingConfig.h
- // QNRTCKit
- //
- // Created by tony.jing on 2021/8/17.
- // Copyright © 2021 Pili Engineering, Qiniu Inc. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #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<QNTranscodingLiveStreamingImage *> *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
|