refactor(core): airplay button (#1614)

This commit is contained in:
Santiago Puppo
2026-06-03 13:54:28 -07:00
committed by GitHub
parent 127443aaa2
commit 24a78d253a
40 changed files with 314 additions and 198 deletions
@@ -1,4 +1,4 @@
import { AirplayButton, createPlayer } from '@videojs/react';
import { AirPlayButton, createPlayer } from '@videojs/react';
import { Video, videoFeatures } from '@videojs/react/video';
const Player = createPlayer({ features: videoFeatures });
@@ -14,13 +14,13 @@ export default function BasicUsage() {
playsInline
loop
/>
<AirplayButton
<AirPlayButton
className="media-airplay-button"
render={(props, state) => {
const label =
state.availability === 'unsupported'
? 'AirPlay not supported'
: state.airplayState === 'connected'
: state.state === 'connected'
? 'Stop AirPlay'
: state.availability === 'unavailable'
? 'No AirPlay devices found'