Safari HLS#

The Safari HLS module is designed for enabling HLS playback on Safari, supporting both standard and DRM-protected streams. This plugin integrates seamlessly with the KWIKplayer ecosystem, offering smooth playback on Apple's browser.

Initialization#

To enable Safari HLS support, configure the player options as follows:

window.initPlayer('my-video', {
  safariHlsPlugin: {
    drm: {
      certificateUrl: 'https://example.com/certificate',
      keySystem: 'com.apple.fps.1_0',
      licenseUrl: 'https://example.com/license,
    },
  }
})

Options#

OptionTypeDescription
certificateUrlstringURL for the DRM server's FairPlay certificate.
keySystemstringThe DRM key system to use. Defaults to 'com.apple.fps.1_0'.
licenseUrlstringURL for the license server to obtain decryption keys.