×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Jan 2007
    Location
    Bangalore, India
    Posts
    100

    Cannot Play AMR File

    Hi,
    Iam using JAVA WTK 2.5, Iam trying to play an AMR file, but Iam getting the exception
    "javax.microedition.media.MediaException: Cannot create a Player for: audio/amr with exception message: Error: Can not find QuickTime path in registry."
    Can anybody tell me the reason for the same, what am I missing, My code is as follows
    String resfile_name = "/test.amr";//the test.amr file is in the res folder of the project
    InputStream is2 = null;
    is2 = this.getClass().getResourceAsStream(resfile_name);
    player = Manager.createPlayer(is, "audio/amr" );
    // registering the playerthread as a PlayerListener
    player.addPlayerListener(this);
    // Allocating the resources for the audio data
    player.realize();
    // start the playback
    player.start();
    But when i tried the getSupportedContentTypes() I got the supported methods as
    Supported = video/mpeg
    Supported = image/gif
    Supported = audio/x-wav
    Supported = audio/amr
    Supported = audio/x-tone-seq
    Supported = audio/sp-midi
    Supported = audio/midi
    Supported = video/mpeg
    Supported = image/gif
    Supported = audio/x-wav
    Supported = audio/amr
    Supported = audio/x-tone-seq
    Supported = video/vnd.sun.rgb565
    Supported = audio/sp-midi
    Supported = audio/midi


    Thanks in Advance
    with regards,
    Khalandar Pasha N
    (khalandar_p@yahoo.co.in)

  2. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    62

    Re: Cannot Play AMR File

    Based on the error message that mentions QuickTime, I would guess that the WTK uses internally QuickTime to play the AMR files, and that WTK cannot now locate QuickTime.

    Do you have QuickTime installed on the computer? http://www.apple.com/quicktime/download/

  3. #3
    Regular Contributor
    Join Date
    Jan 2007
    Location
    Bangalore, India
    Posts
    100

    Thumbs up Re: Cannot Play AMR File

    Thanks for replying,
    No i dont have Quick Time installed on my System, I willl download and try with it and post the results. I tried the same program with Sony Ericsson Emulator and its working fine, But I need it to work on Java WTK 2.5 only as SIP is not supported by Sony Phones.
    with regards,
    Khalandar Pasha N
    (khalandar_p@yahoo.co.in)

  4. #4
    Regular Contributor
    Join Date
    Jan 2007
    Location
    Bangalore, India
    Posts
    100

    Re: Cannot Play AMR File

    I installed the Quick Time software on my system and now my WTK2.5 is able to play even AMR files. Thank you for solving my Problem
    Thanks once again
    with regards,
    Khalandar Pasha N
    (khalandar_p@yahoo.co.in)

Similar Threads

  1. Contacts fields order??
    By timatima in forum Symbian
    Replies: 1
    Last Post: 2007-06-08, 13:51
  2. MediaException when prefetch or play an amr file of 6230i
    By qiu_swing in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2006-09-27, 17:21
  3. Is it possible to play video file per frame.
    By b4605318 in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2006-04-25, 17:03
  4. amr file is not playing properly
    By S.S.Sudhakar in forum Symbian
    Replies: 3
    Last Post: 2004-10-07, 06:19

Posting Permissions

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