Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User cmmx207's Avatar
    Join Date
    May 2011
    Posts
    11
    I developed an app for watching video,but I can't hear the voice.
    But it works on other Nokia phones(Like NokiaX3-02)~

    And when I used the browser to watch the video,the voice can be heard
    Does anybody know why?


    public synchronized void initPlayer() {
    Util.writeLog("player url = "+url, "");
    try {
    if (player == null) {
    player = Manager.createPlayer(url);
    player.addPlayerListener(this);
    }
    if (player != null) {
    player.realize();
    player.prefetch();
    Control[] controls = player.getControls();
    for (int i = 0; i < controls.length; i++) {
    if (controls[i] instanceof VideoControl) {
    videoC = (VideoControl) controls[i];
    videoC.initDisplayMode(VideoControl.USE_DIRECT_VIDEO,
    Display.getInstance().getCanvasImpl());
    videoC.setDisplayLocation(videoX, videoY);
    videoC.setDisplaySize(videoW, videoH);
    videoC.setVisible(false);
    }
    if (controls[i] instanceof VolumeControl) {
    volumeC = (VolumeControl) controls[i];
    volumeLevel = volumeC.getLevel();
    Util.writeLog("volumeLevel == "+volumeLevel, ""); //it has value but there's no voice
    }
    }

    in_Player_State = PLAYER_STATE_DEVICE_PREPARE;
    player.start();

    setVisable(true);
    in_Player_State = PLAYER_STATE_DEVICE_STARTED;
    videoForm.showBufferLabel(Consts.FREEFEES,"initPlayer");
    }
    } catch (Exception e) {
    closePlayer();
    playerUpdate(null, PLAYEREXCEPTION, null);
    }
    }

  2. #2
    Registered User grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    Do any other Java applications play sound? Check that "Warning Sounds" are switched on in the current ring-tone profile (and that the current profile is not silent!).

    Graham.

Similar Threads

  1. J2ME concurrent voice data processing and voice recording
    By seshu_tolety in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2009-02-04, 01:51
  2. J2ME Concurrent voice data processing and voice recording
    By seshu_tolety in forum Streaming and Video
    Replies: 0
    Last Post: 2009-02-02, 03:41
  3. Voice Dialling/Recognition via Voice Tags
    By tarunnasa in forum Symbian C++
    Replies: 0
    Last Post: 2005-05-10, 20:43
  4. Replies: 1
    Last Post: 2002-10-29, 03:54

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved