BlackBerryForums.com : Your Number One BlackBerry Community
     

»Sponsored Links


BlackBerryApps.com Best Sellers



Closed Thread
 
LinkBack Thread Tools
  (#1 (permalink)) Old
aravi Offline
New Member
 
Posts: 12
Join Date: Feb 2006
Model: 7290
Default How to pause audio? - 10-20-2006, 02:39 AM

I am trying to play audio(WAV) file with 7100i simulator. It is playing perfectly.

But I want to "Pause" the audio and then "resume" it from where it paused. This is not working for me. Whenever I click on "resume" menu-item, it is playing from the beginning.

The code is given below.

public void pausePlay()
{
try
{
if (_player != null)
{
_player.stop();
}
}
catch(Exception e)
{

}
}

public void resumePlay()
{
try
{
if (_player != null)
{
_player.start();
}
}
catch(Exception e)
{

}
}

Somebody please help me.

Regards,
Ravi
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
aravi Offline
New Member
 
Posts: 12
Join Date: Feb 2006
Model: 7290
Default 10-26-2006, 03:14 AM

In the Player-->start(), it is specified that "If the Player was previously stopped by calling stop, it will resume playback from where it was previously stopped".

But I dont know why it is not working for me. Is this the problem with all models of Blackberry or only with 7100i model?

If somebody has already worked with Player, please solve this for me.

Thanks & Regards,
Ravi
   
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





Copyright © 2004-2009 BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.