ScreenCapturer.h 657 B

1234567891011121314151617181920212223
  1. // From https://github.com/react-native-webrtc/react-native-webrtc (MIT License)
  2. // SPDX-FileCopyrightText: 2023 React-Native-WebRTC authors
  3. // SPDX-License-Identifier: MIT
  4. #import <AVFoundation/AVFoundation.h>
  5. #import <WebRTC/RTCVideoCapturer.h>
  6. #import "CapturerEventsDelegate.h"
  7. NS_ASSUME_NONNULL_BEGIN
  8. @class SocketConnection;
  9. @interface ScreenCapturer : RTCVideoCapturer
  10. @property(nonatomic, weak) id<CapturerEventsDelegate> eventsDelegate;
  11. - (instancetype)initWithDelegate:(__weak id<RTCVideoCapturerDelegate>)delegate;
  12. - (void)startCaptureWithConnection:(nonnull SocketConnection *)connection;
  13. - (void)stopCapture;
  14. @end
  15. NS_ASSUME_NONNULL_END