Jon Hjelle | e799bad | 2016-01-11 13:47:11 -0800 | [diff] [blame] | 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 | |
| 11 | #import <Foundation/Foundation.h> |
| 12 | #import <UIKit/UIKit.h> |
| 13 | |
tkchin | 9eeb624 | 2016-04-27 01:54:20 -0700 | [diff] [blame] | 14 | #import <WebRTC/RTCMacros.h> |
| 15 | #import <WebRTC/RTCVideoRenderer.h> |
magjed | 1394191 | 2017-05-30 06:11:58 -0700 | [diff] [blame] | 16 | #import <WebRTC/RTCVideoViewShading.h> |
Jon Hjelle | e799bad | 2016-01-11 13:47:11 -0800 | [diff] [blame] | 17 | |
| 18 | NS_ASSUME_NONNULL_BEGIN |
| 19 | |
| 20 | @class RTCEAGLVideoView; |
Kári Tristan Helgason | 06d094f | 2018-04-19 17:38:05 +0200 | [diff] [blame] | 21 | |
tkchin | 8b577ed | 2016-04-19 10:04:41 -0700 | [diff] [blame] | 22 | RTC_EXPORT |
Kári Tristan Helgason | 06d094f | 2018-04-19 17:38:05 +0200 | [diff] [blame] | 23 | @protocol RTCEAGLVideoViewDelegate<RTCVideoViewDelegate> |
Jon Hjelle | e799bad | 2016-01-11 13:47:11 -0800 | [diff] [blame] | 24 | @end |
| 25 | |
| 26 | /** |
| 27 | * RTCEAGLVideoView is an RTCVideoRenderer which renders video frames in its |
magjed | 1394191 | 2017-05-30 06:11:58 -0700 | [diff] [blame] | 28 | * bounds using OpenGLES 2.0 or OpenGLES 3.0. |
Jon Hjelle | e799bad | 2016-01-11 13:47:11 -0800 | [diff] [blame] | 29 | */ |
tkchin | 8b577ed | 2016-04-19 10:04:41 -0700 | [diff] [blame] | 30 | RTC_EXPORT |
Jon Hjelle | e799bad | 2016-01-11 13:47:11 -0800 | [diff] [blame] | 31 | @interface RTCEAGLVideoView : UIView <RTCVideoRenderer> |
| 32 | |
Kári Tristan Helgason | 06d094f | 2018-04-19 17:38:05 +0200 | [diff] [blame] | 33 | @property(nonatomic, weak) id<RTCVideoViewDelegate> delegate; |
Jon Hjelle | e799bad | 2016-01-11 13:47:11 -0800 | [diff] [blame] | 34 | |
magjed | 1394191 | 2017-05-30 06:11:58 -0700 | [diff] [blame] | 35 | - (instancetype)initWithFrame:(CGRect)frame |
| 36 | shader:(id<RTCVideoViewShading>)shader NS_DESIGNATED_INITIALIZER; |
| 37 | |
| 38 | - (instancetype)initWithCoder:(NSCoder *)aDecoder |
| 39 | shader:(id<RTCVideoViewShading>)shader NS_DESIGNATED_INITIALIZER; |
| 40 | |
Jon Hjelle | e799bad | 2016-01-11 13:47:11 -0800 | [diff] [blame] | 41 | @end |
| 42 | |
| 43 | NS_ASSUME_NONNULL_END |