Skip to content

Googlecast not working with AES 128 encryption without IV #42

@novusbd

Description

@novusbd

I used this sample sender and Default Media Receiver to play an HLS stream. It's showing only the blue Chromecast icon instead of playing the video on TV. The stream is encrypted with aes-128 without an IV. I have noticed if I remove the encryption it works fine.
The encrypted file works fine on web players such as video.js.
My m3u8 is using #EXT-X-VERSION:1
Is Googlecast compatible with AES-128 encryption without an IV? Since video.js and other web player can play the encrypted stream, I assume there is no issue with the encrypted stream itself. The receiver and key delivery URL are both hosted on HTTPS.
This is what the server manifest looks like for each stream variant:

#EXTM3U
#EXT-X-VERSION:1
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-ALLOW-CACHE:NO
#EXT-X-TARGETDURATION:8
#EXT-X-KEY:METHOD=AES-128,URI="https://www.keyserver.com/HLSkey.ashx"
#EXTINF:8, no desc
VideoFile-audio%3D96000-video%3D1395000-1.ts
#EXTINF:8, no desc
VideoFile-audio%3D96000-video%3D1395000-2.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions