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?
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.
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!
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)