2016-01-11 13:47:11 -08:00
|
|
|
/*
|
|
|
|
|
* Copyright 2015 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2017-01-13 07:10:16 -08:00
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
2016-04-27 01:54:20 -07:00
|
|
|
#if !TARGET_OS_IPHONE
|
2016-01-11 13:47:11 -08:00
|
|
|
|
|
|
|
|
#import <AppKit/NSOpenGLView.h>
|
|
|
|
|
|
2016-04-27 01:54:20 -07:00
|
|
|
#import <WebRTC/RTCVideoRenderer.h>
|
2016-01-11 13:47:11 -08:00
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
|
|
@class RTCNSGLVideoView;
|
|
|
|
|
@protocol RTCNSGLVideoViewDelegate
|
|
|
|
|
|
|
|
|
|
- (void)videoView:(RTCNSGLVideoView *)videoView didChangeVideoSize:(CGSize)size;
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
@interface RTCNSGLVideoView : NSOpenGLView <RTCVideoRenderer>
|
|
|
|
|
|
|
|
|
|
@property(nonatomic, weak) id<RTCNSGLVideoViewDelegate> delegate;
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|
2016-04-27 01:54:20 -07:00
|
|
|
|
|
|
|
|
#endif
|