OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2017 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 |
| 11 #import <Foundation/Foundation.h> |
| 12 |
| 13 #import "WebRTC/RTCVideoRenderer.h" |
| 14 |
| 15 NS_ASSUME_NONNULL_BEGIN |
| 16 RTC_EXPORT |
| 17 |
| 18 /** |
| 19 * RTCMTLVideoView is thin wrapper around MTKView. |
| 20 * |
| 21 * It has id<RTCVideoRenderer> property that renders video frames in the view's |
| 22 * bounds using Metal. |
| 23 */ |
| 24 NS_CLASS_AVAILABLE_IOS(9) |
| 25 @interface RTCMTLVideoView : UIView |
| 26 |
| 27 /** |
| 28 * Renderer class that can render RTCVideoTrack. |
| 29 */ |
| 30 @property(nonatomic, readonly) id<RTCVideoRenderer> renderer; |
| 31 |
| 32 /** |
| 33 * Sets up the renderer. |
| 34 * |
| 35 * If the method returns NO it signifies the renderer is unable to perform prope
r setup and |
| 36 * it's responsibility of the caller to perform all necessary clean up after thi
s point. |
| 37 * Unexpected behavior can happen if the cleanup doesn't happen. |
| 38 */ |
| 39 - (BOOL)setupRenderer; |
| 40 |
| 41 @end |
| 42 NS_ASSUME_NONNULL_END |
OLD | NEW |