RTCVideoTrack.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 "RTCMediaStreamTrack.h"
  11. #import "RTCMacros.h"
  12. NS_ASSUME_NONNULL_BEGIN
  13. @protocol RTC_OBJC_TYPE
  14. (RTCVideoRenderer);
  15. @class RTC_OBJC_TYPE(RTCPeerConnectionFactory);
  16. @class RTC_OBJC_TYPE(RTCVideoSource);
  17. RTC_OBJC_EXPORT
  18. @interface RTC_OBJC_TYPE (RTCVideoTrack) : RTC_OBJC_TYPE(RTCMediaStreamTrack)
  19. /** The video source for this video track. */
  20. @property(nonatomic, readonly) RTC_OBJC_TYPE(RTCVideoSource) *source;
  21. - (instancetype)init NS_UNAVAILABLE;
  22. /** Register a renderer that will render all frames received on this track. */
  23. - (void)addRenderer:(id<RTC_OBJC_TYPE(RTCVideoRenderer)>)renderer;
  24. /** Deregister a renderer. */
  25. - (void)removeRenderer:(id<RTC_OBJC_TYPE(RTCVideoRenderer)>)renderer;
  26. @end
  27. NS_ASSUME_NONNULL_END