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
Posts: 55
Registered: ‎09-09-2008
My Device: Not Specified

media player problem on 4.3.0

      In my application, I want to embed the video player into it, and I am using RIM API (4.3.0) to realize this.

                   As documentation said, I implemented like:

                 

                  player = Manager.createPlayer(url)
                  player.realize();
 
                   //Create a new VideoControl.
                   videoControl = (VideoControl)player.getControl("VideoControl");
                //Initialize the video mode using a Field.
                   Field videoField = (Field)videoControl.initDisplayMode(VideoControl.USE_GUI_PRIMITIVE, "net.rim.device.api.ui.Field");

 

       But there is an exception : java.lang.IllegalArgumentException: GUI primitive type not supported

       Had anybody have same problem? I think this is supported since 4.3.0.

      Thanks.

       

      
     

BlackBerry Development Advisor
Posts: 15,723
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: media player problem on 4.3.0

What version of BlackBerry handheld software are you testing this on?  You can see this under Options, About on the BlackBerry.
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
Posts: 55
Registered: ‎09-09-2008
My Device: Not Specified

Re: media player problem on 4.3.0

Oh, good question, I am using 4.3 JDE, but 4.2 simulator. I will try to use 4.3 simulator and see. Thanks.