stream content.md

Publish content for streaming

To deliver content to viewers, MK.IO uses two infrastructure components that must both be in place before playback is possible:

Both must exist before anyone can watch the content. You typically create one endpoint per environment, such as production and staging, and reuse it across many assets. A locator belongs to one asset, while any streaming endpoint in the same subscription can serve its paths.

Prerequisites

Create a streaming endpoint

A streaming endpoint is the network infrastructure that serves content from your storage to viewers. Each endpoint has a hostname that becomes part of every playback URL for assets assigned to it.

You can create multiple endpoints, for example separate endpoints for live and VOD content. Each asset is assigned to one endpoint at a time, though you can reassign it.

Endpoint types:

Type Capacity Best for
Shared Up to 600 Mbps on shared infrastructure Development, testing, and workloads within the shared capacity
Dedicated 200 Mbps of guaranteed bandwidth per unit Production workloads that require dedicated, scalable capacity
CDN Backed by dedicated endpoint capacity Production delivery that benefits from integrated edge caching

Open Streaming Endpoints

Go to Streaming Endpoints in the left navigation and click + Create Streaming Endpoint.

Configure the endpoint

Activate the endpoint

Click Create. If you did not enable auto-start, select your endpoint from the list and click Start.

Warning: A running streaming endpoint incurs costs even when no content is actively being played. Stop endpoints when they are no longer needed. See MK.IO pricing for details.

Create a streaming locator

A streaming locator is attached to one asset and generates the playback URLs for it. It controls:

Every asset needs at least one locator before it can be played. You can create multiple locators on the same asset, for example one for public access and one for DRM-protected access. Locator names must be unique within your project.

Open the asset

Go to Assets and click the name of the asset you want to publish.

Add a streaming locator

Scroll to the Streaming Locators section and click + Add Streaming Locator.

Configure the locator

Policy Use when
Predefined_ClearStreamingOnly Adaptive streaming (HLS/DASH) with no download or DRM
Predefined_DownloadAndClearStreaming Both streaming and direct file download, no DRM
Predefined_MultiDrmCencStreaming HLS/DASH protected with Widevine and PlayReady

For protected content, you also need a content key policy. See Content protection.

Create the locator

Click Add. The locator appears in the Streaming Locators list with its generated ID.

Apply the endpoint and locator to your asset

With both components created, link them to the asset to generate the playback URLs.

Select a streaming endpoint

On the asset page, open the Streaming Endpoint dropdown and select your running endpoint. Only running endpoints appear in this list.

Select a streaming locator

Open the Streaming locator dropdown and select the locator you created.

Apply

Click Apply. MK.IO generates the playback URLs and displays them at the top of the asset page.

Your asset's HLS and DASH playback URLs are now available. You can copy them for use in players, embed them in your application, or test them directly in the built-in MKPlayer on the asset page.

Playback URL format:

https://<endpoint-name>.<region>.streaming.mediakind.com/<locator-id>/<manifest-name>.ism/manifest(format=m3u8-cmaf)
https://<endpoint-name>.<region>.streaming.mediakind.com/<locator-id>/<manifest-name>.ism/manifest(format=mpd-time-cmaf)

Next steps

Use the Publishing API Guide to automate streaming endpoints and locators through the Media API.