We are having issues playing a protected with AES (with JWT token authentication) video on iPhone 6 (A1586). The following error arrears:
0x50300000 - The video playback was aborted due a corruption problem or because the video used features your browser did not support
The very same video plays w/o any problems when encryption is disabled.
The thing is that the sample that replicates such scenario published by Azure Media Player team does not work either and fails with the very same error! It's available here: https://ampdemo.azureedge.net/. This sample named as follows:
AES (JWT token) – On Demand [Tears of Steel Teaser]
How can I do protected video streaming via Azure media Services/Player on iPhone? Is it supported scenario at all?
Here is the relevant code that sets up the delivery policy:
deliveryPolicy = context.AssetDeliveryPolicies.Create(
DeliveryPolicyName,
AssetDeliveryPolicyType.DynamicEnvelopeEncryption,
AssetDeliveryProtocol.SmoothStreaming | AssetDeliveryProtocol.Dash | AssetDeliveryProtocol.HLS,
new Dictionary<AssetDeliveryPolicyConfigurationKey, string>
{
{ AssetDeliveryPolicyConfigurationKey.EnvelopeKeyAcquisitionUrl, contentKey.GetKeyDeliveryUrl(ContentKeyDeliveryType.BaselineHttp).ToString() }
}
);