Add multipleTouchEnabled for subview of RTCMTLVideoView and RTCEAGLVideoView

Bug: webrtc:11044
Change-Id: Ice4232d54d4680b3228295ef8053e405cd0fa786
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/157980
Reviewed-by: Peter Hanspers <peterhanspers@webrtc.org>
Commit-Queue: Kári Helgason <kthelgason@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29583}
This commit is contained in:
CZ Theng
2019-10-22 20:36:40 +08:00
committed by Commit Bot
parent 27c293665e
commit 0ff7c02bc9
2 changed files with 10 additions and 0 deletions

View File

@ -119,6 +119,11 @@
self.videoFrameSize = CGSizeZero;
}
- (void)setMultipleTouchEnabled:(BOOL)multipleTouchEnabled {
[super setMultipleTouchEnabled:multipleTouchEnabled];
self.metalView.multipleTouchEnabled = multipleTouchEnabled;
}
- (void)layoutSubviews {
[super layoutSubviews];

View File

@ -137,6 +137,11 @@
return YES;
}
- (void)setMultipleTouchEnabled:(BOOL)multipleTouchEnabled {
[super setMultipleTouchEnabled:multipleTouchEnabled];
_glkView.multipleTouchEnabled = multipleTouchEnabled;
}
- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self];
UIApplicationState appState =