Results 1 to 4 of 4

Thread: Recording status of a stream file via HTTP Provider

  1. #1
    Join Date
    Feb 2014
    Posts
    16

    Default Recording status of a stream file via HTTP Provider

    Hi,

    How can I get the recording status of a livestream via http url.

    for: eg: http://wowza-url:2000/recordingstatus?stream=1.stream

    I would like the recording status result will return, like any of the following, based on the current status:

    1. 1.stream - RECORDER_STATE_RECORDING
    2. 1.stream - RECORDER_STATE_ERROR
    3. 1.stream - RECORDER_STATE_PENDING
    4. 1.stream - RECORDER_STATE_WAITING
    Currently I am recording the live stream using module livestreamrecord.

    Tnx,
    Nin

  2. #2

    Default

    Hello there,

    There is nothing built in currently to do what you are describing. But you could write an HTTPProvider to achieve this.

    You will need the Wowza IDE:
    Wowza IDE

    And the IDE User Guide has a section on HTTPProviders:
    IDE User Guide

    NOTE: when installing the IDE do not copy the Location: wowza.com/wowzaide2 from the Wowza website, this will add extra information that "breaks" the install. you will need to type in "wowza.com/wowzaide2" for the URL in Eclipse

    If you need assistance with this project you can post a request to the find a consultant forum

    Kind regards,

    Salvadore

  3. #3
    Join Date
    May 2013
    Posts
    680

    Default

    If you do this in an http provider, you can grab a reference to your IStreamRecorder objects and check them as follows:
    Map<String, IStreamRecorder> recordingMap = vhost.getLiveStreamRecordManager().getRecordersMap(appInstance);
    Then you could iterate through the recorders and check the recorder.getRecorderState() as follows:
    int recordState = recorder.getRecorderState();
    if(recordState == IStreamRecorderConstants.RECORDER_STATE_ERROR){
      // do something
    }
    //etc..

  4. #4
    Join Date
    Feb 2014
    Posts
    16

    Default

    Hi Matt, Salvadore,

    Thank you very much for the support.

    I have created a custom http provider, as per your directions.

    Its working perfectly.

    Kind Regards,

    Nin

Similar Threads

  1. Add audio status to HTTP Provider
    By sethtvn in forum Wowza Streaming Server Java API
    Replies: 5
    Last Post: 07-09-2014, 07:55 AM
  2. Use HTTPS for an HTTP Provider?
    By guilleart in forum Server-side Modules and Code Samples Discussion
    Replies: 1
    Last Post: 11-28-2013, 12:52 PM
  3. Response return by http provider in demand recording
    By kavita in forum Video On Demand Streaming Discussion
    Replies: 2
    Last Post: 06-02-2013, 10:34 PM
  4. Recording File Path Changing and HTTP API stopping response
    By magicpro in forum AddOn: Other AddOns
    Replies: 1
    Last Post: 07-17-2012, 09:46 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
  •