Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User cmmx207's Avatar
    Join Date
    May 2011
    Posts
    11
    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 Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,672
    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 cmmx207's Avatar
    Join Date
    May 2011
    Posts
    11
    All right~I am sorry about that~

  4. #4
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    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 C++
    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. Please help: Player of stream from the network camera
    By kittinut_k in forum Mobile Web Site Development
    Replies: 2
    Last Post: 2008-03-27, 20:23
  4. Change stream without stopping the player?
    By cars2003 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 6
    Last Post: 2006-02-26, 18:24
  5. 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
  •  
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