Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Artem
Posts: 53
Registered: ‎12-11-2008
My Device: Not Specified

How to play full screen video

Hi, I'm trying to write application that will play video and I found that it's not possible to make Blackberry play video in full screen mode or in rectangle with dimensions larger than size of video.

Video always plays in 1:1 mode even if VideoControl.setDisplaySize() VideoControl.setDisplayFullScreen() methods are used.

This issue is reproduced on OS 4.2, 4.3 and 4.5 and higher I guess.

 

Can somebody advise on this?

 

By the way, I found the following statement in SDK doc (in VideoControl.setDisplaySize() method description):

If the dimensions of the requested display size are bigger than the dimensions of the video clip, some implementations may resize the video while others may leave the video clip in the original size and just enlarge the display region.

 

It looks like the Blakberry implementation just leaves the video clip in the original size and just enlarge the display region.
BlackBerry Development Advisor
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: How to play full screen video

You are seeing the expected behaviour.  It is not possible to modify a video's aspect ratio.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Artem
Posts: 53
Registered: ‎12-11-2008
My Device: Not Specified

Re: How to play full screen video

Perhaps I wasn't clear - I am NOT
trying to change the aspect ratio, all I'm trying to do is to resize
the video MAINTAINING THE ASPECT RATIO using this particular
API which doesn't seem to work fully (I can set to play video in
full mode originally, however if I change the size to a smaller one,
I can't change back to its original, larger size).
Please let me know if there is an alternative API to achieve that.