Broadcast an event (e.g., concert, sporting event, lecture, etc.) in near real-time by leveraging a live event.
If you require a continuous live stream, consider using a live channel instead.
Our live event service allows you to:
-
Test your stream prior to the start of the event.
-
Control the audio/video feed source.An Operator Controls:
- When and which Live Slicer will slice content.
- The timing and duration of ad breaks.
- When slate should be inserted into the stream.
-
Mark key events within your stream.
Key Information
-
Scheduled live events may be tracked within a calendar.
-
A live event must have a starting and ending point.
-
A live event’s playback URL may be signed to control how and when the live event may be viewed. Learn more.
-
The source of a live event may consist of multiple Live Slicers. This setup allows manual failover to a backup Live Slicer when the live feed from the primary Live Slicer is unavailable or suboptimal.
-
Slate will be displayed under the following conditions:
- Prior to the start of the live event.
- Upon the completion of the live event.
- During an ad break when ad content is missing.
- Outside of an ad break when the Live Slicer is not producing content.
Slate may also be manually inserted into the broadcast. -
A live event may be configured to allow on-demand playback upon its completion. This setup will generate a CMS asset upon the completion of the live event. Although this asset will exclude slate, it will contain ad breaks.
Quick Start
Set up a live event by performing the following steps:
- Configure a Live Slicer for use with live events.
- Set up a live event configuration.
- Set up and distribute a media player.
- Broadcast the live event.
- Optional. Provide on-demand access to the completed live event.
Set up a Live Slicer
An alternative to the Live Slicer is the CameraSlicer. It provides a simplified streaming solution when the full functionality and flexibility provided by the Live Slicer and the Live Events Dashboard are not needed.
Prepare the Live Slicer to stream a live event
-
Verify that the latest version of the Live Slicer (231114.04.01) is installed.
View Live Slicer release notes -
Verify that the system time on the computer hosting the Live Slicer is accurate. Use Network Time Protocol (NTP) to sync your Linux server’s time with a public time server.The Live Events Dashboard uses UTC time to schedule certain commands to the Live Slicer. Therefore, inaccurate system time on the computer hosting the Live Slicer may lead to synchronization issues.Sample synchronization issues:
- It could prevent the Live Slicer from ending an event and thereby cause the Live Slicer to perpetually slice content into an orphaned live event.
- It may prevent on-demand content from being generated for the live event.
-
Define the following settings in the Live Slicer configuration file (
/etc/uplynk.conf
):ini1api_port: 127.0.0.1:650092preview: on3livepreview_with_audio: on4livepreview_max_viewers: 2Additional information for each of the above Live Slicer settings is provided below.-
api_port: Verify that the Live Slicer has been configured to listen for API requests on a specific port.
-
preview: Enables the live preview capability within the Live Events Dashboard.
-
livepreview_with_audio: Enables audio within the Live Events Dashboard’s live preview when using Live Slicer version 22083100 or higher.
-
livepreview_max_viewers: Limits the number of simultaneous viewers of a live preview.Each instance of a live preview consumes resources on the computer hosting the Live Slicer. This setting is designed to prevent performance issues by capping the number of simultaneous connections.
-
-
Recommended: Secure the communication between the Live Slicer and the Live Events Dashboard through the use of SSL/TLS.
If a Live Slicer is not configured to support TLS, then browsers may not properly load the Live Events Dashboard due to the page containing a mixture of HTTP and HTTPS content. Some browsers display a warning icon in the address bar to indicate this issue. An operator may then choose to accept this potential security threat by configuring the browser to allow insecure content.
Set up SSL/TLS
Set up Automatically
The Live Slicer may communicate with the Live Events Dashboard over SSL/TLS. The use of TLS secures all transferred data by encrypting it.
Set up TLS for the Live Slicer
A TLS certificate may be automatically generated by the CMS, downloaded, and then installed on the computer hosting the Live Slicer by performing the following steps:
-
Verify that the Live Slicer is hosted on a computer with a public IP address.
-
Update the Live Slicer configuration file (
/etc/uplynk.conf
) with the following changes and then save your changes:-
Set the
ssl_port
setting to the desired port.Example:ssl_port: 65010
-
If present, remove the
ssl_cert
andmanual_ip
settings.
-
-
Verify that your firewall is configured to allow traffic on the port defined by the
ssl_port
setting. -
Restart the Live Slicer.
Set up TLS Certificate Manually
Configure the Live Slicer to communicate over HTTPS by generating and installing a TLS certificate on the computer hosting it.
-
Register a domain for each desired Live Slicer via a domain registrar (e.g., Dyn, Namecheap, GoDaddy, or Freenom). The recommended setup for multiple Live Slicers is to use subdomains (e.g.,
ls1.example.com
,ls2.example.com
,ls3.example.com
, etc.). These subdomains may then be secured via a single wildcard SSL certificate. -
Obtain a TLS certificate:
- Order a TLS certificate from a Certificate Authority (e.g., DigiCert, GoDaddy, or Let’s Encrypt).
- Generate a self-signed TLS certificate.
- Self-Signed SSL Certificate: This type of setup requires configuring each browser that connects to the Live Events Dashboard to trust this TLS certificate.
-
Store the TLS certificate on the computer hosting the Live Slicer.
-
Define the following settings in the Live Slicer configuration file: (
/etc/uplynk.conf
):
Live Slicer Configuration | Description |
---|---|
ssl_port: 65010 | Define the port through which the Live Slicer will send and receive TLS traffic. This sample configuration uses port 65010 for TLS traffic, but it can be configured to any available port. |
ssl_cert: /Path/SSLCertificate.pem | Identify the TLS certificate through which data will be encrypted by replacing the following variables:
|
manual_ip: DomainName | Defines the hostname through which TLS traffic will flow. |
-
Optional. Self-Signed SSL Certificates Only: Perform the following steps from each web browser that will load the Live Events Dashboard:
-
Load a Live Slicer’s test page.Syntax:
https://{Live Slicer Hostname}:{SSL Port}/testpage
Sample URL:https://ls1.example.com:65010/testpage
-
Upon receiving a TLS warning, configure the browser to trust the self-signed SSL certificate.
-
Verify that the browser can now connect to the Live Events Dashboard.
-
Repeat this procedure for each desired Live Slicer.
-
Dynamic IP Addresses
Typically, the computer hosting the Live Slicer should be assigned a static IP address. However, there are certain conditions (e.g., slicing at a conference behind a firewall) under which the computer hosting the Live Slicer may be assigned a dynamic IP address. A workaround for this type of setup is to use ngrok to expose a local server behind a NAT or firewall to the internet. Ngrok will generate a TLS-enabled URL for that server. After which, modify the
Typically, the computer hosting the Live Slicer should be assigned a static IP address. However, there are certain conditions (e.g., slicing at a conference behind a firewall) under which the computer hosting the Live Slicer may be assigned a dynamic IP address. A workaround for this type of setup is to use ngrok to expose a local server behind a NAT or firewall to the internet. Ngrok will generate a TLS-enabled URL for that server. After which, modify the
manual_ip
Live Slicer configuration setting to point to this URL.Set up a Live Event Configuration
This section explains how to set up a live event for use with a Live Slicer. Live event setup is slightly different when using the CameraSlicer.
A live event may also be created or updated via the Live Events Integration API.
A live event must be scheduled before it can be broadcasted. At its core, setting up a live event consists of:
-
Defining when it will start and/or end: Starting with Live Slicer version 21071400, our service uses system time, as determined by Network Time Protocol (NTP), to identify when to perform a scheduled start or stop of your live event.
-
Determining whether its playback URL must be signed.
-
Determining whether the live event will be made available as on-demand content upon its completion.
-
Defining the external ID through which a playback URL may be generated.
-
Defaulting appropriate live event configurations (e.g., slate, content expiration, the ability to resume a live event, etc.) from the Slate and Live Events pages located under the Settings tab.
Set up a Live Event
-
Navigate to the Live Events page. From the main menu, navigate to Events > Live Events.
-
Click +Event.
-
In the Event Name option, assign a unique name to the live event.
-
Click Create. Tick the box to edit the event after creation.
-
Optional: Perform the following actions from the Details tab:
- Schedule the Live Event: Assign the desired start and stop date/time through the Scheduled Start Time and Scheduled Stop Time options. Set the Auto Start/Stop option to “Yes” to automatically run the live event according to the schedule.
- Define an External ID: Assign a unique ID to the live event through the External ID option. This ID may be used to generate a playback URL.
-
Optional: From the Config tab, define live event settings, such as:
-
Assigning an operator.
-
Determining the post-event playback experience for new viewers.
-
Deciding whether a token will be required for playback.
-
Setting up slate.
-
Configuring how long content generated from the live event will be kept.Playback Latency: Select the level of latency behind live for this event:
- Default: 60 seconds
- Low: Low 20s, 5+ second buffering, Missing Content Slate (MCS) is possible
- Lower: Upper teens
-
-
From the Slicers tab, type the name of the desired Live Slicer in the Slicer ID option and then click + Add.The specified name must be a case-sensitive match to the value defined in the
slicerID
setting of the Live Slicer configuration file.For your convenience, suggested Live Slicers will be provided as you type.Manage this suggestion listThe easiest way to add a Live Slicer to the suggestion list is to click Yes when adding the desired Live Slicer to a live event configuration.Manage this suggestion list from the Live Event Slicers section of the Live Events page. The Account Slicers list displays a list of all Live Slicers that have ever sliced content to your account, while the Live Event Slicers section defines the set of Live Slicers that will be suggested when setting up a live event configuration. -
Optional. From the Pod Format tab, define the ad pods that will be associated with the live event.
-
Optional. From the Metadata tab, define the metadata that will be associated with the live event.
-
The Playback tab contains a playback URL, test Flash/HTML5 players, and HTML embed code. Use this information to test your live event and set up a media player.
-
Click Save.
Copy a Live Event
-
Select the desired live events from the Live Events page.
-
Click Duplicate {n} Events.
-
If a live event selected in step 1 contains metadata, you will be prompted to review the fields that will be added to the new live event:
- Exclude metadata from the new live event by clicking the rubbish-bin icon that appears to the right of each desired field.
- Click Duplicate when finished.
- Clicking Close will prevent that live event from being copied.
-
A copy of each live event selected in step 1 will be created. Each new live event will be named
Copy of {Live Event}
.
What are the differences between a live event and its duplicate?
Duplicating a live event will not generate an exact copy. Unique or live event-specific settings within the new live event will be cleared or reset to a default value. These settings are listed below.
Setting | Value |
---|---|
Assets | Blank |
Auto Start/Stop | No |
External ID | Blank |
Logs | The following two actions will be logged:
|
Playback | The following changes will be applied to playback settings:
|
Scheduled Start Time | Blank |
Scheduled Stop Time | Blank |
Status Information | The following status information will be set:
|
Add a Set of Ad Pods by Importing a CSV File
-
Verify that your CSV file uses an ad pod-compatible format.
-
From the Add Pod pane, click Browse….
-
Navigate to the desired CSV file, select it, and then click Open.
-
Click Import from CSV.The Pod Format tab will be populated by the ad pods defined within the selected CSV file. Ad pods will be listed according to the order in which they were defined in the CSV file.
Manually Define Ad Pods
-
From the Add Pod pane, specify a unique name for the ad pod under the Name option.
-
In the Duration option, specify the duration of the ad pod. Format:
hh:mm:ss
-
Click + Add.
-
Optional. Add metadata that will be sent to the third-party ad server when the ad pod is queued up by an operator.
- Select the newly created ad pod.
- From the Add Metadata pane, specify a unique name in the Key option.
- In the Value option, specify the value for the key being created.
- Click + Add.
- Optional. Add an additional key/value pair by repeating the steps above.
-
Repeat steps 1 - 4 as needed.
-
Click Save.
Add Metadata by Importing a CSV File
- Verify your CSV’s format and data.
-
Format: The format should follow either of the following conventions:
Type Description Columns This format requires all key names to be defined in the first row.
Example:Key1,Key2,Key3
Value1,Value2,Value3
Rows This format requires all key names to be defined in the first column.
Example:Key1,Value1
Key2,Value2
Key3,Value3
-
Data: Verify that the CSV’s data does not conflict with metadata that has already been associated with the live event.Importing a CSV will overwrite metadata fields when a key with the same name is found.
- From the Add Metadata pane, click Browse….
- Navigate to the desired CSV file, select it, and then click Open.
- Click Import from CSV. The Metadata tab will be populated by the metadata defined within the selected CSV file. Metadata fields will be listed according to the order in which they were defined in the CSV file.
Manually Define Metadata
-
From the Add Metadata pane, specify a unique name for the metadata field under the Key option.
-
In the Value option, specify the value for the key being created.
-
Click
+ Add
. -
Optional: Add an additional key/value pair by repeating steps 1 - 3.
-
Click Save.
Ad Pods
An ad pod defines an ad break window and associates metadata with it.
Methods to Take an Ad Break
-
Live Event Configuration:
- An operator may queue up and then take an ad pod that was defined within the live event’s Pod Format tab prior to the start of the live event.
- Once the ad pod’s duration has elapsed, the live event will automatically switch back to the Slicer source.
-
Manually: An operator may start and end an ad pod during a live event by switching the source between Slicer and Ad Break.
-
API: The Live Slicer API contains several endpoints (i.e.,
pod_start
,pod_end
, andreplace_pod
) through which ad pods may be triggered.
Ad State Alerts
You may configure the Live Events Dashboard to alert the operator when a live event is in an ad state for a specified number of minutes. Once enabled, a warning will be displayed 15 seconds prior to the specified number of minutes. After the specified time limit has elapsed, a critical alert will replace the warning.
- Set up a default alert configuration through the Default Ad Break Warning (min) option from the Live Events page.
- Override this default setting on a per live event basis by opening the desired live event, clicking the Config tab, and then setting the Ad Break Warning (mins) option to the desired number of minutes.
Ad Pod CSV Setup
Quickly add multiple ad pods to a live event configuration by importing a CSV file. Define the following fields within that CSV file:
Ad Pod Fields
Field | Description |
---|---|
Name Required | Assigns a unique name to an ad pod. |
Duration Required | Assigns a duration to the ad pod. Specify duration in seconds or the time formats defined below.
|
KeyName | Assigns a key/value pair to the ad pod. Key information:
|
Use a spreadsheet application (e.g., Excel or Google Sheets) to quickly create CSV files. Make sure that the first row in the spreadsheet contains the above fields.
Sample CSV File
The following sample CSV file contains two required fields (i.e., Name and Duration) and two fields that define key/value pairs (i.e., Type and Region):
1Name,Duration,Type,Region2Widgets,30,Informational,3Conference,45,Conference,US4Event 1,90,Event,5Event 2,120,Event,6Event 3,150,Event,
Importing this sample CSV file will add the following ad pods to the live event configuration:
Notice that only the Conference ad pod contains two key/value pairs. The other ad pods were only assigned a single key/value pair, since the second key/value field (i.e., Region) was not assigned a value for those ad pods.
Live Event Authorization
A live event may be created, viewed, and operated by either the owner of the account or any authorized user. Authorization may be granted to other users via the following permissions:
Permission | Description |
---|---|
Read | Allows a user to view detailed information for each live event associated with your account. Either the Write or the Assigned permission is required to operate a live event. |
Write | Allows a user to modify and operate any live event associated with your account. |
Assigned | Identifies a user as a potential operator for the live events associated with your account. In addition to this permission, authorization must be granted to this user on a per live event basis. After which, the user will be allowed to operate authorized live events via the Live Events Dashboard. |
Permissions may be defined on a per user basis from the Account Access page. Navigate to this page by clicking the Settings tab and then clicking Account Access Settings from the side navigation tab.
Authorize a User as an Operator
-
Grant the Assigned permission to the desired user from the Account Access Settings page. If the operator requires the capability to view or make changes to a live event prior to its start, then grant the Read and Write permissions as well.Users who have been granted the Write permission may operate any live event and therefore do not require authorization on a per live event basis. Skip the following two steps for this type of user.
-
Navigate to the Live Events page. From the main menu, navigate to Events > Live Events.
-
Select the desired live event to open it.
-
Click the Config tab.
-
From the Event Operator option, select the user identified in step 1.
-
Click Save.
Content Expiration
A live event may generate the following types of content:
-
Temporary Live Event Assets: The primary and each backup Live Slicer will generate temporary audio/video assets. These assets are stitched together to form the live stream and on-demand content.
-
CMS Asset: An asset that replicates the viewing experience of the live event will be added to the CMS library upon its completion. Live events with a duration longer than 8 hours will be split into multiple assets.
Account-Level Settings:
- A default content expiration policy may be defined from the Live Events page. Define the desired content expiration policy through the settings in the Content Expiration section. These settings determine whether the CMS asset and the temporary assets generated from the live event will be automatically deleted once the specified number of hours have elapsed from the completion of the live event.
A minimum content expiration policy of 150% of the duration of the live event is automatically applied to the temporary assets generated for all live events.
Live Event Configuration:
- Override the default expiration policy for the CMS asset generated for a live event through the VOD Auto Expire Hours option.
Valid values are:
<Blank Value>
: The default expiration policy will be honored.0
: The asset generated from the live event will be immediately deleted from the CMS library.<Hours>
: The asset generated from the live event will be deleted from the CMS library after the specified number of hours have elapsed.
Markers
Mark key events within your live event via markers. A marker is a custom tag that can be applied to a specific moment within your live event. Marking an event adds it to:
-
Live Events: Adds a log entry. View your live event’s log data via the EVENT DETAILS tab of the Live Events Dashboard and the Logs tab of your live event configuration.Log event syntax:
Event Marker Set: {Marker Type}:{Marker Name}
-
Live Event Status Reporting: Triggers an
event
whose event property uses the following syntax:"event": "Event Marker Set: {Marker Type}:{Marker Name}",
-
Live Stream: Adds an ID3 tag, which is a text information frame (TXXX frame), to the live stream.
-
Get Live Events API: Returns marker log data within the
markers
list.
Each marked event logs the type of marker, the name of the marker, and the specific moment at which the live event was marked.
Marker Setup
Setting up markers requires:
- Creating a marker template that contains the set of markers that may be applied to your live event.
- Assigning the desired marker template to your live event.
Assign a template by loading the desired live event configuration, verifying that the Details tab is active, and then selecting the desired template from the Marker Template option.
Once you have performed both of the above steps, your live event operator can mark key events using the set of markers corresponding to the marker template assigned to the live event.
Create a Marker Template
-
Navigate to the Marker Templates tab: Go to the Live Events page and click on the Marker Templates tab.
-
Click + Marker Template.
-
From the Marker Template Name option, type the name that will be assigned to the new template and then click Add.
-
Select the new template from the list.
-
Add a Marker Category:
- Click + Type.
- From the Type Name option, type the name of the marker category.
- Click Add.
- Repeat the previous step as needed to add more categories.
-
Add a Marker to the Template:
- Select the desired marker type to expand it.
- From the Marker Name option, type the name that will be assigned to the marker.
- Click Add.
- Repeat the previous step as needed to add more markers.
-
Click Save.
Mark Key Events Within a Live Event
-
Verify that the desired marker template has been assigned to your live event configuration.
-
Start Live Event: Open the Live Event Dashboard and start your live event.
-
Select Marker
In the Markers section, select the desired marker by performing the following steps:- From the Type option, select the desired type of marker.
- From the Tag option, select the desired marker.
- If the desired marker is not listed, type the name of the desired marker and press ENTER. It will then be added to the list of available markers for the duration of your Live Event Dashboard session. To permanently add this marker for future live events, follow the instructions in the Create a marker template procedure.
-
Wait until the desired moment in the live event, then click Mark to use the selected marker to add a marked event to your log data, live stream, and Live Event Status Reporting.
-
Repeat steps 3 and 4 as needed.
Set up Slate
Slate may either be:
-
Automatically Inserted: Slate will be automatically triggered under the following conditions:
- Pre-Event Slate: Prior to the start of a live event.
- Post-Event Slate: Directly after the completion of a live event.
- Ad Slate: During an ad break when ad content is not being received.
- Missing Content Slate: During a live event when both of the following conditions are true:
- The Live Slicer is not producing content.
- The live event is not in an ad break.
Define default pre-event, post-event, ad, and missing content slate from the Slate page. You may override this default configuration when setting up your live event. Additionally, a live event’s pre-event slate may also be manually set from the Live Events Dashboard prior to the start of the live event. -
Manually Inserted: The Live Events Dashboard allows slate content to be manually inserted during a live event by selecting the desired asset from within the Live Events Dashboard’s Switcher pane.Key Information:
-
Slate that is manually inserted into a live event is known as mid-event slate.
-
Prior to the start of your live event, you may select a CMS library for mid-event slate through the Mid Slate Library option from your live event’s Config tab. The assets associated with that library will be available for selection when inserting mid-event slate during a live event.
-
If you enable the VOD Replayable option on your live event, our service will generate an asset through which your live event can be replayed as on-demand content. Each time you insert slate into your live event, you must choose whether that asset will contain the slate content being inserted.
-
Include slate within the VOD asset generated by your live event:
-
Open the configuration for the desired live event and set the Enable Slate in VOD Replay option to Yes. You cannot set the Enable Slate in VOD Replay option to Yes if a live event has been configured to use slate from a CMS library shared with your account.
-
From the Live Events Dashboard, find the desired asset under the Mid Event Slate section and click on Save to Replay. Use the Save to Replay option to include the entire mid-slate asset within the asset generated for VOD replay of your live event. This occurs regardless of whether the live event operator chooses to add only a portion of that mid-event slate asset or loops it multiple times. If the live event operator loops a mid-event slate asset multiple times, it will be included only once for that instance of slate.
-
-
Exclude slate from the VOD asset: From the Live Events Dashboard, find the desired asset under the Mid Event Slate section and click to the left of the Save to Replay cell. If the Save to Replay cell is not present, you may click anywhere on the desired asset.
-
-
Configure a Live Event’s Slate
-
Navigate to the Live Events page. From the main menu, navigate to Events > Live Events.
-
Select a Live Event that has not yet started.
-
Click the Config tab.
-
At the bottom of the page, view the default pre-event, post-event, ad, or missing content slate.
-
Change the default pre-event, post-event, ad, or missing content slate:
- Click Change that appears directly below the desired slate.
- Select the desired asset.
You may only choose an asset from the default CMS library for the type of slate being configured. -
Optional: If you want to include mid-event slate within the VOD replay asset of your live event, enable the Enable Slate in VOD Replay option.If you enable this option, also select a CMS library that you own in the next step. If you select a shared CMS library, the live event operator will be unable to include mid-event slate within the VOD replay asset, regardless of this option’s status.
-
From the Mid Slate Library option, select the desired CMS library.All assets within the selected library will be available for selection as source content from the Switcher pane of the Live Events Dashboard.
-
Click Save.
Define a Default Slate Configuration
-
From the Content tab, organize assets that will serve as slate content into one or more CMS libraries.You may assign different libraries for each type of slate.
-
Navigate to the Slate page. From the main menu, navigate to Settings > Slate.
-
Click on the Slate Types tab.
-
Ad Slate: Perform the following steps to set the default asset that will be broadcast as slate during an ad break when ad content is not being received:
- Set the Ad Slate Library option to the CMS library that contains assets that may be used as ad slate.
- Set the Ad Slate option to the desired asset.
-
Missing Content Slate: Perform the following steps to set the default asset that will be broadcast as slate when content is not being received and the live event is not in an ad break:
- Set the Missing Content Slate Library option to the CMS library that contains assets that may be used as missing content slate.
- Set the Missing Content Slate option to the desired asset.
-
Click on the Live Event Slates tab.
-
Pre-Event Slate: Perform the following steps to set the default asset that will be broadcast as slate prior to the start of a live event:
- Set the Pre Event Slate Library option to the CMS library that contains assets that may be used as pre-event slate.
- Set the Pre Event Slate option to the desired asset.
The asset that will serve as pre-event slate may be changed prior to the start of the live event from within the Live Events Dashboard. -
Mid-Event Slate: Set the Mid Event Slate Library option to the CMS library that contains assets that may be used as mid-event slate.All assets within the selected library will be available for selection as source content from within the Switcher pane of the Live Events Dashboard.An asset for your live event may be generated upon its completion. The option to include mid-event slate within that asset is only available when inserting slate using an asset that you own.
-
Post-Event Slate: Perform the following steps to set the default asset that will be broadcast as slate after the live event has completed:
- Set the Post Event Slate Library option to the CMS library that contains assets that may be used as post-event slate.
- Set the Post Event Slate option to the desired asset.
-
Click Save.
Post-Event Slate Duration
After the end of a live event, post-event slate will automatically play in one of the following modes:
- Loop Indefinitely: The post-event slate will play continuously on loop.
- Play Through One Time: The post-event slate asset will be played only once.
- Set Time Duration in Minutes: The post-event slate will play for the specified number of minutes.
The
EXT-X-END
tag will be included in the HLS manifest file to indicate the end of post-event slate. It is up to a media player to interpret this tag. Learn more.To set one of the above modes, navigate to the Post Event Slate Duration section of the Live Events page.
Set up a Media Player
A single playback URL allows the playback of the live event as a live stream and on-demand content.
To set up a media player for use with a live event
-
Generate a playback URL using either the live event’s ID (i.e., GUID) or external ID.
- Event ID: An event ID is automatically generated upon creating a live event.
Copy a playback URL by navigating to the Live Events page, viewing the desired live event, clicking the Playback tab, and then clicking copy from under the HLS URL option.Syntax:https://content.uplynk.com/event/LiveEventID.m3u8
- External ID: An external ID may be assigned to a live event upon its creation or modification.
Syntax:https://content.uplynk.com/event/ext/<OwnerID>/LiveEventExternalID.m3u8
-
If the live event configuration requires a token for playback, then create a script that signs the playback URL.
-
Point the media player to the live event using the above playback URL.
-
Distribute the media player to the desired viewers.
If you are setting up a HLS player, you may add support for fast forwarding, rewinding, or pausing and resuming through the Live Timeshifting capability.
Latency
Latency measures the delay between the capture of the source video and when it is displayed to the viewer.
If you do not see the Playback Latency option, contact Support.
The following illustration provides an overview of components involved in the workflow from video capture to playback.
A short explanation of how each of the above components adds latency is provided below.
Component | Latency Factors |
---|---|
Slicer | The amount of time it takes to slice and deliver processed media to our Streaming service. This may be exacerbated by using underpowered hardware or insufficient bandwidth for your encoding profile. |
Streaming Service | The amount of time it takes to decode, encode, and package sliced media into an adaptive bitrate format. |
Digital Rights Management (DRM) | The amount of time it takes to request and generate licenses for content protected by DRM. |
Ad Decision Server |
|
CDN | The amount of time it takes to cache and deliver your stream to the player. |
Player | The amount of time it takes to initialize and then play your stream. This may be exacerbated by clients that use underpowered hardware or that have insufficient bandwidth. |
Manifest Engine | Decisioning logic that controls the timing and creation of individual manifests for playback by users. |
Best Practices for Reducing Latency
Reduce latency by applying the following best practices:
The following optimizations are listed in descending order according to the degree to which they will reduce latency.
Type | Optimization(s) |
---|---|
Playback Profile |
|
Player | Client
|
Encoding Profile | Two Second Media Segments
|
Slate | Re-encode Slate (Two Second Media Segments)
|
Slicer |
|
Ads |
|
Automation / Playout System | Ad Break Notifications: Ensure timely ad breaks in the video stream with SCTE triggers for ad decisioning. |
Adaptive Bitrate Streaming | Format: Supports both DASH and HLS. |
Cloud | Network Connection: Optimize egress for encoded media with newer streaming protocols like SRT and RIST, minimizing latency based on network round-trip time. |
Select the Playback Latency
Default latency for Live Channels and Live Events is 60+ seconds. To reduce latency to ~15 seconds, refer to the Playback Latency for channels and events for setup instructions.
Latency Options
- Default: ~60 seconds
- Low: Low 20s, 5+ second buffering, Missing Content Slate (MCS) is possible
- Lower: Upper teens, 2+ seconds buffering, MCS is possible
- Lowest: As low as 15 seconds, minimal buffering, no MCS
Different protocols and platforms may affect latency beyond the control of Edgio.
Important Considerations
- Many factors are in play for reduced latency. Any latency numbers referenced by Edgio documentation are estimates. Actual results may vary.
- Reducing latency does not currently work with Time Shifting.
- Inconsistent Slate Slice Duration is not recommended and will give unpredictable latency results.
- Four-second profiles may still work but won’t achieve the desired latency results and are unlikely to produce any video at the lowest setting.
- Two-second profiles without Playback Latency settings will give default delays.
- Existing V1 channels will not see the Playback Latency drop-down.
- MCS latency can only be removed via ad-break opportunities or new sessions.
- Player buffering cannot be controlled via Edgio’s Streaming service.
- Platform specificity may vary latency by multiple seconds.
- Many factors contribute to latency, so playback latency may vary.
- If using a Channel Scheduler with historical, four-second segment assets, you cannot schedule those assets onto an Edgio-enabled channel.
- The act of ‘Creating’ a CSL slicer will always create (/override) a profile to slicer ID mapping, even if using the default profile. Slicer Resets will not update the mapping.
- Due to continued testing, new technology, and other factors, playback profile parameters used by the manifest engine may change from time to time, without notice.
Broadcast a Live Event
You should only allow a single operator to manage a live event. Using multiple operators on a single live event may lead to unexpected behavior.
If the live event has been scheduled and configured to automatically start/stop, then no additional actions need to be taken.
Override auto start/stop by turning it off from the live event and then saving your changes. Alternatively, an operator may override auto start/stop by opening the live event in the Live Events Dashboard and then clicking Cancel from the upper-right hand window. After which, the operator should start the following procedure from step 3.
Broadcast a Live Event
-
Navigate to the Live Events page. From the main menu, navigate to Events > Live Events.
-
Select the desired live event to open it.
-
Click Open Dashboard.
-
Verify Connection: Ensure a connection was established to the Live Slicer(s) associated with the live event configuration. A live event may be managed over the internet provided that a firewall does not prevent communication between the Live Events Dashboard and the Live Slicer. Otherwise, an operator should load the Live Events Dashboard from within the same network as the Live Slicer.Troubleshooting: If a connection to the Live Slicer cannot be established, verify that SSL support has been added to the Live Slicer. Alternatively, look for a warning icon in the browser’s address bar. Click on that icon to accept the potential security risk of loading content via HTTP alongside HTTPS traffic. Eliminate this security risk by adding SSL support to the Live Slicer.
-
Test the live event via the Live Events Dashboard. This step may be skipped by removing the live event testing requirement from the Live Events page.
-
Start the Live Event: Monitor the live stream to identify the starting point of the live event and then start the live event from the Live Events Dashboard.Best Practices:
- If you are monitoring multiple live events, consider performing the following steps to reduce CPU usage:
- Launch the player in a separate window by clicking View in New Window.
- Close the source and audience view by clearing the Slicer Live Preview and Audience View options from the View menu.
- Optional: Publish your live event to one or more social media platforms.
- If you are monitoring multiple live events, consider performing the following steps to reduce CPU usage:
-
Optional. Publish your live event to one or more social media platforms.
-
Manage Ad Breaks and Slate Content:Insert an Ad Break:
-
Ad Pods: Select the desired ad pod to queue it up. Select the same ad pod to start the break. The ad break’s current duration will be indicated next to the ad pod. The ad pod will automatically end upon reaching the ad pod’s duration.This method is only supported for ad pods defined within the Pod Format tab of the live event configuration.
-
Manually: Click Ad Break. The Switcher pane will indicate the total duration of the ad break. End the ad break by clicking the Slicer tile. The feed will switch over to the content generated by the Live Slicer selected under the Slicers pane.
Insert Slate:- Start inserting slate by finding the desired asset from within the Mid Event Slate section and then either clicking on it or the Save to Replay option.
The Save to Replay option includes slate when viewers watch your live event as on-demand content. If the Save to Replay option is not displayed, then slate will be excluded during VOD replay.- Upon selecting the desired slate content, the Switcher pane will indicate the total duration of slate content. Click the Slicer tile to switch back to the content generated by the Live Slicer selected under the Slicers pane.
-
-
Monitor the live stream to identify the ending point of the live event and then stop the live event from the Live Events Dashboard. It is possible to resume a live event after it has been stopped.
Verify Live Slicer Connectivity
The Live Events Dashboard indicates a Live Slicer’s status using the following indicators:
- Connected (Green): Indicates that the Live Events Dashboard can communicate with the Live Slicer.
- Slow Connection (Yellow): Indicates that the Live Events Dashboard is experiencing latency when communicating with the Live Slicer. If multiple Live Slicers have been associated with the live event configuration, consider switching to a “Connected” Live Slicer.
- Disconnected (Red): Indicates that the Live Events Dashboard cannot communicate with the Live Slicer. If multiple Live Slicers have been associated with the live event configuration, it is strongly recommended to switch to a different one.
This status information is only designed to measure the connectivity between the Live Slicer and the Live Events Dashboard. Monitor Live Slicer health through the Live Slicer Health dashboard. Learn more.
Test a Live Event
The Live Events Dashboard contains a test mode that allows an operator to validate source content and replicate the viewing experience prior to the start of the live event.
Testing mode is designed to replicate the experience that a viewer will have when streaming a live event. However, viewers attempting playback prior to the start of the live event will only see pre-event slate.
Determine whether live event testing is mandatory through the Require testing before a live event can be started option which can be found under the Additional Configuration Settings section of the Live Events page.
Test a Live Event
-
Load the Live Event in the Live Events Dashboard.
-
Click Enter Event.
-
Click Start Test.
-
When prompted to confirm this action, click Start Testing.
-
Optional. Once testing is complete, click Complete Test twice to exit this mode and prepare for the start of the live event.
In this mode, you can perform the following tests:
-
Verify Audio/Video Sources:
-
Slicer: Click on the thumbnail under the Switcher pane to view the content being ingested by the Live Slicer selected under the Slicers pane. Selecting a different Live Slicer will automatically update this thumbnail to show the feed from the newly selected Live Slicer. This feature allows for quick failover to a different Live Slicer if the current one experiences issues. It is strongly recommended to fail over only to a backup Live Slicer ingesting an identical audio/video feed, not for switching between alternate feeds.
-
Ad Break: This thumbnail displays the content being ingested from a third-party ad server.
-
Slate: The remaining thumbnails list the assets available for mid-event slate.
-
-
Replicate Viewer Experience:
-
Play back the stream via the sample media player provided in the Audience View pane. This player streams the source defined in the Switcher pane using a playback URL with the same query string parameters used by custom media players during the live event.
-
Customize the playback URL by defining parameters in the URL Params setting. Click Update to apply the new playback URL to the Audience View preview.
-
Slicer Live Preview & Audience View
The Slicer Live Preview pane provides a real-time preview of the source selected in the Switcher pane, while the Audience View pane provides an approximation of a viewer’s experience.
Key information
-
The Audience View preview lags behind the live audio/video feed. This delay replicates the viewing experience.
-
The real-time preview provided by the Slicer Live Preview pane requires:
-
Live Slicer version 16062200
-
Live Slicer configuration settings: Update the Live Slicer configuration file (
/etc/uplynk.conf
) to include the following settings:Setting Description preview: on Enables the Slicer Live Preview.
If thelivepreview_with_audio
setting is not enabled, then this preview will only consist of video.livepreview_with_audio: on Requires Slicer version 22083100 or higher
Enables audio for the Slicer Live Preview.
The Slicer Live Preview pane displays audio levels regardless of whether this setting is enabled.livepreview_max_viewers: # Determines the maximum number of simultaneous viewers of a live preview.
Each instance of a live preview consumes resources on the computer hosting the Live Slicer. This setting is designed to prevent performance issues by capping the number of simultaneous connections.
-
Start or Stop a Live Event
Broadcast a live event to viewers by starting it. This will cause the following actions to take place:
- The live stream will switch from pre-event slate to the source that is currently selected in the Switcher pane.
- The Live Slicer will start slicing to an asset in the CMS library.
Once the live event is over, it will need to be stopped. This will cause the following actions to take place:
- The live stream will switch from the currently selected source to post-event slate.
- An on-demand version of the asset will be added to the CMS library. The live event’s configuration determines whether this asset will be available for immediate playback. Learn more about on-demand content.
Start and Stop a Live Event
-
Test the Live Event: Once testing has been completed, click Complete Test twice to exit testing mode and prepare for the live event.
-
Start the Live Event: When ready to start the live event, click Start Event. Confirm the action when prompted by clicking Start Event again.
-
Stop the Live Event: Once the live event is complete, click End Event twice to switch the stream over to post-event slate content.
-
Failover to a Different Live Slicer: If multiple Live Slicers are associated with the live event configuration, you can quickly fail over the stream by selecting the feed from a different Live Slicer in the Slicers pane.
View Live Event Details
The following live event information may be viewed at any time after entering the event by clicking the Event Details tab:
-
Pre-event slate: A live event’s pre-event slate may be changed from this tab prior to the start of the live event.
-
Metadata associated with the live event configuration
-
Audit log data that tracks major events (e.g., event creation, source switching, event started/ended, etc.). Audited events may be posted to your web server. Learn more.
Resume a Live Event
A live event may be resumed for a short window (i.e., 1 to 5 minutes) after it has been stopped. This capability allows an operator to undo a premature stop event action.
Key Information
- The length of this window is determined by the Minutes option defined under the Resume Event Buffer section. You can find this option by navigating to the Buffers tab of the Live Events page.
- Ensure that the After Event Buffer option defined under the System Conflict Buffers section meets or exceeds the length of time defined in the Minutes option.
- If a resume event buffer has been defined, the Live Events Dashboard will count down the remaining time an operator has to resume the event upon stopping it.
- The maximum value for the Minutes option is 5 minutes.
- Post-processing (e.g., creating on-demand content from a live event) will not start until after this window expires.
- Additional content sliced after resuming a live event will be included in the CMS asset generated from the live event.
Syndication Publishing
Contact your account manager to activate Syndication Publishing.
In addition to streaming content directly to your consumers, you may also simultaneously distribute it to multiple social media and content distribution platforms with minimal effort.
Set up Syndication Publishing:
- Create a publishing target for each desired social media or content distribution platform.
- Publish to the desired platform(s) by associating the desired publishing target(s) with your live event.
On-Demand Content
Upon the completion of a live event, an asset will be automatically added to the CMS library. This asset is described below.
- Contents: This asset contains the entire live event feed including markers for ad breaks. However, it will not contain slate inserted into the live event feed.
- Naming Convention: This asset will be named after the live event’s description. If the live event has not been assigned a description, then it will be named after the first Live Slicer associated with the live event (e.g., MySlicer).
Change a Live Event’s Asset
A live event may be assigned a different CMS asset. A common use case for this capability is to create a clip from a live event and then set it as the on-demand version of the live event.
Reassigning the asset associated with a live event will trigger the following actions:
- The original asset will be removed from the CMS library. However, it will still be available from the live event’s Assets tab.
- The original asset will be assigned the expiration policy defined by the live event’s Auto Expire Hours option. View this setting from the live event’s Config tab.
- The CMS asset newly assigned to the live event will be assigned the expiration policy defined by the live event’s VOD Auto Expire Hours option. View this setting from the live event’s Config tab.
Change the Asset Associated with a Live Event
- Load the configuration associated with the desired live event.
- Click Change VOD Asset from the notification bar.
- Set the Asset GUID option to the asset ID for the desired asset.
- Click Save.
- Verify that the VOD label has been applied to the asset that best represents the on-demand version of the live event.
Playback On-Demand Content
The playback URL associated with a live event may be used to stream it while the live event is in the Live (On Air) state. Once the live event is completed, the live event’s VOD Replayable option determines whether that same URL may be leveraged to stream it as on-demand content.
Effects on User Experience
Enabled: Post-event slate will be streamed after the live event is over.
- If a specific duration has been defined for post-event slate, it is mandatory for new and existing viewers.
- Existing viewers may refresh the page to view the on-demand version of the live event.
- New playback requests for the live event will stream it as on-demand content.
Disabled: Post-event slate will be streamed after the live event is over.
- An alternative method to stream the live event as on-demand content is to play back the CMS library asset that was automatically generated from the live event. This may be performed through the asset’s playback URL.
Long Live Events
The behavior for a live event whose duration is 8 hours or longer will vary as described below.
Asset Naming Convention
-
Multiple assets will be added to your CMS library for long live events. These assets will be named according to the following convention:
Live Event Name_Sequential Number
For example, if three assets were generated for a live event called “Marketing Conference,” they would be named:Marketing Conference_1
Marketing Conference_2
Marketing Conference_3
-
On-demand playback of the live event will be through a multi-beam playlist. This playlist references the live event’s temporary audio/video assets.
A media player may not support the playback of content that lasts over 8 hours. Please verify playback for each of your media players.
Manually Generate On-Demand Content
Although on-demand content is automatically generated once a live event is completed, there are certain circumstances under which you may wish to manually generate it. For example, you may wish to address a quality issue that was noticed during the live event. If one or more backup Live Slicers were associated with the live event, you could generate alternate on-demand content by using any combination of content generated from the Live Slicers associated with the live event.
A temporary asset is generated by each Live Slicer associated with a live event whenever any of the following actions take place:
- Upon testing a live event.
- Upon starting a live event.
- Upon switching to a different Live Slicer.
- Upon switching back to the Live Slicer from slate.
Switching between the Live Slicer and ad breaks will not interrupt a temporary asset. Although the content of the ad break will be excluded from the temporary asset, markers will track each ad break. Leverage these ad break markers and the Preplay API to insert ads during on-demand playback.
The naming convention for temporary assets will be set to either of the following values:
Name | Description |
---|---|
Test Primary Test Backup Primary Backup | Each temporary asset generated from a live event will be assigned one of these names. The label(s) associated with each temporary asset describe it. Each label is described below:
|
<Live Event Name> | Identifies the temporary asset that replicates the live viewing experience. A copy of this asset was imported into the CMS library. |
Manually Generate On-Demand Content
-
Navigate to the Live Events page. From the main menu, navigate to Events > Live Events.
-
Select the desired live event to open it.
-
Click the Assets tab.
-
Play back each desired temporary asset by clicking the icon under the Actions column and then selecting Launch Test Player.
-
Perform one of the following tasks:
- Generate alternate on-demand content by importing each desired temporary asset into the CMS library. This can be accomplished by clicking the icon under the Actions column and then selecting Save as Asset. Once all of the desired temporary assets have been imported into the CMS library, generate a playback URL that combines all of the imported assets. - Create a highlight clip. Launch the Clipping Tool by clicking the icon under the Actions column and then selecting Clip Asset.
Please wait 150% of the live event’s duration before attempting to delete temporary assets.
Live Event Status Reporting
Major events (e.g., creating, starting, and stopping a live event) are tracked for each live event. Our service can report these events as JSON data to a web server through HTTP POST requests. Your web server may then log this data and perform custom actions in response to specific types of events.
**Post a Live Event’s Status Information to Your Web Server
-
Navigate to the Live Events page.
- From the main menu, navigate to Settings > Live Events.
-
Under the Event Callback URL section, type the URL to which HTTP POST requests will be submitted.
-
Optional: Choose how you will authenticate requests posted to your web server under the Webhook Secret Token section.
-
No Authentication: Verify that None is selected.
-
Token or Signature Authentication: Perform the following steps:
- Token Authentication:
- Select X-Edg-Auth-Token.
- This mode ensures that each live event status request sent from our service to your web server includes an
X-Edg-Auth-Token
header set to your secret key.
- Signature Authentication:
- Select X-Edg-Signature-256.
- This mode ensures that each live event status request sent from our service to your web server includes an
X-Edg-Signature-256
header set to an encrypted value that represents the request’s payload.
- Token Authentication:
-
Click Generate Secret.
-
Click Copy.
-
Store your secret key in a secure location.
-
Access to a secret key is limited to when it is generated. If you lose your secret key, then you will need to generate a new secret key and update your server-side authentication script to reference it.
-
Click Ok.
-
-
Click Test to submit a test request to your web server. Verify that your web server received the request.
-
Click Save.
Authentication
Verify that a request came from our service through either of the following authentication methods:
-
Token: This mode requires our service to include the
X-Edg-Auth-Token
header with each request it sends to your web server. This header is set to your secret key. You will need to implement a server-side script that compares your secret key to theX-Edg-Auth-Token
header.Sample validation function1SECRET = '1234567890abcdefghijklmnop' # Replace with your secret key.2...34 def validate_authentication_token(self, content, callback):5 header_sig = self.headers.get(TOKEN_TYPE_AUTH_TOKEN)6 if SECRET == header_sig:7 callback(content, TOKEN_TYPE_AUTH_TOKEN) -
Signature: Recommended. This mode requires our service to include the
X-Edg-Signature-256
header with each request it sends to your web server. This header is set to a signature that is calculated by encrypting the request’s payload using a hash-based message authentication code (HMAC-SHA256) and your secret key. You will need to implement a server-side script that calculates this signature and compares it to theX-Edg-Signature-256
header.Sample validation function1SECRET = '1234567890abcdefghijklmnop' # Replace with your secret key.2...3 def validate_signature_256(self, content, callback):4 msg = b64encode(zlib.compress(content.encode('utf8'), 9)).strip()5 sig = hmac.new(SECRET.encode('utf-8'), msg, hashlib.sha256).hexdigest()6 header_sig = self.headers.get(TOKEN_TYPE_SIGNATURE_256)7 if sig == header_sig:8 callback(content, TOKEN_TYPE_SIGNATURE_256)
View a sample Python 3 script that instantiates a sample web server and contains functions through which you authenticate a token or a signature.
Request Body
The HTTP POST request body will contain the following properties:
Property | Type | Description |
---|---|---|
event | String | Describes the event that took place. An HTTP POST request will be submitted to your web server for each event. |
event_desc | String | Identifies a live event by its description. |
event_id | String | Indicates the system-defined ID for the event that took place. |
external_id | String | Identifies the asset associated with this event by its external ID. |
metatdata | Object | Contains a key-value pair for each metadata field associated with the event. |
state | String | Indicates the state of the live event at the point in time at which the event took place. Valid values are: pre | live | resume | post | complete Learn more. |
testing_complete | Integer | Indicates the date and time at which live event testing was completed. A null value is reported when live event testing had not been completed at the point in time at which the event took place. |
testing_start | Integer | Indicates the date and time at which live event testing was started. A null value is reported when live event testing had not been started at the point in time at which the event took place. |
timestamp | Integer | Indicates the date and time, in Unix time (milliseconds), at which the event took place. |
user_id | String | Indicates the system-defined ID associated with the user account that triggered the event. Find user ID:
|
username | String | Indicates the e-mail address associated with the user account that triggered the event. |
State
Live event states are defined below.
Value | Description |
---|---|
pre | Indicates that the live event had not started. |
live | Indicates that the live event was in progress. |
resume | Indicates that the both of the following conditions were true:
|
post | Indicates that the live event had completed and post-processing (e.g., creating on-demand content from a live event) was initiated. |
complete | Indicates that the live event had completed and all post-processing tasks were completed. |
Events
Events are defined below.
Value | Description |
---|---|
Added Metadata | Indicates that metadata was added to a live event. |
Added Slicer | Indicates that a Live Slicer was added to a live event. |
Added Test Player | Indicates that a test player was added to a live event. |
Auto Event Mode Cancelled | Indicates that a live event’s auto start/stop mode was turned off. |
Auto Event Schedule Cleared | Indicates that a live event’s scheduled start/stop time was cleared. |
Auto Event Slicer Scheduling Error | Indicates that there was an issue scheduling a Live Slicer for a live event that was configured to automatically start. |
Completed Test | Indicates that an operator completed testing a live event. |
Error Scheduling Slicers For Auto Stop | Indicates that there was an issue scheduling one or more Live Slicer(s) for a live event that was configured to automatically stop. |
Event Copied from {Event ID} | Indicates that a live event was duplicated from an existing live event. The term {Event ID} identifies the ID of the live event that was copied. |
Event Created | Indicates that a live event was created. |
Event Deleted | Indicates that a live event was deleted. This deletion may have been performed manually or automatically upon its expiration. |
Event Ended | Indicates that an operator ended a live event. |
Event Ended: Resume Available | Indicates that an operator ended a live event that could have been resumed. |
Event Marker Set: {Marker Type}:{Marker Name} | Identifies the marker that was applied to the live event. |
Event Resumed | Indicates that an operator resumed a live event. |
Event Started | Indicates that an operator started a live event. |
Event Updated | Indicates that a live event was updated. |
Event VOD over max duration (8 hours) | Indicates that a live event’s duration exceeded 8 hours and therefore resulted in the creation of multiple CMS assets. On-demand playback of a long live event requires that your media player(s) support multi-beam playback. |
Started Test | Indicates that an operator started testing a live event. |
Switched to Source | Indicates that the audio/video feed was switched over to different source content via the Switcher pane. The term Source identifies the live event’s new source (i.e., Live Slicer, ad, and slate). Non-Slate Syntax: Switched to {Source} Slate Syntax: Switched to slate [in VOD] {Mid-Event Slate Asset} The in VOD phrase indicates that slate was inserted using the Save to Replay option. |
VOD Asset Auto-Expired | Indicates that an expired CMS asset was deleted. |
VOD Asset Deleted | Indicates that a CMS asset was manually deleted. |
VOD Available | Indicates that a CMS asset containing the audio/video feed for a completed live event was created. |
Sample Request Body
Updating a live event configuration will trigger Live Event Status Reporting. A sample request body for this type of event is provided below.
1{2 "username": "joe.smith@example.com",3 "user_id": "abcdefghijklmnopqrstuvwxyz123456",4 "external_id": "",5 "event_id": "1d6f7eb5fe474312947e73ccc1c57e32",6 "timestamp": 1572293065429,7 "event_desc": "My Live Event",8 "state": "pre",9 "testing_complete": null,10 "testing_start": null,11 "event": "Event Updated",12 "metadata": {13 "key2": "value2",14 "key1": "value1"15 }16}
Conflicting Scheduled Events
The following warning indicators will be triggered when overlapping events on the same Live Slicer are detected:
- Yellow Highlighting: The Live Events page will apply yellow highlighting to each live event that has a scheduling conflict.
- Warning Icon: When viewing a live event configuration that has a scheduling conflict, the Slicers tab will display a warning icon and list all of the live events that conflict with it under the Conflicted Events column. Click on a live event to view and update its schedule.
Default Detection: By default, overlapping events are detected via a live event’s expected start/stop time. However, a live event may potentially start early or extend beyond the scheduled stop time. Account for these factors by setting before and/or after event buffers to pad live events. Before and after event buffers are applied to all live events.
Manual Checks: The Live Events Dashboard will only check whether a scheduling conflict will occur for scheduled live events. Before manually starting a live event, verify that it doesn’t conflict with scheduled live events. Additionally, verify that the Live Slicer has not been associated with a live channel.
Example Scenario
Assume the following conditions:
- A live event has the following schedule:
- Expected Start Time: 11/11/2016 at 06:00 PM
- Expected Stop Time: 11/11/2016 at 08:00 PM
- The before event buffer has been set to 15 minutes.
- The after event buffer has been set to 45 minutes.
In this scenario, a warning will be generated if another live event is scheduled on the same Live Slicer that meets either of the following conditions:
- Expected Start Time: 11/11/2016 before 09:00 PM
- Expected Stop Time: 11/11/2016 after 05:00 PM
Stream a Live Event Tutorial
Learn how to stream a live event.
Live events are perfect for concerts, lectures, sporting events, or any other live content that will be broadcast for a finite amount of time.
Live Event Capabilities
- Effortlessly scale to massive audiences.
- Start the event at any time and present your users with looped video until the event begins.
- Immediately replay the event on-demand upon completion.
- Insert ad breaks, integrate with a third-party ad server, and deliver unique ads to each of your viewers.
Tutorial Overview
This tutorial sets up a basic live event. Unlock the true power of live events by taking advantage of features such as:
- Live event scheduling
- UDP streaming
- Mac support
- API-driven workflows
Alternatively, you can stream a single live linear event by taking advantage of our live linear streaming capabilities.
Software/Hardware Prerequisites
- Linux OS
- Blackmagic DeckLink SDI card
Audio/Video Feed Prerequisites
- Audio source
- Video source
Key Steps
- Set up a Live Slicer.
- Create and configure a live event.
- Set up a media player.
- Broadcast the live event.
Best Practice
Prior to your live event, it is strongly recommended to verify that the host computer can maintain upload bandwidth at the desired streaming quality.
To this end, it is recommended to:
- Create a live event configuration for testing purposes. Determine the optimal streaming quality for the host computer by streaming for a short time period (e.g., 5 minutes).
- Create another live event configuration for the actual live event. Make sure to set the streaming quality to an optimal value.
Step 1 - Set Up a Live Slicer
A Live Slicer is required to prepare an audio/video feed into a live stream that will be broadcast to all of your viewers. Set up the latest version of the Live Slicer on a Linux computer.
If you plan on using a Blackmagic DeckLink SDI capture card, then the Live Slicer must be installed on the computer where that card is housed.
-
Live Slicer version 21092100 or higher: Install the libnl-3.200 library.
sudo apt install libnl-3-200
-
Python and bzip2: Install the python bzip2 applications.
sudo apt install python bzip2
-
Download the Live Slicer by clicking Downloads from the bottom right-hand corner of the CMS and then clicking on the desired OS.
-
Extract the zip file to the desired directory.
$ tar -xvf uplynk_slicer_linux_64-231114.04.01.tbz2
-
Navigate to the newly created directory.
$ cd uplynk_slicer_linux_64-231114.04.01-master/
-
Run
install_live
.$ sudo ./install_live
-
Open the Live Slicer configuration file (
/etc/uplynk.conf
) in a text editor. View a sample configuration file. -
Set the username setting to the email address associated with your account.
username: joe@example.com
-
If present, delete the
password
line.password: samplepassword
-
If missing, add a line for the
apikey
setting. Set it to your secret API key.apikey: abcDEFghiJKLmnoPQRtuvWXYz123ABCdefGHIJKL
-
Set the
slicerID
setting to “marketingslicer.”slicerID: marketingslicer
-
Set the
slicerID
setting to “marketingslicer.”slicerID: marketingslicer
-
Set the
card
setting to the number assigned to the Blackmagic capture card that will generate the source feed.card: 1
-
Set the port on which the Live Slicer will listen for API requests.
api_port: 65009
-
Enable the Live Events Dashboard’s live preview capability.
preview: on
-
Enable audio for the Live Events Dashboard’s live preview when using Live Slicer version 22083100 or higher.
livepreview_with_audio: on
-
Set a limit to the number simultaneous viewers of a live preview.
livepreview_max_viewers: 2
-
Configure the Live Slicer to generate and install a SSL certificate.Alternatively, manually generate a SSL certificate and then configure the Live Slicer to use it. Learn more.
- Set the ssl_port setting to the desired port.
ssl_port: 65010
- If present, remove the
ssl_cert
and themanual_ip
settings.
- Set the ssl_port setting to the desired port.
-
Start the Live Slicer through the following command:
- upstart:
sudo start uplynk_liveslicer
- systemd:
sudo systemctl start uplynk_liveslicer.service
- upstart:
-
Set up the Blackmagic capture card to capture the audio/video feed.
- Connect the audio and video source to the Blackmagic capture card.
- Open Blackmagic system preferences and then configure the above connections as input sources.
- Open Preferences (Edit > Preferences) and then set a project format, capture file format, and storage location.
- Close Preferences and then click on the Log and Capture tab.
- Click Capture. The Live Slicer will automatically pick up the feed.
Step 2 - Create a Live Event in the CMS
Create a basic live event configuration that will stream the audio/video feed generated by the above Live Slicer.
-
Sign in to the CMS.
-
Navigate to the Live Events page. From the main menu, navigate to Events > Live Events.
-
Click + Create Event.
-
In the Event Name option, type “My Live Event.”
-
Click Create & Edit.
-
From the Config tab, set the Require a token for playback option to “No.”
-
From the Slicers tab, find the Slicer ID option and then type the value assigned to the
slicerID
setting (i.e., marketingslicer) in the Live Slicer configuration file. Click + Add. -
Click Save.
Step 3 - Set up a Media Player
A media player that points to the live event must be distributed to your viewers.
-
From within the desired text editor, insert the following HTML code:HTML1<!DOCTYPE html>2<html>3 <body>45 </body>6</html>
-
From within the CMS, open the live event created above.
-
Navigate to the Playback tab.
-
Click copy which appears next to the Embed HTML option.
-
From the text editor, paste the copied text within the body tags. The resulting HTML code should look similar to the code provided below.HTML1<!DOCTYPE html>2<html>3 <body>4 <iframe style="border:none" width="640" height="480" src="https://content.uplynk.com/player5/1SodqitBFcSwHXKzdVT4Leef.html"></iframe>5 </body>6</html>
-
Save the above code as a HTML page (e.g., myliveevent.html).
-
Load the above web page and verify that it loads pre-event slate.
Step 4 - Broadcast a Live Event
Broadcast a live event through the Live Events Dashboard.
-
Navigate to the Live Events page. From the main menu, navigate to Events > Live Events.
-
Select the live event created above.
-
Click Open Dashboard.
-
Verify that a connection was established to the Live Slicer. The Live Slicer should be highlighted in green.
-
Test the live event.
- Click Enter Event.
- Click Start Test.
-
Monitor the live event to identify its starting point and then start it by clicking Start Event twice.
-
Monitor the live stream to identify the ending point of the live event and then stop it by clicking Stop Event twice.
Step 5 (Optional) - Stream the Live Event as On-Demand Content
Upon completing your live event, it will be added to the CMS library. This allows the live event to be played back as on-demand content using the playback URL, test players, or HTML embed code associated with the live event or the VOD asset generated from it.
CameraSlicer
The CameraSlicer (Mac Only) application allows live event streaming by capturing content from local hardware and sending it to the cloud for encoding.
Minimum System Requirements
The minimum system requirements for the computer hosting the CameraSlicer are provided below.
Component | Description |
---|---|
CPU | Quad-core x86-64 (2GHz) |
Memory | 6 GB |
Storage | 80 GB |
Upload Bandwidth | Varies according to the defined streaming quality. It is recommended to test out streaming at the desired quality level prior to your live event. |
OS | macOS |
Audio/Video Source | Audio/video hardware must be installed on the computer hosting the CameraSlicer. The CameraSlicer may also recognize audio/video hardware-emulators (e.g., ManyCam). |
Ports | Outbound connections on 80 and 443 |
Set up Firewall
The CameraSlicer relies on ports 80 and 443 to communicate with our services and to upload encrypted slices for encoding. Please make sure to configure the firewall shielding the computer hosting the CameraSlicer to allow outbound connections on these ports.
Install CameraSlicer
Installation instructions for the CameraSlicer are provided below.
-
Download the CameraSlicer by clicking Downloads from the bottom right-hand corner of the CMS and then clicking Mac Slicer.
-
Unzip the archive and move the CameraSlicer application to the Applications folder.
Open the CameraSlicer Application
Open the CameraSlicer application by double-clicking it from the Applications folder.
If the CameraSlicer application cannot be opened as a result of a security configuration, try opening it while holding down the Control key.
Use the CameraSlicer to Stream a Live Event
The CameraSlicer (Mac only) provides a simplified alternative to the Live Slicer for live event streaming. However, it does not support the following features:
- The live event must be managed through the CameraSlicer. A live event generated by the CameraSlicer cannot be managed via the Live Events Dashboard.
- A live event operator should not be defined in the live event configuration. The operator for the live event is determined according to the user account used to log in to the CameraSlicer.
- Live events cannot be scheduled to automatically run when using the CameraSlicer. The Auto Start/Stop option should be set to “No.”
- Only a single slicer ID should be associated with the live event. This ID must be specified when starting up the CameraSlicer.
- The CameraSlicer does not allow mid-slate to be added to a live event.
- Most actions that describe the live event, with the exception of “Event Started” and “Event Ended,” will not be logged.
- The CameraSlicer does not support the capability to resume a live event after it has been stopped.
- Only a single temporary asset will be created for the live event. This temporary asset replicates the live viewing experience. Although the ad break content served during the live event will be excluded from it, it will contain ad break markers.
Stream a Live Event Using the CameraSlicer
A. Create a Live Event
-
Navigate to the Live Events page. How?
-
Click + Create Event.
-
In the Event Name option, assign a unique name to the live event.
-
Click Create & Edit.
-
From the Slicers tab, type a value to identify the CameraSlicer session. Click + Add.
-
The Playback tab contains the playback URL to which you should point your media player.
-
Click Save.
B. Configure the CameraSlicer
-
Navigate to the directory where the CameraSlicer was installed and open the CameraSlicer application.
-
From the Username/email option, type the user name or email address associated with the user account for the live event.
-
From the Password option, type the password that corresponds to the specified user account.
-
From the Slicer ID option, assign an ID for this CameraSlicer session. This ID should match the slicer ID assigned to the live event created in step 1.
-
Click Sign In.
-
From the 1 Select Event step, select the live event created in step 1.
-
Click Next.
-
Select the desired video and audio sources using the Video Source and Audio Source options, respectively. If valid inputs have been selected, a video preview and audio levels will be shown.
-
Move the slider bar to adjust the streaming quality to the desired bit rate. Ensure that the specified value does not exceed the expected upload bandwidth. The specified streaming quality may not be changed during the live event.
-
Identify the starting point for the live event through the live preview and then click Begin Event. If prompted, allow the CameraSlicer application to accept incoming network connections.
C. Insert an Ad Break
-
Under the Ad Break section, assign an estimated ad break duration in minutes and seconds.
-
Click Begin to start the ad break.
-
Click End to stop the ad break.
-
Click Finish Event to end the live event.
Wizard Steps
The CameraSlicer provides a wizard that steps you through its configuration. This wizard consists of the following steps:
- Authentication: Define the user credentials through which the CameraSlicer will authenticate to our services.
- Select event: Select the live event configuration to which content will be published.
- Setup: Define the audio/video source and the quality of the stream to be generated.
- Broadcast: Define ad breaks and mark the end of the live event.
Authentication
Upon loading the CameraSlicer app, it will prompt for CMS credentials. It will use these credentials to communicate with our services and to upload content.
Select Event Step
Once valid credentials have been provided, the CameraSlicer will display a list of the live events to which it can publish content. Select the desired live event and then click Next.
The CameraSlicer will only list live events whose status is set to “Pre-Event.”
Setup
Define the following settings through this step:
Setting | Description |
---|---|
Video source | Contains a list of the available video sources. If the desired video source is not listed, please verify that the desired hardware has been properly installed on the computer hosting the CameraSlicer application. |
Video input settings | SDI (Blackmagic) Only Adjust the video input settings to match your signal. |
Audio source | Contains a list of the available audio sources. If the desired audio source is not listed, please verify that the desired hardware has been properly installed on the computer hosting the CameraSlicer application. |
Streaming quality | Determines the bit rate of the stream published by the CameraSlicer. It is recommended to create a test live event to assess the highest quality bit rate that your upload bandwidth can support. |
Once the above settings have been defined, the CameraSlicer application is ready to start capturing audio/video and converting it into a live stream. Start the live event by clicking Begin Event.
Considerations
-
If prompted, please allow the CameraSlicer application to accept incoming network connections.
-
Upon clicking Begin Event, the live event’s status will switch from “Pre-Event” to “Live (Slicing).” Learn more.
-
Viewers may request a live event before the CameraSlicer starts capturing and slicing audio/video. Pre-event content will be streamed to those viewers.
Broadcast
This step:
- Provides a preview of the audio/video captured by the CameraSlicer.
- Allows ad breaks to be added to the live event.
- Allows the live event to be completed.
Ad Breaks
Ad breaks may be manually inserted into a live event through the following actions:
- Begin: Starts the ad break.
- End: Ends the ad break.
Key information
-
Set up ad integration prior to adding ad breaks. Learn more.
-
Ad slate will be displayed whenever there is an insufficient ad coverage for an ad break. This occurs when:
- An ad has not been defined for the ad break in question.
- The duration of the live event’s ad break exceeds that of the scheduled ads.
-
Define the asset that will be streamed on a loop for ad slate through the Ad Slate option. View this option by clicking the tab with the gears icon and then clicking Live from the Advanced pane on the left-hand side of the window.
Finish Event
Upon reaching the end of the live event, click Finish Event to toggle the status of the live event to “Complete.” This action completes the live event and prepares it for on-demand viewing.