We want to Apply AES Encryption DRM while Encoding.
See the below code snippets.
private Task CreateDrmConfig(Models.Encoding encoding, Muxing muxing, Output output,
string outputPath)
{
var cencDrm = new AesEncryptionDrm()
{
Outputs = new List<EncodingOutput>() { BuildEncodingOutput(output, outputPath) },
Key = "770A8A65DA156D24EE2A093277530142",
Iv = "F5502320F8429037B8DAEF761B189D12",
Name = "AESKey",
Description = "AES Key Generator"
};
return _bitmovinApi.Encoding.Encodings.Muxings.Fmp4.Drm.Aes.CreateAsync(encoding.Id, muxing.Id, cencDrm);
}
I’m getting Error Message:- One or more fields are not present or invalid errorCode: 1000
Can anyone tell us that what’s wrong here is?
are the format of key or iv proper ?