01-16-2009 02:39 PM
I am writing an app that starts playing a video upon startup.
I started with the example in the article: DB-00641
"How To - Play video within a BlackBerry smartphone application"
In this example, the user must press space to start the video.
My 8830 is running the latest available software for the device: 22.214.171.124
The example code works fine.
I would like to play the video without the pressing space, so I added a call to
after setting the video control to be visible, like this:
ms.setTitle(new LabelField("Let's play some video..."));
LabelField lf = new LabelField("Press space to start/stop/resume playback.");
//Create a new Player pointing to the video file.
//This can use any valid URL.
player = Manager.createPlayer("file:///SDCard/Blackberry/vi
//Create a new VideoControl.
videoControl = (VideoControl)player.getControl("VideoControl");
//Initialize the video mode using a Field.
//Set the video control to be visible.
// Added this line to start player now
catch (Exception ex)
It works in the Simulator 8800-126.96.36.199, but when I run it on a 8830, I get an exception that:
GUI primitive type not supported
I assume that the problem is with:
The JDE is v188.8.131.52
What could be the issue ? Thanks.
01-16-2009 03:26 PM
Just tried the changed code on a 8330 (Curve) running v184.108.40.206, and it works !
I guess the problem is that the 8830 is running 220.127.116.11 (and cannot be upgraded).
01-20-2009 01:52 PM