Chromecast Live HLS

Hello,

After struggling with my CORS headers, I managed to make my VOD content work with Chromecast via the player module.

My problem now is that Chromecast refuses to play the live HLS stream (nginx, manual live).

Does anyone have had any experience with this ? Or do I have to switch back to wowza / kaltura integration ?

I have validated muy hls stream and works in all devices but Chromecast.

Any help will be appreciated,

David Eusse

Hello,

I’l answer my own question in case somebody else needs it.
Here are some instructions for making Chromecast work (somehow):

  1. You need to create either a custom or skinned receiver on cast.google.com and publish it

  2. Assign the Application ID to your player.

  3. Activate a DASH VOD delivery profile

  4. Verify that your CORS headers are OK (another headache):
    add_header ‘Access-Control-Allow-Headers’ ‘*’;
    add_header ‘Access-Control-Allow-Headers’ ‘Range’;
    add_header ‘Access-Control-Expose-Headers’ ‘Content-Length, Content-Range’;

    add_header ‘Access-Control-Expose-Headers’ ‘Server,Range,Content-Length,Content-Range’;

      add_header 'Access-Control-Allow-Methods' 'GET, HEAD, OPTIONS';
      add_header 'Access-Control-Allow-Origin' '*';
    
  5. For your nginx live HLS you need to setup ABSOLUTE urls like this:
    hls_base_url https://cdn.yyy.com/live/;

  6. If you want to customize your receiver you can point it to your player’s module, like this:
    https://mykaltura.xxx.com/html5/html5lib/v2.80/modules/Chromecast/resources/receiver/receiver.html

  7. That’s it

David