QNDirectLiveStreamingConfig.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // QNDirectLiveStreamingConfig.h
  3. // QNRTCKit
  4. //
  5. // Created by tony.jing on 2021/8/17.
  6. // Copyright © 2021 Pili Engineering, Qiniu Inc. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "QNTypeDefines.h"
  10. #import "QNTrack.h"
  11. NS_ASSUME_NONNULL_BEGIN
  12. @interface QNDirectLiveStreamingConfig : NSObject
  13. <
  14. NSCopying
  15. >
  16. /*!
  17. * @abstract 单路转推的 id
  18. *
  19. * @discussion streamID 为 CDN 转推过程中的唯一标识符
  20. */
  21. @property (nonatomic, strong) NSString *streamID;
  22. /*!
  23. * @abstract 单路转推的地址
  24. *
  25. * @discussion 当有单路转推及合流场景切换的需求时,流地址一样会导致抢流现象的出现,因此需要在流地址中拼接 '?serialnum=xxx' 决定流的优先级,serialnum 的值从 1 开始递增,值越大,优先级越高。
  26. */
  27. @property (nonatomic, strong) NSString *publishUrl;
  28. /*!
  29. * @abstract 音频 track
  30. *
  31. * @discussion 单路转推任务仅支持一路音频轨的设置,重复设置会被覆盖
  32. */
  33. @property (nonatomic, strong) QNLocalAudioTrack *audioTrack;
  34. /*!
  35. * @abstract 视频 track
  36. *
  37. * @discussion 单路转推任务仅支持一路视频轨的设置,重复设置会被覆盖
  38. */
  39. @property (nonatomic, strong) QNLocalVideoTrack *videoTrack;
  40. @end
  41. NS_ASSUME_NONNULL_END