×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    2

    Question Creating a player from a local SDP

    Hi there,

    I want to know if it possible to create a player (using createPlayer), using a *local* SDP file as input. Something like:

    createPlayer("file:///wherever_it_is_stored_on_the_handset/filename.sdp")

    The SDP file contains the description of the media and also the remote RTSP URL where the stream can be found.

    Does anyone knows if a player can be created in such a way?

    Thanks.


    Ricardo

  2. #2
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,697

    Re: Creating a player from a local SDP

    hi Ricardo,

    do you want to stream content? if so you need either rtsp: or http: locators (depending on target device platform), streaming from local file is not supported on nokia devices yet
    (FN Java Developers Library excertp):
    Streaming
    RTSP

    The implementation supports Real Time Streaming Protocol (RTSP). RTSP player can be created by using the Manager.createPlayer method with the locator starting "rtsp://".

    A RTSP network access point must be set from RealPlayer, or Player.prefetch throws MediaException with the error code -39. RTSP connections always use the default access point set in Real Player. Depending on the product and operator configuration, a default access point may be set automatically.

    A 3G network connection is recommended to achieve smooth streaming

    The playable content types can be queried dynamically by calling Manager.getSupportedContentTypes( "rtsp" ).

    The supported content types for RTSP are listed in section Content types.
    S60 3rd Ed. FP 1: HTTP

    S60 3rd Ed. FP 1: HTTP streaming player is created using the Manager.createPlayer method with the locator starting "http://".

    Contrary to RTSP streaming, a HTTP streaming network connection is not dependent on RealPlayer. Instead the default Internet connection access point is used. If a default access point has not been set, then an access point selection dialog is presented.

    A 3G network connection is recommended to achieve smooth streaming

    HTTP Streaming is supported only for the content type audio/amr. With other types, the media data is downloaded completely before playing.
    InputStream

    Streaming from an InputStream is not supported. All the data available in an InputStream is consumed into a buffer before a player is created.
    regards,
    Peter

  3. #3
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,697

    Re: Creating a player from a local SDP

    [edit] wrong thread - removed

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    2

    Re: Creating a player from a local SDP

    Hi,

    Thanks for your reply.

    Indeed, I want to stream content, but I want another component (not the streaming server) to serve the SDP, because I need to do some SDP enrichment. Therefore, I need my Java App on the phone to get this SDP file from this other component and to instantiate the player based on it. This way, the player does not need to send a RTSP DESCRIBE to the streaming server, as it already has the SDP.

    But, anyway, you answered my question: Nokia does not support this.

    Thanks a lot!


    Best regards,
    Ricardo

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. SDP File on Nokia 6630 Real Player
    By manupeco in forum Streaming and Video
    Replies: 4
    Last Post: 2008-02-18, 11:59
  3. creating player with params
    By krelman in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2006-04-18, 12:02
  4. 66xx, Real Player & SDP
    By kootybug in forum Streaming and Video
    Replies: 0
    Last Post: 2005-04-20, 14:44

Posting Permissions

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