Detect HDCP support in Safari

Hi,


Currently when playing back FairPlay protected HLS streams in Safari with a display connected that does not support HDCP, or with AirPlay Mirroring enabled, all I see is a black screen (no video will play).


Is there a recommended way to detect HDCP not being supported, so that an error message can be displayed to the user?


Regards,

Zac

If the user's device is connected to a television or another external input, it must be HDMI, and by nature, HDCP must be active or any FairPlay Streaming content playback will fail, no exceptions.


The assumption, then is that the user is already aware of this requirement. In lieu of making that assumption, you may want to preface your download with an appropriate disclaimer, rather than let users get further along in the process, only to find their equipment isn't supported.


As to your question, AFAIK, Safari can't make a video hardware configuration determination for you, pre-need or otherwise. You could ask the user, but that seems clumsy in the face of the above.

Detect HDCP support in Safari
 
 
Q