mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-24 06:31:20 -08:00
update docs
This commit is contained in:
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`
|
||||
|
||||
Reference in new issue
Block a user