×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    3

    Does J2ME Media Player on Nokia E65 work?

    I'm trying to write a simple media playback application in J2ME. Currently I'm starting with the most simple thing, I just want to play wav file from resource included in the jar file. I'm using this simple code:

    Code:
    DataInputStream wav =
        new DataInputStream(getClass().getResourceAsStream("sample.wav"));
    Player player = Manager.createPlayer(wav, "audio/x-wav");
    player.addPlayerListener(this);
    player.realize();
    VolumeControl vc = (VolumeControl) player.getControl("VolumeControl");
    if( vc != null )
        vc.setLevel(100);
    player.start();
    I stripped some logging code. I run it on two phones: Nokia E65 with latest firmware and Nokia 3110c with original firmware. On E65 I see that the player is created, it starts playing and there are no exceptions thrown. But I can hear nothing... The same wave file works fine with built in media player. As you see I have a player listener attached and it only receives single message: STARTED. There is no VOLUME_CHANGED and END_OF_MEDIA event.

    The same jar file run on 3110c plays fine and shows all expected player events.

    Any idea what may be wrong with the E65 or what I'm doing wrong? Thanks in advance.

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

    Re: Does J2ME Media Player on Nokia E65 work?

    Make sure you have "warning sounds" switched on in the current profile.

    Graham.

  3. #3
    Registered User
    Join Date
    Jan 2010
    Posts
    3

    Re: Does J2ME Media Player on Nokia E65 work?

    Quote Originally Posted by grahamhughes View Post
    Make sure you have "warning sounds" switched on in the current profile.
    Thanks for your reply.
    Could you please write something more about it? How do I check/enable those "warning sounds" ?

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

    Re: Does J2ME Media Player on Nokia E65 work?

    I don't have an E65... check the manual for the device. On the N96, it's in Tools, Profiles, (select profile), Options, Personalise, Warning Tones.

    Graham.

  5. #5
    Registered User
    Join Date
    Jan 2010
    Posts
    3

    Re: Does J2ME Media Player on Nokia E65 work?

    It worked! THANKS!
    Can this setting be read by the j2me application to show warning for users who have this turned off?

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

    Re: Does J2ME Media Player on Nokia E65 work?

    No, there's no way to check from in the code.

Similar Threads

  1. Create 3GP player with J2ME for Mobile
    By dexxa05 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 57
    Last Post: 2012-01-10, 11:44
  2. Infra-red capability
    By Symbian_Challenge_0412 in forum General Development Questions
    Replies: 1
    Last Post: 2005-08-16, 18:24
  3. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46

Posting Permissions

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