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
ushernut
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.

       

      
     

Please use plain text.
Administrator
MSohm
Posts: 14,410
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
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
Please use plain text.
Developer
ushernut
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.
Please use plain text.