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.stream - RECORDER_STATE_RECORDING
-
1.stream - RECORDER_STATE_ERROR
-
1.stream - RECORDER_STATE_PENDING
-
1.stream - RECORDER_STATE_WAITING
Currently I am recording the live stream using module livestreamrecord.
Tnx,
Nin
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
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..
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