none
Unable to play encrypted video in iframe in chrome. Firefox and edge can play the same iframes with the same URL. Getting error code : 273678337 RRS feed

  • Question

  • We are creating a video hosting site using azure. Since the videos we intend to propagate are private mixed with public, we have decided to use encryption(Widevine and Playready) and a log in system. Since we also have public videos, we provided users to create an embed URL for the videos. We a We facilitated this using a document id and a view that is publicly accessible and this view will be in the embed URL. When a request with the valid document id reaches this view, we call another view with the credentials for decrypting that video. In this view the video is played using azure media player. All this is working in most sites but for some sites especially websites created using Wix,Strikingly and Godaddy , it shows the below error:

    Encrypted Media access has been blocked because of a Feature Policy applied to the current document. 

    I have already added the allow="encrypted-media" permission in the embed code, but of no use.

    I am also getting this error code - error: videojs: 2.2.4.1 (CODE:273678337 undefined) [object Object]

    Has anyone run in to a similar situation and found a solution for the same? If so please do help.

    Here is the site url we created : https://jdcash711.wixsite.com/website
    • Edited by JamesMacrone Wednesday, October 9, 2019 11:45 AM
    Monday, October 7, 2019 1:14 PM

All replies

  • I'd suggest that you double check the actual allowdFeatures at the iframe level, using the Feature Policy API like below:

    document.featurePolicy.allowedFeatures();

    If parent page allowedFeatures and iframe allowedFeatures overlap, the more restrictive one wins. 

    In case you want to see the above API in action, go to http://aka.ms/amtest, at the bottom of the diagnostic overlay, dropdown to "Browsers, AMP, screen", and scroll to the bottom to see the list of features supported by a Chromium-based browser and the actual allowed features.

    The reason that it works for you in Firefox and Win10/Edge is that neither of the two browsers supports Feature Policy.


    Monday, October 7, 2019 3:36 PM
  • Hi William,

    Thank you for the quick response.

    We tried adding the feature policy to the http headers in our site and also checked the feature policy of the websites we created using the website builders and found that both our site and the sites generated using the website builder tools have 'encrypted-media' in the allowed list. The video is still showing the 'unable to decrypt' message with error code : 273678337

    Would there be any reason why it is so? 

    The result of document.featurePolicy.allowedFeatures(); for the site created using Godaddy is given below : 

    1. 0"geolocation"
    2. 1"accelerometer"
    3. 2"midi"
    4. 3"focus-without-user-activation"
    5. 4"camera"
    6. 5"usb"
    7. 6"magnetometer"
    8. 7"payment"
    9. 8"picture-in-picture"
    10. 9"fullscreen"
    11. 10"vr"
    12. 11"document-domain"
    13. 12"encrypted-media"
    14. 13"autoplay"
    15. 14"ambient-light-sensor"
    16. 15"gyroscope"
    17. 16"sync-xhr"
    18. 17"microphone"

    The result of document.featurePolicy.allowedFeatures(); at the iframe level for our site is given below:

    1. 0"focus-without-user-activation"
    2. 1"picture-in-picture"
    3. 2"document-domain"
    4. 3"encrypted-media"
    5. 4"sync-xhr"

    Tuesday, October 8, 2019 5:08 AM
  • I think Chrome team should be involved in this case. I saw that this issue has been submitted to Chrome Support: https://support.google.com/chrome/thread/16291499?hl=en 

    Just to make sure this issue is only related to DRM protected content: unprotected/open content works in all the above scenarios (Wix, GoDaddy, etc.)?

    Tuesday, October 8, 2019 9:57 PM
  • Hi William,

    Yes, our team had submitted the issue to chrome support, but as of now no response.

    We tried using unprotected/open content in all the scenarios and all worked.

    Here is the sample site we created

    https://jdcash711.wixsite.com/website


    • Edited by JamesMacrone Wednesday, October 9, 2019 11:43 AM
    Wednesday, October 9, 2019 7:43 AM