KSLiveStreamVideo.h 711 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // KSLiveStreamVideo.h
  3. // LiveStreamDemo
  4. //
  5. // Created by Kyle on 2021/10/21.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import <UIKit/UIKit.h>
  9. #import <RongRTCLib/RongRTCLib.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface KSLiveStreamVideo : NSObject
  12. @property (nonatomic, strong) NSString *userId;
  13. @property(nonatomic, copy) NSString *streamId;
  14. /*!
  15. 包含子类的 RCRTCLocalVideoView 和 RCRTCRemoteVideoView
  16. */
  17. @property(nonatomic, strong) RCRTCVideoView *canvesView;
  18. /*!
  19. RCRTCRemoteVideoView 初始化
  20. @param streamId 音视频流 Id
  21. */
  22. - (instancetype)initWithStreamId:(NSString *)streamId;
  23. /*!
  24. 本地 RCRTCLocalVideoView 初始化
  25. */
  26. + (instancetype)LocalStreamVideo;
  27. @end
  28. NS_ASSUME_NONNULL_END