Airplay module#

The Airplay module is designed to provide integration with Airplay devices enabling users to cast media content directly from their application to a Airplay receiver. It simplifies the process of establishing and managing casting sessions, offering developers a customizable and scalable solution for Airplay functionality.

Limitations#

The module is incompatible with the Podcast module, Panorama module, or the Hotspots Editor module. Any of these configurations will prevent the module from functioning as intended. The module will be enabled only when the site uses the HTTPS protocol.

Options#

OptionTypeDescription
addButtonToControlBarbooleanIndicates whether a Cast button should be added to the control bar.
buttonPositionIndexnumberSpecifies the position index where the Cast button should be placed within the control bar. Ignored if addButtonToControlBar is false.

Example#

window.initPlayer('my-video', {
  airplayPlugin: {
    addButtonToControlBar: true,
    buttonPositionIndex: 16
  },
})