From 0a47d1a10a276ab9c2f796ec46a9472286c37bdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Einarson?= Date: Wed, 17 Jan 2024 08:16:41 +0100 Subject: [PATCH] fix: update DASH-IF CPP to ECCP following DASH-IF IOP 5.0 --- mpd/mpd.go | 23 ++++++++++++----------- mpd/testdata/livesim/multi-drm.mpd | 8 ++++---- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/mpd/mpd.go b/mpd/mpd.go index f51df92..e2d9662 100644 --- a/mpd/mpd.go +++ b/mpd/mpd.go @@ -518,10 +518,10 @@ type ContentProtectionType struct { Pssh *PsshType `xml:"urn:mpeg:cenc:2013 cenc:pssh,omitempty"` // MSPro is Microsoft PlayReady provisioning data with namespace "urn:microsoft:playready and "prefix "mspr". MSPro *MSProType `xml:"urn:microsoft:playready mspr:pro,omitempty"` - // ClearKey is DASH-IF clear key - ClearKey *ClearKeyType `xml:"http://dashif.org/guidelines/clearKey ck:Laurl,omitempty"` - // LaURL is DASH-IF License Acquisition URL. - LaURL *LaURL `xml:"https://dashif.org/ dashif:laurl,omitempty"` + // LaURL is DASH-IF License Acquisition URL according to DASH-IF IOp v5.0. + LaURL *LaURLType `xml:"https://dashif.org/CPS dashif:Laurl,omitempty"` + // AuthzURL is DASH-IF clear key authorization URL according to DASH-IF IOp v5.0. + AuthzURL *AuthzURLType `xml:"https://dashif.org/CPS dashif:Authzurl,omitempty"` // MarlinContentIds is Marlin Content Ids containing one or more MarlineContentId elements. MarlinContentIds *MarlinContentIds `xml:"urn:marlin:mas:1-0:services:schemas:mpd mas:MarlinContentIds,omitempty"` DescriptorType @@ -537,15 +537,16 @@ type MSProType struct { Value string `xml:",chardata"` } -// ClearKeyType is DASH-IF clear key type -type ClearKeyType struct { - LicType string `xml:"Lic_type,attr"` - Value string `xml:",chardata"` +// LaURLType is License Acquisition URL according to DASH-IF IOP v5.0. +type LaURLType struct { + LicenseType string `xml:"licenseType,attr,omitempty"` + Value AnyURI `xml:",chardata"` } -// LaURL is License Acquisition URL. -type LaURL struct { - Value string `xml:",chardata"` +// AuthzURLType is DASH-IF Authzurl according to DASH-IF IOp v5.0. +type AuthzURLType struct { + AuthzType string `xml:"authzType,attr,omitempty"` + Value AnyURI `xml:",chardata"` } // MarlinContentIds is Marlin Content Ids containing one or more MarlineContentId elements. diff --git a/mpd/testdata/livesim/multi-drm.mpd b/mpd/testdata/livesim/multi-drm.mpd index 00aab85..5969cfd 100644 --- a/mpd/testdata/livesim/multi-drm.mpd +++ b/mpd/testdata/livesim/multi-drm.mpd @@ -1,12 +1,12 @@ - + - + - http://clearkey.source.org - http://clearkey.source.org + https://clearkey.source.org + https://authentication.source.org