Results 1 to 2 of 2

Thread: How to get HLS live stream information

  1. #1
    Join Date
    Apr 2015
    Posts
    2

    Default How to get stream Information for HLS(cupertino) live streaming

    Hi,
    I am working on wowza live streaming analytics module for hls and rtmp streams.
    i want to fetch following information from HLS and RTMP type live streaming...
    -> viewer's information
    -> viewer-end user-agent
    -> total data streamed to viewer
    -> total play duration of media
    -> flavours played during the stream.

    i've fetched this data for RTMP live striming using following listener and classes:
    ->Listener: IMediaStream.addClientListener()
    ->Notifier: IMediaStreamActionNotify3
    ->Some wowza's basic server API

    i am not aware about the listener to get stream specific information in case of HLS(cupertino) live streaming.
    i've achieved following in case of HLS(cupertino) live streaming:
    -> total data transferred to viewer
    -> user-agent
    -> viewer's information

    and the information that is not achieved yet in HLS live streaming:
    ->total play duration of media
    ->flavors played during the stream

    i've tried HTTPStreamerApplicationContextCupertinoStreamer.addVODActionListener() but is works with VOD type application only.

    Can you please help me on this?

    Thanks.
    Last edited by mohit.000; 05-22-2015 at 04:04 AM. Reason: more clearification of problem

  2. #2
    Join Date
    May 2013
    Posts
    680

    Default

    Hello

    For the two elements you are having trouble obtaining for live streams, you can check out the following:

    - Total Play Duration of the media

    if you are looking on a per client basis, you can simply use time running from the session object as follows:
    httpSession.getTimeRunningSeconds()
    - Flavors played during the stream

    You can depict which protocol by doing something like the following:

    public void onHTTPSessionCreate(IHTTPStreamerSession httpSession){
      switch(httpSession.getSessionProtocol()){
    	case IHTTPStreamerSession.SESSIONPROTOCOL_CUPERTINOSTREAMING:
    		getLogger().info("Cupertino..");
    	break;
    	case IHTTPStreamerSession.SESSIONPROTOCOL_MPEGDASHSTREAMING:
    		getLogger().info("Dash..");
    	break;
    	// ...
      }
    }
    Thanks,
    Matt

Similar Threads

  1. Replies: 1
    Last Post: 03-29-2015, 08:16 AM
  2. Stream Information
    By dirtystar in forum General Forum
    Replies: 1
    Last Post: 04-17-2012, 11:44 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
  •