Lumen help
Introduction
Mesh Delivery for Streaming can be integrated into your website with Video.js in just a few simple steps.
We have built optimized CDN Mesh Delivery plugins for video platforms using Video.js from v5.0.
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 Video.js and Mesh Delivery builds
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. |
Step 2: Visualize Mesh Delivery
To verify that Mesh Delivery was correctly configured, please install our Mesh Delivery graphs.
Optional: Set up Video.js and Mesh Delivery
You can either use the <source> element in the <video> tag or set the source dynamically using player.src() as illustrated below.
Include the following code in the HTML <body>:
Source in <video> tag
Dynamic source
Source in <video> tag
Dynamic source
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 is listed under "Recommended Hls.js options". |
YOUR_PLAYLIST_URL |
Yes |
Your playlist. |
Recommended Hls.js 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:
"liveSyncDuration" and "liveMaxLatencyDuration" are not needed for VOD streams.
Note: Video.js source handler is now deprecated
Migrating from videojs-contrib-hls
If you were using the Video.js Source Handler, please note that with our source handler and hls.js, you need to configure the XMLHttpRequest.withCredentials passing the following option in the hlsjsConfig.
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.