Sample site url we created and having the issue mentioned below : https://jdcash711.wixsite.com/website
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: 126.96.36.199 (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.
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 :
The result of document.featurePolicy.allowedFeatures(); at the iframe level for our site is given below: