Downloads the latest version of the JAR file from the provided URL, places it in ${wowza-directory}
Modifies all of the Application.xml files:
${wowza-directory}/Application.xml
Each subdirectory should also have an Application.xml, we want to modify all of them, such as ${wowza-directory}/live/Application.xml and ${wowza-directory}/vod/Application.xml
It inserts the LivepeerWowza module into the list of modules located at <Root><Application><Modules>:
<Module>
<Name>LivepeerWowza</Name>
<Description>Offloads Wowza transcoding to the Livepeer network</Description>
<Class>org.livepeer.LivepeerWowza.ModuleLivepeerWowza</Class>
</Module>
It also modifies ${wowza-directory}/conf/Server.xml to insert ${api-key}
Features
Configurables:
--wowza-directory=/path/to/WowzaStreamingEngine
/usr/local/WowzaStreamingEngine
/Program Files (x86)/Wowza Media Systems/Wowza Streaming Engine 4.7.7/
/Library/WowzaStreamingEngine
--channel=some-branch
— could bemaster
or any other branch namelatest
--api-key=F5E1D5FE-9238-4517-A4CF-816E983C903A
Server.xml
, re-use that.Behavior:
Queries the latest version of the JAR file from
https://build.livepeer.live/LivepeerWowza/${channel}.json
. It will return an object of the form:Downloads the latest version of the JAR file from the provided URL, places it in
${wowza-directory}
Modifies all of the Application.xml files:
${wowza-directory}/Application.xml
Application.xml
, we want to modify all of them, such as${wowza-directory}/live/Application.xml
and${wowza-directory}/vod/Application.xml
It inserts the LivepeerWowza module into the list of modules located at<Root><Application><Modules>
:It also modifies
${wowza-directory}/conf/Server.xml
to insert${api-key}