summaryrefslogtreecommitdiff
path: root/platform/iphone/native_video_view.m
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-11-24 10:41:01 +0100
committerGitHub <noreply@github.com>2020-11-24 10:41:01 +0100
commit4159baff6c564eaaec1cbe1e546805dd42b9148f (patch)
treec0ed2d0c92e16eca0059553b51cc8d9544a7c38e /platform/iphone/native_video_view.m
parent617031434f8ce48194a411e5406b22efce92c940 (diff)
parent6b2483c331115d6b9a60548e0188eec5b168d916 (diff)
Merge pull request #42648 from naithar/fix/native_video_view
[iOS] Native video fixes
Diffstat (limited to 'platform/iphone/native_video_view.m')
-rw-r--r--platform/iphone/native_video_view.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/iphone/native_video_view.m b/platform/iphone/native_video_view.m
index a4e9f209f0..1193946f2b 100644
--- a/platform/iphone/native_video_view.m
+++ b/platform/iphone/native_video_view.m
@@ -71,6 +71,12 @@
[self observeVideoAudio];
}
+- (void)layoutSubviews {
+ [super layoutSubviews];
+
+ self.avPlayerLayer.frame = self.bounds;
+}
+
- (void)observeVideoAudio {
printf("******** adding observer for sound routing changes\n");
[[NSNotificationCenter defaultCenter]