# Apple AirPlay
ByteArk Player supports casting video to Apple TV or smart TVs that support AirPlay. On compatible browsers and operating systems, the player shows an AirPlay button on the control bar.
# AirPlay display

# Enable
Enable AirPlay via the bytearkAirplay plugin in options:
var player = bytearkPlayer('video-player', {
fluid: true,
plugins: {
bytearkAirplay: {}
},
sources: [{
title: 'Big Buck Bunny',
src: '<MEDIA_URL>',
type: 'application/x-mpegURL'
}]
});
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
# Supported environments
| Browser (OS) | AirPlay |
|---|---|
| Safari on macOS | Supported |
| Safari on iOS | Supported |
| Safari on iPadOS | Supported |
Note
AirPlay support depends on the browser and operating system. Use Safari on Apple platforms for the best experience.