Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development > iPhone SDK Development - Advanced Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 02-19-2010, 07:00 AM   #1 (permalink)
Registered Member
 
Join Date: Apr 2009
Posts: 82
Default Play Movie file in Portrait mode by MPMovieplayer

Hi,

I want to play video file from MPMovieplayer but in a portrait mode.
I am doing this by using following method.
Code:
[moviePlayer setOrientation:UIDeviceOrientationPortrait animated:YES];
but i have fear that this method is undocumented and app may get rejected because of this method,but in documentation I have not found anything which says video will run only in landscape mode.

Have any one faced same problem?is their any other method by which we can change its orientation?

Thanks in advance
Sanket
__________________
You can mail me at sanketsawant1@gmail.com
smsawant is offline   Reply With Quote
Old 02-22-2010, 01:21 AM   #2 (permalink)
Dr. Touch Cocoa Helpdesk
iPhone Dev SDK Supporter
 
Join Date: Sep 2008
Location: Vienna, Austria
Posts: 537
Send a message via AIM to Oliver Drobnik Send a message via MSN to Oliver Drobnik Send a message via Skype™ to Oliver Drobnik
Default

Quote:
Originally Posted by smsawant View Post
Hi,

I want to play video file from MPMovieplayer but in a portrait mode.
I am doing this by using following method.
Code:
[moviePlayer setOrientation:UIDeviceOrientationPortrait animated:YES];
but i have fear that this method is undocumented and app may get rejected because of this method,but in documentation I have not found anything which says video will run only in landscape mode.

Have any one faced same problem?is their any other method by which we can change its orientation?

Thanks in advance
Sanket

From the docs: Behavior in iPhone OS 3.1 and Earlier
In iPhone OS 3.1 and earlier, this class implemented a full-screen movie player only. After creating the movie player and initializing it with a single movie file, you called the play method to present the movie. (The definition of the play method has since moved out of this class and into the MPMediaPlayback protocol.) The movie player object itself handled the actual presentation of the movie content.


Full-Screen implies landscape, because videos are usually more wide than high. So on 3.1 and earlier that's how it is. When 3.2 will be released you have more options.
__________________
regards

Oliver Drobnik
Cocoanetics - Our DNA is programmed in Objective-C.

Linguan – makes localizing strings file fun!

Cocoanetics Parts Store – easy to use yet professionally looking components that you can use to spruce up your own apps. Augmented Reality, Calendar Control, Pin Lock or Purchase Button are only some examples. You get full source code, no static library crap, and lifetime support. Check it out today!
Oliver Drobnik is offline   Reply With Quote
Old 02-22-2010, 05:39 AM   #3 (permalink)
Registered Member
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,049
Default

Quote:
Originally Posted by smsawant View Post
Hi,

I want to play video file from MPMovieplayer but in a portrait mode.

but i have fear that this method is undocumented and app may get rejected because of this method,Sanket
You can embed the movie in a web view to play it portrait. Doing it with undocumented APIs will get your app rejected.
wuf810 is offline   Reply With Quote
Old 03-13-2010, 12:38 AM   #4 (permalink)
Registered Member
 
tawpie's Avatar
 
Join Date: Jul 2008
Posts: 347
Default

Quote:
Originally Posted by wuf810 View Post
You can embed the movie in a web view to play it portrait. Doing it with undocumented APIs will get your app rejected.
and setOrientation (personal experience) will get it rejected. The bot catches it.
__________________
"Hardware will break. Software comes broken" Unknown
Calc-12E <-- ditch your old calculator.
CPR•Choking <-- Review your training, just in case. (Free)
All of Nature NW <-- scrolls in x and y, with pinch zoom AND scrollable text to boot. It can be done ('taint easy tho)
tawpie is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 274
26 members and 248 guests
ADY, Bertrand21, Dani77, Dattee, fkmtc, HDshot, HemiMG, iDifferent, IphoneSdk, jakerocheleau, JasonR, jimbo, macquitzon216, MACralik, mer10, NSeven, prchn4christ, Rudy, sacha1996, silverwiz, sneaky, spiderguy84, Sunny46, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:05 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0