Start a new topic

How to play M3U8 file?

 I'm not a techie but I have uploaded a test video into a S3 bucket and then I converted that to the HLS format through a pipeline.
For the preset, I used HLS 400k Video and for the Playlist format, I chose HLSv4.

However, when I embed the resulting URL on my site, it's not playing through the viblast player (the sample video provided by viblast played fine).

Any ideas?

Here is the link to the HLS video:



The given url is not valid:




<Message>Access Denied</Message>






Could you fix it and share again?

Also make sure the CORS is enabled as it is the common reason for the issues.

You can read more about it here.

 Here is the updated link:

Here is the link to the Cloudfront link which doesn't work.

Here is my current CORS Config:

<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="">


Any ideas on why its not playing in the player through Cloudfront?

Appreciate the help,



Your cloudfront URL is not accessible. It is not related to CORS. The response from cloudfront is:

< HTTP/1.1 403 Forbidden

< Server: CloudFront

< Date: Tue, 21 Mar 2017 07:18:56 GMT

< Content-Type: text/xml

< Content-Length: 146

< Connection: keep-alive

< X-Cache: Error from cloudfront

< Via: 1.1 (CloudFront)

< X-Amz-Cf-Id: moaDw2H5SjLJJOAZwP0cCSEnD5py0xAesUVbu4Lk726dcaM2fntLOQ==

* Connection #0 to host left intact

<?xml version="1.0" encoding="UTF-8"?><Error><Code>MissingKey</Code><Message>Missing Key-Pair-Id query parameter or cookie value</Message></Error>

You have to check your config settings and try again.

What could that error indicate? What could be the issue?



That means that your url is not public and has restricted access. You can google or refer to Amazon Cloudfront documentation how to manage your resources. For example:

Does Viblast support HLS Adaptive streaming through Cloudfront?

If it does, how do I keep the link private and secure and let it play only through my website?



Hi Amin,

Yes, Viblast Player does support HLS Adaptive streaming through any CDN, including Amazon Cloudfront.

About the security you have to ask amazon support or any skilled network admin.

have viblast people ever tested the player with cloudfront's signed cookies ? it's a very widespread configuration for securing hls (time window & ip restrictions), all other players known to work with CF's signed cookies need to explicitely force withCredential=true in XMLHttpRequest, how it's should be done in viblast ?



You can set explicitly withCredentials=true on every request:

The code should look like this:

  // as usual
  xhrBeforeSend: function(ev) {
ev.xhr.withCredentials = "true";

Login to post a comment