Cloudfront signed cookies - cannot play media

Product

Player

Question

I have a player working well with Bitmovin-encoded, encrypted and non-encrypted streaming video served from AWS Cloudfront. Now I’m trying to include signed cookies. These work fine for progressive media (h264 wrapped as .mp4) but if I try to play an HLS or DASH stream I get console errors: either a CORS problem or “Cannot play media. No decoders for requested formats”. This is on Mac on all browsers.
Any ideas why this is failing? Thanks!

–update-- I’ve tried combinations of CORS policies and headers but no luck. However, the DASH stream plays natively and completely clean in Chrome. So I assume somehow the player needs additional config to pass the headers correctly - but what could that be?

–solved-- Turns out (just for streaming) you need a custom cache policy to pass back the necessary headers - Origin, Access-Control-Request-Headers, and Access-Control-Request-Method. see here. Also, setting ‘withCredentials:true’ and ‘manifestWithCredentials:true’ under player-source-options is probably good too.

1 Like

Hi,
It looks like you managed to solve the issue.
If any problem persists, please feel free to share a way for us to reproduce it and we’ll investigate more.

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.