Hi, I am evaluating to use bitmovin player but I am struggled trying to configure a video encoding with AES 128. I am creating a muxing like this:
var videoMuxing = new Fmp4Muxing
{
Streams = [new() { StreamId = videoStream.Id }],
SegmentLength = segmentLength
};
videoMuxing = await bitmovinApi.Encoding.Encodings.Muxings.Fmp4.CreateAsync(encodingId, videoMuxing);
byte[] iv = new byte[16]; // 16-byte initialization vector
new Random().NextBytes(iv); // randomize the IV
var key = GenerateHexadecimalString(32);
var aesDrm = await bitmovinApi.Encoding.Encodings.Muxings.Fmp4.Drm.Aes.CreateAsync(encodingId, videoMuxing.Id, new AesEncryptionDrm
{
Key = key,
Iv = BitConverter.ToString(iv).Replace("-", string.Empty),
Method = AesEncryptionMethod.AES_128,
Outputs = [videoEncodingOutput],
KeyFileUri = $"encryption-{alias}.key"
});
but when I set the HLS manifest in the player I get an infinite loop trying to download the init.mp4 file. The request does not fail though.
Have you ever seen this error before? as soon as I disable AES DRM, everything works fine.
Thanks!