×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    7

    How to Invoke Real Player with JAR Resource

    I would like to run video clips that are resource files in my MIDlet JAR. These could be various video formats, but I have tested with MP4. I tried to get these to play using platformRequest, but the common uris have not invoked RealPlayer (or other platform resource) to render the video. Any suggestions? Thanks.

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: How to Invoke Real Player with JAR Resource

    Quote Originally Posted by epilot View Post
    I would like to run video clips that are resource files in my MIDlet JAR. These could be various video formats, but I have tested with MP4. I tried to get these to play using platformRequest, but the common uris have not invoked RealPlayer (or other platform resource) to render the video. Any suggestions? Thanks.
    Hi,
    Which device you are working with?
    1.which extension is opening the Real Player.
    2.Or neither of the extension is opening.
    I guess,opened Player will depends upon the extension and/or upon the default player available in the device.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Registered User
    Join Date
    Apr 2009
    Posts
    7

    Re: How to Invoke Real Player with JAR Resource

    I create an input stream and then try to create a player for it:

    InputStream is = getClass().getResourceAsStream("sound.wav");
    player = Manager.createPlayer(is, "audio/X-wav");
    player.start();

    where "sound.wav" is an ordinary wav file in the MIDlet jar. This works fine for wav audio, but I have been unable to apply a file type (i.e. "audio/X-wav") that launches a video player (e.g. Real Player) for .mp4 video (or other video formats) also in the MIDlet jar. I have found examples of streaming such video from a remote url, but not for getting it from clips in the jar. Can you suggest a file type designation (or other tactic) for any common video format that will launch a video player included on S60 devices?

    Many thanks.

  4. #4
    Registered User
    Join Date
    Apr 2009
    Posts
    7

    Re: How to Invoke Real Player with JAR Resource

    I found a reference to a supposedly valid MIME type for mp4 video. But this code:

    InputStream is = getClass().getResourceAsStream("anMP4File.MP4");
    player = Manager.createPlayer(is, "video/mp4");
    player.start();

    throws a MediaException saying it cannot create a player. "video/mp4" is the MIME type for input stream references; "video/mpeg4" is the alternative which cannot create a player from an input stream.

    I have assumed that RealPlayer as installed on the S60 will render mp4s and that a video player would thus be available. Any suggestions? Many thanks.

Similar Threads

  1. appuifw.app.menu limitations?
    By hurenkam in forum Symbian
    Replies: 11
    Last Post: 2008-09-16, 00:44
  2. Nokia models witn Real Player
    By veikoh in forum Symbian
    Replies: 2
    Last Post: 2008-05-22, 17:44
  3. Serious problem with Real player
    By AnttiS in forum Digital Rights Management & Content Downloading
    Replies: 7
    Last Post: 2008-02-08, 22:37
  4. Invoking Real One Player from the message
    By murateren in forum General Messaging
    Replies: 0
    Last Post: 2002-12-19, 11:52
  5. Mobile Real One Player on 9290 (9210i)
    By krajag in forum Mobile Java General
    Replies: 1
    Last Post: 2002-10-07, 17:57

Posting Permissions

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