Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
12-17-2012 12:05 PM
I'm building an app for BlackBerry 10 and I used this code in config.xml:
<param name="mode" value="portrait" />
The problem: I have videos on this app, and when playing fullscreen they keep the portrait orientation. It would be great if I can allow landscape mode only when playing video fullscreen. Is that possible?
Solved! Go to Solution.
12-17-2012 12:59 PM
Currently the only way to do this would be to set the blackberry.app.orientation to AUTO.
When it detects orientation change, have it dynamically switch the corresponding CSS to make it show properly.
You can also check here:
Hope this helps.
12-17-2012 04:37 PM
Additional orientation api's were added in the last release:
You can also see sample usage here in the test suite:
If it helps, maybe you could contribute an update to the samples app with added functionality?
12-18-2012 05:00 AM
Thanks, I think that could help me a lot Do you know if it's possible to listen for events telling me when a video is going fullscreen or quitting fullscreen mode ?
12-18-2012 09:33 AM
It doesn't seem to be exceptionally well documented, but it is there.
12-18-2012 10:00 AM
Sorry, i just looked into this further. The windowState won't give you the correct information. "fullscreen" means the app is in the normal running state, not the full fideo screen mode like i thought. There may actually be a way to do it with HTML5 built-in functionality. Adobe has a test-suite that has some media tests that you you may want to check out:
12-18-2012 10:54 AM
Ok thanks, I'll look into it. My other option will be to programmatically allow orientation change when entering the screen with videos and forcing back "portrait mode" when leaving it. Then, I'll have to adapt the layout only for this screen*.
*of course, the best solution would be to make the entire app usable with both orientation
12-18-2012 03:52 PM
The following code seems to do it:
12-18-2012 05:07 PM
It is great that it works. If I recall correctly we ran into a limitation when locking the orientation of the application, then trying to allow rotation later. One thing you might want to note is that once you "unlock" in the config.xml, you should ensure you have portrait/landscape splash screen support.