Discussion Forums  >  Uncategorized

Replies: 3    Views: 670

trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
08/10/11 02:55 PM (14 years ago)

Force app to play videos in landscape mode only?

Since I don't want to give all my new video content away for free in my new app I'm using the streaming video company bitsontherun.com to host my videos. When i play the videos within my app (using my android phone, not the emulator) the videos will not play correctly in vertical mode. As soon as I switch the phone to horizontal (landscape) mode they play perfectly (well not as perfect as on bitsontherun.com but close enough). How can I force the videos to play in horizontal mode? Using v1.4 of buzztouch for now. I'll look for an answer on google as well. Thanks, Bruce
 
SWMobile
Aspiring developer
Profile
Posts: 5
Reg: Jun 23, 2011
Birmingham
50
like
08/10/11 03:01 PM (14 years ago)
Hi Bruce, Within Eclipse and the AndroidManifest.xml under <!-- screen activities --> there is a line which will say <activity android:name=.Screen_Video etc. Towards the end of that line it says android:screenOrientation=sensor. If you change the sensor to landscape, that should force the video to play landscape all the time.
 
trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
like
08/10/11 03:02 PM (14 years ago)
Thank you. Any idea how to do that in Xcode? b
 
trailman
Aspiring developer
Profile
Posts: 280
Reg: Dec 10, 2010
Sedona, az
6,550
like
08/10/11 04:34 PM (14 years ago)
That worked perfect. No need for Xcode fix. For some reason they play fine on the iPhone in portrait mode & landscape mode.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.