RTCVideoRendererAdapter+Private.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright 2015 The WebRTC project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #import "RTCVideoRendererAdapter.h"
  11. #import "base/RTCVideoRenderer.h"
  12. #include "api/media_stream_interface.h"
  13. NS_ASSUME_NONNULL_BEGIN
  14. @interface RTCVideoRendererAdapter ()
  15. /**
  16. * The Objective-C video renderer passed to this adapter during construction.
  17. * Calls made to the webrtc::VideoRenderInterface will be adapted and passed to
  18. * this video renderer.
  19. */
  20. @property(nonatomic, readonly) id<RTC_OBJC_TYPE(RTCVideoRenderer)> videoRenderer;
  21. /**
  22. * The native VideoSinkInterface surface exposed by this adapter. Calls made
  23. * to this interface will be adapted and passed to the RTCVideoRenderer supplied
  24. * during construction. This pointer is unsafe and owned by this class.
  25. */
  26. @property(nonatomic, readonly) rtc::VideoSinkInterface<webrtc::VideoFrame> *nativeVideoRenderer;
  27. /** Initialize an RTCVideoRendererAdapter with an RTCVideoRenderer. */
  28. - (instancetype)initWithNativeRenderer:(id<RTC_OBJC_TYPE(RTCVideoRenderer)>)videoRenderer
  29. NS_DESIGNATED_INITIALIZER;
  30. @end
  31. NS_ASSUME_NONNULL_END