WebRTCPlayerView.h 608 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // WebRTCPlayerView.h
  3. // sources
  4. //
  5. // Created by huangchunquan on 2025/3/20.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import <WebRTC/RTCMTLVideoView.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. RTC_OBJC_EXPORT
  11. @protocol WebRTCPlayerViewDelegate <NSObject>
  12. - (void)WebRTCPlayerViewTouchBack:(NSData*) touchesdata;
  13. @end
  14. RTC_OBJC_EXPORT
  15. @interface WebRTCPlayerView : UIView
  16. @property(nonatomic,readonly) __kindof UIView<RTC_OBJC_TYPE(RTCVideoRenderer)> *remoteVideoView;
  17. @property(nonatomic,assign) UIViewContentMode videoContentMode;
  18. @property(nonatomic,weak) id<WebRTCPlayerViewDelegate> delegate;
  19. @end
  20. NS_ASSUME_NONNULL_END