If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

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

Native Development

Reply
Developer
Enaud
Posts: 61
Registered: ‎02-08-2013
My Device: z10
My Carrier: rogers
Accepted Solution

MediaPlayer Video Dimensions

Hi All,

 

I'm trying to add in-app video play back (as an improvement over invoking the media player) but I can't figure out how to set the foreignWindowControl size.

 

The media player docs show that the videoDimensions member will return a QRect with the video's size once playback has began but instrumentation in the mediaStateChanged() slot show that the QRect height and width is zero in the Prepared and Started stated.

 

So, the questions are:

1. What's the best way to determining what size the foreignWindowControl should be and at what point is it best set to that size?

2. What's the deal with the videoDimensions member function?

 

Cheers,

-e

Please use plain text.
Developer
Enaud
Posts: 61
Registered: ‎02-08-2013
My Device: z10
My Carrier: rogers

Re: MediaPlayer Video Dimensions

Solved. need to have a slot registered to the media player's videoDimensionsChanged signal.

Please use plain text.