Contents

loadCertificate

A callback function used to load the security certificate for an item.

Declaration

readonly attribute Object loadCertificate;

Discussion

This attribute must be set if FairPlay Streaming is supported. The callback function must return either the asset identifier that was retrieved or null. This attribute must be assigned to a function that takes two parameters, url and callback; for example, item.loadCertificate = function certificate(url, callback) {}. The callback function must be called with the certificate that was retrieved, or with null as the first parameter. The second parameter is error. For more information, see the FairPlay Streaming page.

See Also

Supporting FairPlay Streaming