blob: dba1d7ab642ffeddfe07b9ffd51de9d70179a310 [file] [log] [blame]
Jon Hjellee799bad2016-01-11 13:47:11 -08001/*
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
tkchin9eeb6242016-04-27 01:54:20 -070014#import <WebRTC/RTCMacros.h>
15#import <WebRTC/RTCVideoRenderer.h>
magjed13941912017-05-30 06:11:58 -070016#import <WebRTC/RTCVideoViewShading.h>
Jon Hjellee799bad2016-01-11 13:47:11 -080017
18NS_ASSUME_NONNULL_BEGIN
19
20@class RTCEAGLVideoView;
Kári Tristan Helgason06d094f2018-04-19 17:38:05 +020021
tkchin8b577ed2016-04-19 10:04:41 -070022RTC_EXPORT
Kári Tristan Helgason06d094f2018-04-19 17:38:05 +020023@protocol RTCEAGLVideoViewDelegate<RTCVideoViewDelegate>
Jon Hjellee799bad2016-01-11 13:47:11 -080024@end
25
26/**
27 * RTCEAGLVideoView is an RTCVideoRenderer which renders video frames in its
magjed13941912017-05-30 06:11:58 -070028 * bounds using OpenGLES 2.0 or OpenGLES 3.0.
Jon Hjellee799bad2016-01-11 13:47:11 -080029 */
tkchin8b577ed2016-04-19 10:04:41 -070030RTC_EXPORT
Jon Hjellee799bad2016-01-11 13:47:11 -080031@interface RTCEAGLVideoView : UIView <RTCVideoRenderer>
32
Kári Tristan Helgason06d094f2018-04-19 17:38:05 +020033@property(nonatomic, weak) id<RTCVideoViewDelegate> delegate;
Jon Hjellee799bad2016-01-11 13:47:11 -080034
magjed13941912017-05-30 06:11:58 -070035- (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 Hjellee799bad2016-01-11 13:47:11 -080041@end
42
43NS_ASSUME_NONNULL_END