08-19-2010 08:32 AM
I use a BB Curve 8520 and I want to use a media player.
Therefore I have the following code (here it's a snippet):
//Create a new Player pointing to the video file.
//This can use any valid URL.
String filePath = "file:///store/samples/videos/MuteMath.mp4";
FileConnection con = (FileConnection) Connector.open(filePath);
InputStream is = con.openInputStream();
player = Manager.createPlayer(is, "video/mp4");
//Create a new VideoControl.
videoControl = (VideoControl)player.getControl("VideoControl");
//Initialize the video mode using a Field.
//Set the video control to be visible.
catch (Exception ex)
When I press the space bar the player should start with player.start(). But the player doesn't start although the mp4 is there.
08-23-2010 11:11 AM
Third party applications are not able to access the sample content bundled with the BlackBerry device software. Try a different mp4 file that you have copied to your BlackBerry Smartphone.