×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    46

    Question Audio not playing in Device

    Hellow all,

    Look at the code part :
    ///////////////////////////////////////////////////////////////////////////////

    try {
    player = Manager.createPlayer(URL);
    //in URL I have given a valid URL with a public IP

    player.prefetch();
    player.realize();
    player.start();
    } catch (IOException ex) {
    ex.printStackTrace();
    } catch (MediaException ex) {
    ex.printStackTrace();
    }

    //////////////////////////////////////////////////////////////////

    With the above code part, we are able to listen to the audio files from emulator.
    But we are not able to hear the audios in Nokia 7210 supernova. The audio is a .amr file.

    Can any one tell me what the problem might be ??

  2. #2
    Regular Contributor
    Join Date
    Oct 2007
    Location
    Pune
    Posts
    189

    Re: Audio not playing in Device

    Hello,

    Usually you should have called like this

    player.realize();
    player.prefetch();
    player.start();

    Not first prefetch() and then realize().
    Regards,
    Dinanath


    It's a matter of attitude.

  3. #3
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Audio not playing in Device

    Quote Originally Posted by dinanath.d View Post
    Usually you should have called like this

    player.realize();
    player.prefetch();
    player.start();
    He's right... though you can just start(). The other steps will happen automatically.

    Quote Originally Posted by bidyut84 View Post
    But we are not able to hear the audios in Nokia 7210 supernova.
    Check you have "warning sounds" switched on in the phone's ringer profile.

    Graham.

  4. #4
    Registered User
    Join Date
    Dec 2009
    Posts
    46

    Question Re: Audio not playing in Device

    Thanks All.

    I have tried the code giving only player.start() method.(I mean ,not calling prefetch() and realize() at all).

    I didnt knw about "warning sounds". Ok I will do it.

    But when I tried keeping a audio file in the jar itself, then it played.


    Is the issue is becoz the PLayer is taking lot of time to start or something like dat ??

  5. #5
    Registered User
    Join Date
    Dec 2009
    Posts
    46

    Talking Re: Audio not playing in Device

    Hi all,

    I tried with an audio file of size 9 kb. Then my code is working, I mean I am able to get audio from server and play in the device. Though it takes almost 10 sec to play.

    Thanx to All.

Similar Threads

  1. Pairing E61 with non audio device
    By LeChat in forum Bluetooth Technology
    Replies: 0
    Last Post: 2007-10-01, 10:08
  2. Replies: 4
    Last Post: 2007-02-07, 03:38
  3. Need Help with 6270: No audio when playing 3gp video
    By lordtrader in forum Streaming and Video
    Replies: 2
    Last Post: 2006-10-13, 06:04
  4. Half Duplex Audio Streaming
    By subhrajyotisaha in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2006-05-25, 04:39
  5. help with playing audio!! desperate!
    By tequilasunrise in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2005-01-03, 20:13

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×