BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-20-2009, 03:44 PM   #1 (permalink)
New Member
 
Join Date: Mar 2009
Model: 8320
PIN: N/A
Carrier: t-mobile
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Can not invoke Native Media Player with local files

Please Login to Remove!

I am trying to invoke the media player using a local file on the sd card. On the createMedia line, it throws an exception. The exception message is the name of the file.

MediaPlayer player = new MediaPlayer();
MediaManager manager = new MediaManager();
Object m = manager.createMedia(localFile, "audio/mpeg");
player.setMedia(m);
player.start();

Any ideas how I can play a local file?

I have been able to play sound files using the javax.microedition.media stuff, but it just plays the sound. I want them to have it in a player where they can see progress bar, stop/start, etc.
Offline  
Old 04-21-2009, 11:38 AM   #2 (permalink)
New Member
 
Join Date: Mar 2009
Model: 8320
PIN: N/A
Carrier: t-mobile
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

well for what it's worth... i never got this code to work. i ended up using the content handler api, but it doesn't work on version 4.2.... so it doesn't really meet the requirements of my project. I am looking at calling the CodeModuleManager for version 4.2, but it doesn't look promising.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

New Burkert Solenoid Valve 3/4 282-A-F-E-000 120V 450107D
$59.0
New Burkert Solenoid Valve 3/4 282-A-F-E-000 120V 450107D pictureLOT of 7 Sirai Z031 24V Lab Pinch Solenoid Valve w/Madonic CA530 PCB Assembly #3
$499.99
LOT of 7 Sirai Z031 24V Lab Pinch Solenoid Valve w/Madonic CA530 PCB Assembly #3 picture154490 New-No Box, Norgren 14JB Solenoid Coil, 24VAC, 2.5VA
$13.23
154490 New-No Box, Norgren 14JB Solenoid Coil, 24VAC, 2.5VA pictureVarian 69530302 Bonnet Bellows KF40 Vacuum Valve +Fabco-Air Pneumatic Solenoid
$70.99
Varian 69530302 Bonnet Bellows KF40 Vacuum Valve +Fabco-Air Pneumatic Solenoid pictureLOT of 2 Sirai Z031 24V Lab Pinch Solenoid Valve w/Madonic CA530 PCB Assembly #2
$178.99
LOT of 2 Sirai Z031 24V Lab Pinch Solenoid Valve w/Madonic CA530 PCB Assembly #2 picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.