Embedding feeds from Agent in your website
You can live stream to your website with Agent via YouTube or Twitch or any other RTMP provider.
To set this up with YouTube follow the steps below:
- Sign into your youtube account and go to https://www.youtube.com/live_dashboard
- Create a new Live Stream and make a note of the Server URL and your Stream name/key
- Back in Agent, click on your Server and then the settings tab and click the Settings button
- Click on the tab "Streaming". Enter the URL and the Stream Key from step 2 here. You may want to adjust the maximum duration. The default is set to 900 seconds (15 minutes)
- Click OK.
- Back in YouTube, right click on the live player on the website and click "Copy embed code". Your clipboard will now contain the HTML you need to paste into your webpage.
Once these steps are completed you can start live streaming to your website:
On the Streaming tab on Server Settings you can control the resolution using the Size dropdown and the bitrate using the Quality slider. If your stream is buffering frequently then try reducing the size or the quality or both to get smooth playback.
Open up the live Agent viewer and add whatever cameras you like in whatever mode you like (movement/ alerts/ grid etc). Click the start streaming icon at the top of the live viewer (it looks like a person - it will change to a group of people to indicate that it is streaming).
The stream to YouTube should start. Give it a few seconds to buffer.
Edit a device and check the "Scheduling" switch on the first tab. Click to edit the Scheduler underneath. Add a schedule command "RTMP Streaming Start" and set the times and days. Then add an "RTMP Streaming Stop" command.