×

Discussion Board

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

    Question about Stream Player

    Hi,guys:
    Does any body know what cause the Player throw an exception called "Unable to realize".My test phone is Samsung S5620.I want to play a 3gp video using "rtsp protocol".Following is pieces of my code.
    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();
    if (volumeLevel == 0) {
    volumeC.setLevel(60);
    }
    }
    }

    in_Player_State = PLAYER_STATE_DEVICE_PREPARE;
    player.start();
    setVisable(true);
    in_Player_State = PLAYER_STATE_DEVICE_STARTED;
    }catch(Exception e){
    //Unable to realize -initial failed
    }

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: Question about Stream Player

    Hello, please do observe the different section in this Discussion board. Basically you have posted this under General discussions, and indeed you are having very specific technical question concerning Java development. Thus in the future, please do post your questions under correct technology as well as correct sub category under the selected technology.

    Also do note that this is indeed Nokia developer discussion board, if your problems are concerning other manufacturers devices, please use their own discussion board for questions.

  3. #3
    Registered User
    Join Date
    May 2011
    Posts
    11

    Re: Question about Stream Player

    All right~I am sorry about that~

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: Question about Stream Player

    The thread is moved to the Java Media board now, the manufacturer concerns still apply.

Similar Threads

  1. RC4 stream ---> player
    By Ristar in forum Symbian
    Replies: 5
    Last Post: 2009-08-21, 10:57
  2. RC4 stream ---> player
    By Ristar in forum Mobile Java General
    Replies: 1
    Last Post: 2009-07-20, 08:28
  3. Change stream without stopping the player?
    By cars2003 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 6
    Last Post: 2006-02-26, 18:24
  4. N70 - Cannot stream Real Player, why?
    By teura666 in forum Streaming and Video
    Replies: 2
    Last Post: 2006-01-19, 09: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
  •