hls.js icon indicating copy to clipboard operation
hls.js copied to clipboard

Issue where CMAF DRM videos cannot be played

Open brodiddev opened this issue 1 year ago • 1 comments

What do you want to do with Hls.js?

Issue where CMAF DRM videos cannot be played

The url below is a CMAF DRM HLS video being transmitted through wowza streaming engine.

licenseXhrSetup works for other DRM HLS videos, but does not work for this video. Can't play DRM video encoded with CMAF in hls.js?

However, the same video is played when playing on iOS Safari. Since iOS Safari is not supported by hls.js, DRM decryption was done using native methods.

What have you tried so far?

I tried playing it with native hls playback, but keySystem related logs are not output and the licenseXhrSetup and licenseResponseCallback codes are not executed for CMAF DRM videos.

brodiddev avatar Nov 10 '23 01:11 brodiddev

Sorry, I don't see any KEY tags and the file extensions are .ts which suggests m2ts rather than CMAF.

$ curl https://dev-drm.stream.onlive.vn/drm/original/onlive020/manifest.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:BANDWIDTH=6834844,CODECS="avc1.64002a,mp4a.40.2",RESOLUTION=1920x1080

$ curl https://dev-drm.stream.onlive.vn/drm/original/onlive020/chunklist_w1124769025.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:6
#EXT-X-MEDIA-SEQUENCE:15473
#EXT-X-DISCONTINUITY-SEQUENCE:115
#EXTINF:2.916,
media_w1124769025_15473.ts
#EXTINF:4.334,
media_w1124769025_15474.ts
#EXTINF:3.3,
media_w1124769025_15475.ts
#EXTINF:1.4,
media_w1124769025_15476.ts
#EXTINF:1.733,
media_w1124769025_15477.ts
#EXTINF:3.183,
media_w1124769025_15478.ts

robwalch avatar Nov 17 '23 02:11 robwalch