Lumen help
Introduction
Mesh Delivery for Streaming can be integrated into your website with Hls.js in just a few simple steps.
We have built an optimized wrapper for Hls.js from v0.6.21.
The complete list of integrations we support and guides for setting them up can be found here. If you would like to integrate Mesh Delivery for streaming with a video player not on the list, write to us at cdnsupport@lumen.com and we will help you out.
Not into tutorials?
Step 1: Install Hls.js and Mesh Delivery builds
You will first need to install the builds for Hls.js and the appropriate Mesh Delivery build. This can be done in two ways.
From our CDN
Include these sources in the HTML <head>:
To get the highest flexibility of deployment, we recommend setting the StreamrootKey in the Query Parameter "srKey".
Parameter name |
Mandatory |
Description |
YOUR_STREAMROOT_KEY |
Yes |
The unique Streamroot key that we have assigned to you; make sure it is identical to the one provided in the Account section of your dashboard. |
Using npm
Install runtime and dev dependencies:
In your application, import/require the package you want to use, like this example:
Step 2: Set up Hls.js and Mesh Delivery
In the HTML <body> or with npm
Parameter name |
Mandatory |
Description |
No |
The object in which you can pass Mesh Delivery options (property, contentIdGenerator, id, etc.). |
|
hlsjsConfig |
No |
The object in which you can change hls.js options. More information can be found in the "Recommended options" section below. |
YOUR_STREAMROOT_KEY |
Yes |
The unique Streamroot key that we have assigned to you; make sure it is identical to the one provided in the Account section of your dashboard. |
YOUR_PLAYLIST_URL |
Yes |
Your HLS playlist. |
Recommended Options
hls.js has a variety of configuration parameters that can be instantiated in hlsjsConfig object for fine-tuning. You can learn more about them in their API Documentation. For optimal performance with live content, we recommend the following values:
For optimal performance with VOD content, we recommend the following values:
And in just a few easy steps you should have a working integration of Mesh Delivery! We encourage you to explore our documentation to understand the various features we offer so you can make the most out of our product.
Explore CDN Mesh Delivery