mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-22 05:11:20 -08:00
update docs
This commit is contained in:
1 parent
c709b5d7db
commit
6ad6e8fddc
47 files changed
+216
-206
No files matched your search
@@ -507,7 +507,7 @@ Whether use playsInline in mobile
|
||||
|
||||
```js
|
||||
var art = new Artplayer({
|
||||
container: $container,
|
||||
container: '.artplayer-app',
|
||||
url: '/assets/sample/video.mp4',
|
||||
playsInline: true,
|
||||
});
|
||||
@@ -833,10 +833,10 @@ Support `string` match, `function` match, `regular` match
|
||||
var art = new Artplayer({
|
||||
container: '.artplayer-app',
|
||||
url: '/assets/sample/video.mp4',
|
||||
whitelist: ['iPhone OS 11'],
|
||||
// whitelist: ['*'],
|
||||
// whitelist: [(ua) => /iPhone OS 11/gi.test(ua)],
|
||||
// whitelist: [/iPhone OS 11/gi]
|
||||
// whitelist: [/iPhone OS 11/gi],
|
||||
// whitelist: ['iPhone OS 11'],
|
||||
whitelist: ['*'],
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
@@ -507,7 +507,7 @@ SSR 是 Server Side Render 简称,页面上的内容是通过服务端渲染
|
||||
|
||||
```js
|
||||
var art = new Artplayer({
|
||||
container: $container,
|
||||
container: '.artplayer-app',
|
||||
url: '/assets/sample/video.mp4',
|
||||
playsInline: true,
|
||||
});
|
||||
@@ -833,10 +833,10 @@ art.on('ready', () => {
|
||||
var art = new Artplayer({
|
||||
container: '.artplayer-app',
|
||||
url: '/assets/sample/video.mp4',
|
||||
whitelist: ['iPhone OS 11'],
|
||||
// whitelist: ['*'],
|
||||
// whitelist: [(ua) => /iPhone OS 11/gi.test(ua)],
|
||||
// whitelist: [/iPhone OS 11/gi],
|
||||
// whitelist: ['iPhone OS 11'],
|
||||
whitelist: ['*'],
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user