Search code examples
amazon-web-servicesamazon-ec2wowza

Update wowza StreamPublisher schedule via REST API (or alternative)


Just getting started with Wowza Streaming Engine.

Objective:

  • Set up a streaming server which live streams existing video (from S3) at a pre-defined schedule (think of a tv channel that linearly streams - you're unable to seek through).
  • Create a separate admin app that manages that schedule and updates the streaming app accordingly.
  • Accomplish this with as a little custom Java as possible.

Questions:

  1. Is it possible to fetch / update streamingschedule.smil with the Wowza Streaming Engine REST API?

    There are methods to retrieve and update specific SMIL files via the REST API, but they only seem to be applicable to those created through the manager. After all, streamingschedule.smil needs to be created manually by hand

  2. Alternatively, is it possible to reference a streamingschedule.smil that exists on an S3 bucket? (In a similar way footage can be linked from S3 buckets with the use of the MediaCache module)

    A comment here (search for '3a') seems to indicate it's possible, but there's a lot of noise in that thread.

What I've done:

The above all works and I have a working schedule with linearly streaming content pulled from an S3 bucket. Just need to be able to easily manipulate that schedule without having to manually edit the file via SSH.

So close! TIA


Solution

  • To answer your questions:

    1. No. However, you can update it by creating an http provider and having it handle the modifications to that schedule. Should you want more flexibility here you can even extend the scheduler module to not require that file at all.

    2. Yes. You would have to modify the ServerListenerStreamPublisher solution to accomplish it. Currently it solely looks a the local filesystem to read teh streamingschedule.smil file.

    Thanks,

    Matt