Azure media services Fairplay + HLS problem

Anes Hmida 81 Reputation points
2021-02-04T16:41:14.703+00:00

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 :

https://ep-swannmediaservice-euwe.streaming.media.azure.net/b4c8b2d7-7820-491f-8884-84888332a55b/the-wonderful-wizard-of-oz-008-c.ism/manifest(format=m3u8-aapl,encryption=cbcs-aapl)

On azure media player :

https://ampdemo.azureedge.net/?url=https%3A%2F%2Fep-swannmediaservice-euwe.streaming.media.azure.net%2Fb4c8b2d7-7820-491f-8884-84888332a55b%2Fthe-wonderful-wizard-of-oz-008-c.ism%2Fmanifest(format%3Dm3u8-aapl%2Cencryption%3Dcbcs-aapl)

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.
315 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. John Deutscher (MSFT) 2,126 Reputation points
    2021-02-04T18:23:32.53+00:00

    Hi,
    Make sure that the player is provided the Application Cert (public key), usually thru a URL such as https://openidconnectweb.azurewebsites.net/Content/FPSAC.cer

    The public Azure Media Player demo page at https://ampdemo.azureedge.net/ does not support FairPlay case.
    You might try this test player app http://aka.ms/amtest (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