add airplay

This commit is contained in:
Harvey committed 2022-07-13 15:35:04 +08:00
1 parent 55c7560ce2
commit fbd1d2170a
20 files changed
+210 -17

No files matched your search

@@ -1123,3 +1123,20 @@ var art = new Artplayer({
autoOrientation: true,
});
```
## airplay
- Type: `Boolean`
- Default: `false`
Whether to display the AirPlay button, only available in Safari currently
<div className="run-code">▶ Run Code</div>
```js
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
airplay: true,
});
```
@@ -1120,4 +1120,21 @@ var art = new Artplayer({
url: '/assets/sample/video.mp4',
autoOrientation: true,
});
```
## airplay
- Type: `Boolean`
- Default: `false`
是否显示 airplay 按钮,当前只在 Safari 下可用
<div className="run-code">▶ Run Code</div>
```js
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
airplay: true,
});
```