QNLiveStreamingErrorInfo.h 654 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // QNLiveStreamingErrorInfo.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. typedef NS_ENUM(NSUInteger, QNLiveStreamingType){
  11. QNLiveStreamingTypeStart = 0,
  12. QNLiveStreamingTypeStop = 1,
  13. QNLiveStreamingTypeUpdate = 2
  14. };
  15. @interface QNLiveStreamingErrorInfo : NSObject
  16. /*!
  17. * @abstract error
  18. *
  19. * @since v4.0.0
  20. */
  21. @property (nonatomic, strong) NSError * error;
  22. /*!
  23. * @abstract 触发错误归属类型
  24. *
  25. * @since v4.0.0
  26. */
  27. @property (nonatomic, assign) QNLiveStreamingType type;
  28. @end