Documentation
@oplayer/plugins
Airplay

Chromecast

npm i @oplayer/plugins
import { AirPlay } from '@oplayer/plugins'
 
Player.make('#oplayer').use([new AirPlay()]).create()
<script src="https://cdn.jsdelivr.net/npm/@oplayer/plugins@latest/dist/airplay.min.js"></script>
 
<script>
  Player.make('#oplayer').use([new OAirPlay()]).create()
</script>