×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    6

    player video http erro in prefetch

    Code:
            try
            {
    
    
                InputStream is = urlToStream(url);
                   
                player = Manager.createPlayer(is, "video/3gpp2");
                player.addPlayerListener(this);
                player.prefetch();
                player.realize();
    
                // get the video control and attach it to our canvas
                VideoControl videoControl = (VideoControl) (player.getControl("VideoControl"));
                if (videoControl != null)
                {
    
                    
                Item video = (Item)videoControl.initDisplayMode(videoControl.USE_GUI_PRIMITIVE, null);
                Form v = new Form("Playing Video...");
                StringItem si = new StringItem("Status: ", "Playing...");
                v.append(si);
                v.append(video);
                display.setCurrent(v);
                }
    
             //player.prefetch();
             player.start();
                
            }catch (IOException ioe)
            {
                alertError("IOException: " + ioe.getMessage());
            }
            catch (MediaException me)
            {
                alertError("MediaException: " + me.getMessage());
            }
            catch (SecurityException se)
            {
                alertError("SecurityException: " + se.getMessage());
            }
            catch (Exception ex)
            {
                alertError("Exception no init: " + ex.getMessage());
            }
    but on play error:

    prefetch error: -20


    any ideia? use sdk S60 (emulator)

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: player video http erro in prefetch

    Hi Pynon,

    Do you have that prefetch error with one specific URL, or with different ones?

    Pit

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    6

    Re: player video http erro in prefetch


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. cannot able to play a video file.
    By shalini.mishra in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2006-11-13, 16:54
  3. Replies: 1
    Last Post: 2005-06-16, 12:15
  4. Video Player Midlet problem - please help
    By L_Tambiah in forum Mobile Java General
    Replies: 0
    Last Post: 2004-06-26, 15:00

Posting Permissions

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