Skip to content

Commit 25d7f19

Browse files
committed
Merge commit '09f609bbf093af780ff87f8b44232a445a79d1de'
2 parents 4d19ccd + 09f609b commit 25d7f19

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ Documentation/
22
examples/
33
apple/WebRTC.xcframework
44
apple/WebRTC.dSYMs
5+
android/build/
56
*.jar
67
*.tgz
78
*.zip
9+
.github

ios/RCTWebRTC/RTCVideoViewManager.m

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#import <objc/runtime.h>
33

44
#import <React/RCTLog.h>
5+
#import <React/RCTView.h>
6+
57
#import <WebRTC/RTCMediaStream.h>
68
#if TARGET_OS_OSX
79
#import <WebRTC/RTCMTLNSVideoView.h>
@@ -42,12 +44,7 @@ typedef NS_ENUM(NSInteger, RTCVideoViewObjectFit) {
4244
* Implements an equivalent of {@code HTMLVideoElement} i.e. Web's video
4345
* element.
4446
*/
45-
46-
#if TARGET_OS_OSX
47-
@interface RTCVideoView : NSView
48-
#else
49-
@interface RTCVideoView : UIView
50-
#endif
47+
@interface RTCVideoView : RCTView
5148

5249
/**
5350
* The indicator which determines whether this {@code RTCVideoView} is to mirror
@@ -252,11 +249,7 @@ @implementation RTCVideoViewManager
252249

253250
RCT_EXPORT_MODULE()
254251

255-
#if TARGET_OS_OSX
256-
- (NSView *)view {
257-
#else
258-
- (UIView *)view {
259-
#endif
252+
- (RCTView *)view {
260253
RTCVideoView *v = [[RTCVideoView alloc] init];
261254
v.module = [self.bridge moduleForName:@"WebRTCModule"];
262255
v.clipsToBounds = YES;

0 commit comments

Comments
 (0)