Results 1 to 8 of 8

Thread: play method is not invoked in case of Flash HTTP

  1. #1
    Join Date
    Jun 2013
    Posts
    10

    Default play method is not invoked in case of Flash HTTP

    I am running the examples and unable to invoke the play method in my custom Module for Flash HTTP client

    Flash HTTP:

    Stream : http://localhost:1935/vod/mp3:com.mp3/manifest.f4m

    LOGS:

    application app-start _definst_ vod/_definst_
    server comment - onStreamCreate: 1
    sanjose connect 1349562718 -
    stream create com.mp3 -
    server comment - onHTTPSessionCreate: 1349562718
    stream play com.mp3 -

    play method is invoked in case of Flash RTMP

    Flash RTMP:

    Server : rtmp://localhost/vod
    Stream : mp3:com.mp3

    LOGS:

    server comment - onAppStart: vod/_definst_
    application app-start _definst_ vod/_definst_
    session connect-pending 127.0.0.1 -
    server comment - onConnect: 2111253898
    session connect 127.0.0.1 -
    server comment - onConnectAccept: 2111253898
    server comment - onStreamCreate: 1
    stream create - -
    server comment - In play method
    server comment - client::rtmp://localhost/vod

    Why the methods onConnect,onConnectAccept and play method is invoked in Flash RTMP and not in Flash HTTP?

  2. #2

    Default

    Hi,

    HTTP session control is handled differently then RTMP. Take a look at this example module to achieve similar control for HTTP:
    How to control access to an HTTP stream (cupertinostreaming, smoothstreaming, sanjosestreaming)

    Salvadore

  3. #3
    Join Date
    Jun 2013
    Posts
    10

    Default

    Thanks for your reply, but how can i get the following parameters IClient client, RequestFunction function, AMFDataList params from IHTTPStreamerSession so that i can invoke any public method. Any working example for calling play(IClient client, RequestFunction function, AMFDataList params) from onHTTPSessionCreate method.

  4. #4
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    The IClient is the server-side of a RTMP NetConnection. There is not a NetConnection/IClient involved with HTTP sessions.

    Richard

  5. #5
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    What do you mean, invoke any public method? You can get to the application instance from a HTTPSession:

    IApplicationInstance appInstance = httpSession.getAppInstance();
    Richard

  6. #6
    Join Date
    Jun 2013
    Posts
    10

    Default

    In case of Flash HTTP can i over ride any one of the following methods
    public void publish(IClient client, RequestFunction function,AMFDataList params)
    public void releaseStream(IClient client, RequestFunction function, AMFDataList params)
    play(IClient client, RequestFunction function, AMFDataList params)
    If yes can you share any working example (or) inform me how to do it?

  7. #7
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    None of those methods are associated with Flash HTTP playback. Anything involving an IClient is specific to RTMP clients, because that is the server-side of the RTMP NetConnection.

    The publish and releaseStream methods are associated with publishing, not playback.

    Richard

  8. #8
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    What are you trying to accomplish, what is the requirement?

    Richard

Similar Threads

  1. Can't even play Flash HTTP stream
    By cesarona in forum Tutorials Discussion
    Replies: 5
    Last Post: 11-28-2012, 08:09 AM
  2. How to overwrite Dvr or Http play method
    By tujixx in forum AddOn: Wowza nDVR
    Replies: 3
    Last Post: 11-22-2012, 12:49 PM

Posting Permissions

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