Azure media services Fairplay + HLS problem

Anes Hmida 81 Reputation points

Good Evening,

I'm trying to create a new streaming policy in my AMS using the REST API , in order to allow HLS + Fairplay to be played back on IOS Devices.

I'm using a custom streaming policy configuration in order to create my streaming locators and adding a custom key policy with my Fairplay configuration.

in the key policy i added:

1- Open restriction

2 - In Fairplay configuration ( by order )

I added my .pfx
i added my pfx password
i added my Ask

3 - Persistent with unlimited.

this is my new streaming policy configuration :

  "properties": {

    "commonEncryptionCbcs": {
      "enabledProtocols": {
        "download": false,
        "dash": false,
        "hls": true,
        "smoothStreaming": false
      "contentKeys": {
        "defaultKey": {
          "label": "cbcsDefaultKey"
      "drm": {
        "fairPlay": {
          "allowPersistentLicense": true

here is a link to what i'm trying to play :,encryption=cbcs-aapl)

On azure media player :

All of my tests are done on SAFARI WEB browser.

My Content fails to playback , even on Azure Media Services interface i can't playback my stream locators saying

" Video cannot be streamed.
Your media asset is empty or not compatible with streaming. Check your media asset.".

Im stuck here , can any one assist me please ?

Any help would be appreciated, thank you.

Azure Media Services
Azure Media Services
A group of Azure services that includes encoding, format conversion, on-demand streaming, content protection, and live streaming services.
307 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. John Deutscher (MSFT) 2,126 Reputation points

    Make sure that the player is provided the Application Cert (public key), usually thru a URL such as

    The public Azure Media Player demo page at does not support FairPlay case.
    You might try this test player app (need to replace the FPS App Cert URL with your own) and see if that resolves the issue for you.

    2 people found this answer helpful.
    0 comments No comments