02-09-2012 02:45 AM
Hello members
I have an issue while playing an audio file from the URL.Please Help me out
i am getting Critical Tunnel Failure Exception
Here is my code snippet
private class AudioPlaybackDemoScreen extends MainScreen
{
public AudioPlaybackDemoScreen()
{
UiApplication.getUiApplication().invokeLater(new Runnable() {
public void run() {
// TODO Auto-generated method stub
// put your code here.
try
{
Player p = javax.microedition.media.Manager.createPlayer("http://www.emp3world.com/to_download.php?id=124217");
p.realize();
VolumeControl volume = (VolumeControl)p.getControl("VolumeControl");
volume.setLevel(30);
p.prefetch();
p.start();
}
catch(MediaException me)
{
Dialog.alert(me.toString());
}
catch(IOException ioe)
{
Dialog.alert(ioe.toString());
}
}
});
}
}
Please let me know if someone has any ideas
Thanks
02-09-2012 06:09 AM
Thnx i have solved my solution