update docs

This commit is contained in:
Harvey committed 2022-07-13 15:42:25 +08:00
1 parent fbd1d2170a
commit 5758d4c93e
120 files changed
+317 -266

No files matched your search

@@ -317,7 +317,7 @@ art.on('ready', () => {
art.seek = 10;
art.once('video:canplay', () => {
art.screenshot();
})
});
});
```
@@ -743,6 +743,31 @@ art.on('ready', () => {
});
```
## airplay
- Type: `Function`
Open the Airplay
<div className="run-code">▶ Run Code</div>
```js
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
controls: [
{
name: 'airplay',
position: 'right',
html: 'AirPlay',
click: function () {
art.airplay();
},
},
],
});
```
## destroy
- Type: `Function`
@@ -317,7 +317,7 @@ art.on('ready', () => {
art.seek = 10;
art.once('video:canplay', () => {
art.screenshot();
})
});
});
```
@@ -743,6 +743,31 @@ art.on('ready', () => {
});
```
## airplay
- Type: `Function`
开启隔空播放
<div className="run-code">▶ Run Code</div>
```js
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
controls: [
{
name: 'airplay',
position: 'right',
html: 'AirPlay',
click: function () {
art.airplay();
},
},
],
});
```
## destroy
- 类型: `Function`