Bakery is a proxy and filter for HLS and DASH manifests.
$ git clone https://github.com/cbsinteractive/bakery.git
$ export BAKERY_CLIENT_TIMEOUT=5s
$ export BAKERY_HTTP_PORT=:8082
$ export BAKERY_ENABLE_AUTH=false
$ export BAKERY_ORIGIN_HOST="https://streaming.cbs.com"
Note that BAKERY_ORIGIN_HOST
will be the base URL of your manifest files.
To enable Propeller as an origin you can set the following:
$ export BAKERY_PROPELLER_ENABLED=true
$ export BAKERY_PROPELLER_HOST="http://propeller.com"
$ export BAKERY_PROPELLER_CREDS="usr:pw"
Please reach out to the Propeller team for configuring your access prior to working with propeller origin channels.
If you want to enable XRAY to run on your local machine, you will need to run an xray daemon locally. For help on setting up a local instance, check the AWS documentation here
Once configured, you can enable the following environment variables:
$ export BAKERY_ENABLE_XRAY=true
$ export BAKERY_ENABLE_XRAY_PLUGINS=false #For local debugging you will want to set this to false
When enabled, Bakery will connect to the Daemon on the default port
$ make run
The API will be available on http://localhost[:BAKERY_HTTP_PORT]
$ make test
You can find documentation for Bakery at: bakery
If you have any questions regarding Bakery, please reach out in the #i-vidtech-mediahub channel.