summaryrefslogtreecommitdiff
path: root/platform/iphone/native_video_view.m
diff options
context:
space:
mode:
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]