Results 1 to 4 of 4

Thread: HTTP Cupertino stream play/stop events

  1. #1
    Join Date
    Dec 2011
    Posts
    24

    Default HTTP Cupertino stream play/stop events

    Hi,

    I would like to know how to hook into play / stop events when IOS client is starting / stopping live stream.

    For RTMP connections I use ModuleBase.onStreamCreate() to attach IMediaStreamActionNotify object.

    At which point `Cupertino` stream is created ?

    So far I have ModuleBase.onHTTPCupertinoStreamingSessionCreate and ModuleBase.onHTTPCupertinoStreamingSessionDestroy methods. Here I can use httpSession.getStream(). Is this stream object proper object for addClientListener() ?

  2. #2

    Default

    Hi,

    Have a look at
    public void onHTTPSessionCreate(IHTTPStreamerSession httpSession) {
    		getLogger().info("onHTTPSessionCreate: " + httpSession.getSessionId());
    	}
    
    	public void onHTTPSessionDestroy(IHTTPStreamerSession httpSession) {
    		getLogger().info("onHTTPSessionDestroy: " + httpSession.getSessionId());
    	}
    which covers all the HTTP types and is probably the best place to add your listener.

    Shamrock

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

    Default

    The client will be null tho I am pretty sure in this case because IClient corresponds to a Flash NetConnection.

    Richard

  4. #4
    Join Date
    Dec 2011
    Posts
    24

    Default

    Is there exposed methods for Cupertino stream start/stop ? Because I have noticed that HTTP session is opened on playlist.m3u8 retrieval, and session is closed after certain time-out and that does not connect in any way with stream delivery.

    I need to know duration of outputted stream for IOS clients, without it we cannot implement billing logic.

Similar Threads

  1. how catch client events play, pause, stop, seek
    By dmitriy.kirakosyan in forum Video On Demand Streaming Discussion
    Replies: 15
    Last Post: 04-29-2016, 04:15 AM
  2. Handle Cupertino Streams play, seek events
    By herkules in forum Video On Demand Streaming Discussion
    Replies: 4
    Last Post: 01-23-2012, 09:03 AM

Posting Permissions

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