×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2011
    Posts
    11

    Unhappy Help!Probleam when playing rtsp video

    This probleam only happened on Nokia 308 & Nokia 311;
    the video has shown but no voice,but I used browser to player the rtsp video is ok~
    Fllowing is the implement code,my e-mail:cmmx207@163.com

    public synchronized void initPlayer() {

    try {
    if (player == null) {
    //url like "rtsp://211.136.119.78/test/38hua.3gp"
    player = Manager.createPlayer(url);
    }
    if (player != null) {
    player.addPlayerListener(this);
    player.realize();
    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, ""); //value is 55 but there's no voice
    }
    }
    player.prefetch();
    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
    Join Date
    Jul 2012
    Posts
    15

    Re: Help!Probleam when playing rtsp video

    I experienced similar thing: no sound on real Asha 305 device - but app works fine on SDK2.0 emulator...
    My app tried to play sound clips only...

    Is there any limitation to be aware of as app developer? E.g. supported audio file format - I use mp3 -, bit rate, size? Codec?
    Can 'Too big' application size result in such weird behavior?

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,684

    Re: Help!Probleam when playing rtsp video

    Specifications are available, you can find them under Devices above, Device specifications. Multimedia features are listed in the Multimedia group.
    Application size is probably not a concern, if it is too large, the application can not be installed and started.

  4. #4
    Registered User
    Join Date
    Jul 2012
    Posts
    15

    Re: Help!Probleam when playing rtsp video

    According to the specifications you mentioned, playing MP3 is supported feature - still no sound on real device...
    Any idea is more than welcome...

Similar Threads

  1. Replies: 1
    Last Post: 2011-06-10, 14:41
  2. RTSP Streaming error: error preparing video for playing
    By elshorbagy76 in forum Streaming and Video
    Replies: 0
    Last Post: 2010-09-14, 23:30
  3. Play a rtsp youtube video in Symbian Video player
    By murthy.pramod in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2010-09-14, 19:28
  4. RTSP Streaming error: error preparing video for playing
    By elshorbagy76 in forum [Archived] Flash Lite on Nokia Devices
    Replies: 0
    Last Post: 2010-09-13, 21:30
  5. Gap playing RTSP stream in S60
    By Tiger79 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2009-08-18, 09:02

Posting Permissions

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