go-dash
go-dash copied to clipboard
Lowercase scheme IDs for content protection
We are using this library in our software to manipulate DASH manifests created by Unified Streaming Packager (https://www.unified-streaming.com/products/unified-packager). That packager puts content protection IDs in uppercase, but this library only checks for lowercase IDs, so we were losing the <cenc:pssh> block in the final output as the content protection blocks were being treated as generic.
This change forces content protection IDs to lowercase so the matching will succeed regardless of case. We tested this in our workflow and everything works as expected (i.e. the <cenc:pssh> block is not lost).