Application HTTP Provider Manager

This module is a basic HTTP Provider that will allow remote requests to start, stop, create, and remove applications and mediacaster streams.

Some example requests:

1. Create Mediacaster Stream  

http://[wowza-ip]:8086/appcontrol?action=createMediaCasterStream&appName=live&mediaCasterName=file.stream&source=rtsp://username:password@[camera-ip]:554/media

 - Writes .stream file, adds to startup stream(s), and initiates connection
2. Remove Mediacaster Stream 

http://[wowza-ip]:8086/appcontrol?action=removeMediaCasterStream&appName=live&mediaCasterName=file.stream

 - Removes the .stream file, removes entry in startup streams, and stops stream connection
3. Start mediacaster stream 

http://[wowza-ip]:8086/appcontrol?action=startMediaCasterStream&appName=live&mediaCasterType=rtp&mediaCasterName=file.stream

 - Initiates connection with existing medicaster stream file
4. Stop mediacaster stream 

http://[wowza-ip]:8086/appcontrol?action=stopMediaCasterStream&appName=live&mediaCasterName=file.stream

 - Stops connection
5. Create Application 

http://[wowza-ip]:8086/appcontrol?action=createApplication&appName=[new-app-name]&streamType=live

 - This looks for template application-live.xml and copies that config to the corresponding [appname]/Application.xml and sets up new application
6. Remove Application 

http://[wowza-ip]:8086/appcontrol?removeApplication&appName=[app-name]&streamType=live

 - Deletes corresponding files and stops app

Configuration is simple within the Vhost.xml under the 8086 HostPort right before the HTTPServerVersion:

<HTTPProvider>
<BaseClass>guru.thewowza.ApplicationHTTPProvider</BaseClass>
<RequestFilters>appcontrol*</RequestFilters>
<AuthenticationMethod>admin-digest</AuthenticationMethod>
</HTTPProvider>

Please download the entire HTTP Provider source here.

*You will need json-simple-1.1.jar also in your lib/ folder for this to work (handles JSON output).


Comments are closed.