[vlc-devel] [PATCH] ios: force vout controller to fill parent view (fixes #7657)
Gleb Pinigin
gpinigin at gmail.com
Tue Mar 19 17:09:58 CET 2013
---
Classes/MVLCMovieViewController.m | 12 ++----------
Resources/MVLCMovieView~ipad.xib | 14 ++++++--------
Resources/MVLCMovieView~iphone.xib | 11 +++++------
3 files changed, 13 insertions(+), 24 deletions(-)
diff --git a/Classes/MVLCMovieViewController.m b/Classes/MVLCMovieViewController.m
index db2da7a..9acf845 100644
--- a/Classes/MVLCMovieViewController.m
+++ b/Classes/MVLCMovieViewController.m
@@ -54,6 +54,8 @@ static NSString * MVLCMovieViewControllerHUDFadeOutAnimation = @"MVLCMovieViewCo
- (void)viewDidLoad {
[super viewDidLoad];
+ self.wantsFullScreenLayout = YES;
+
_mediaPlayer = [[VLCMediaPlayer alloc] init];
[_mediaPlayer setDelegate:self];
[_mediaPlayer setDrawable:self.movieView];
@@ -172,16 +174,6 @@ static NSString * MVLCMovieViewControllerHUDFadeOutAnimation = @"MVLCMovieViewCo
return YES;
}
-- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation duration:(NSTimeInterval)duration {
- // Let's work around the "rotate + statusbar = weird re-layout"
- if ([UIApplication sharedApplication].statusBarHidden) {
- // If the status bar isn't here, let's "save the spot"
- self.topView.frame = CGRectMake(0.0f, 20.0f, self.topView.frame.size.width, self.topView.frame.size.height);
- } else {
- self.topView.frame = CGRectMake(0.0f, 0.0f, self.topView.frame.size.width, self.topView.frame.size.height);
- }
-}
-
- (void)appWillResign:(NSNotification *)aNotification
{
if (self.file) {
diff --git a/Resources/MVLCMovieView~ipad.xib b/Resources/MVLCMovieView~ipad.xib
index 500ef43..89e6b31 100644
--- a/Resources/MVLCMovieView~ipad.xib
+++ b/Resources/MVLCMovieView~ipad.xib
@@ -47,7 +47,7 @@
<string key="NSFrameSize">{768, 1004}</string>
<reference key="NSSuperview" ref="191373211"/>
<reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="691950689"/>
+ <reference key="NSNextKeyView" ref="720789294"/>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">1</int>
<bytes key="NSRGB">MCAwIDAAA</bytes>
@@ -117,7 +117,7 @@
<string key="NSFrame">{{51, 303}, {298, 53}}</string>
<reference key="NSSuperview" ref="691950689"/>
<reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="720789294"/>
+ <reference key="NSNextKeyView" ref="248075313"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<reference key="IBUIBackgroundColor" ref="711731296"/>
<bool key="IBUIOpaque">NO</bool>
@@ -301,6 +301,7 @@
<string key="NSFrame">{{78, 57}, {274, 23}}</string>
<reference key="NSSuperview" ref="248075313"/>
<reference key="NSWindow"/>
+ <reference key="NSNextKeyView"/>
<reference key="IBUIBackgroundColor" ref="711731296"/>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
@@ -324,14 +325,14 @@
<string key="NSFrame">{{63, 11}, {593, 23}}</string>
<reference key="NSSuperview" ref="720789294"/>
<reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="248075313"/>
+ <reference key="NSNextKeyView" ref="691950689"/>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
<int key="IBUIContentHorizontalAlignment">0</int>
<int key="IBUIContentVerticalAlignment">0</int>
</object>
</array>
- <string key="NSFrameSize">{768, 44}</string>
+ <string key="NSFrame">{{0, 20}, {768, 44}}</string>
<reference key="NSSuperview" ref="191373211"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="1049228138"/>
@@ -364,7 +365,7 @@
</array>
</object>
</array>
- <string key="NSFrame">{{0, 20}, {768, 1004}}</string>
+ <string key="NSFrameSize">{768, 1004}</string>
<reference key="NSSuperview"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="1069699796"/>
@@ -372,9 +373,6 @@
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MAA</bytes>
</object>
- <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics">
- <int key="IBUIStatusBarStyle">2</int>
- </object>
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
</object>
</array>
diff --git a/Resources/MVLCMovieView~iphone.xib b/Resources/MVLCMovieView~iphone.xib
index f8d933e..008e1cf 100644
--- a/Resources/MVLCMovieView~iphone.xib
+++ b/Resources/MVLCMovieView~iphone.xib
@@ -47,7 +47,7 @@
<string key="NSFrameSize">{320, 460}</string>
<reference key="NSSuperview" ref="191373211"/>
<reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="629468800"/>
+ <reference key="NSNextKeyView" ref="557375485"/>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">1</int>
<bytes key="NSRGB">MCAwIDAAA</bytes>
@@ -116,7 +116,7 @@
<string key="NSFrame">{{20, 199}, {289, 53}}</string>
<reference key="NSSuperview" ref="629468800"/>
<reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="557375485"/>
+ <reference key="NSNextKeyView" ref="592160978"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<reference key="IBUIBackgroundColor" ref="172308136"/>
<bool key="IBUIOpaque">NO</bool>
@@ -330,14 +330,14 @@
<string key="NSFrame">{{62, 11}, {145, 23}}</string>
<reference key="NSSuperview" ref="557375485"/>
<reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="592160978"/>
+ <reference key="NSNextKeyView" ref="629468800"/>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<int key="IBUIContentHorizontalAlignment">0</int>
<int key="IBUIContentVerticalAlignment">0</int>
</object>
</array>
- <string key="NSFrameSize">{320, 44}</string>
+ <string key="NSFrame">{{0, 20}, {320, 44}}</string>
<reference key="NSSuperview" ref="191373211"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="983345790"/>
@@ -370,7 +370,7 @@
</array>
</object>
</array>
- <string key="NSFrame">{{0, 20}, {320, 460}}</string>
+ <string key="NSFrameSize">{320, 460}</string>
<reference key="NSSuperview"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="1066569913"/>
@@ -378,7 +378,6 @@
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MAA</bytes>
</object>
- <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
</object>
</array>
--
1.7.12.4 (Apple Git-37)
More information about the vlc-devel
mailing list