Issues embedding DRM content in iFrame only on Chrome/Firefox?

Hi,

I think you’ve already set up the required attributes to play encrypted streams via iFrame , but let me double check the below points

  1. Are the both sites (the parent and the embedded) deployed via https?
  2. Does your iframe element have the allow="encrypted-media" attribute?

From the error message, it seems the site wasn’t allowed to use the browser’s EME API via iFrame. So I suppose the iframe’s feature policy could be related.

Here are the reference pages of iframe attributes and feature-policy:encrypted-media.

Best Regards,
Kazuhide

1 Like