add playsInline option

This commit is contained in:
zhw2590582 committed 2022-03-16 22:02:28 +08:00
1 parent b284381534
commit 4f10486987
57 files changed
+277 -219

No files matched your search

@@ -496,6 +496,23 @@ SSR is the abbreviation of Server Side Render. The content on the page is genera
:::
## playsInline
- Type: `Boolean`
- Default: `true`
Whether use playsInline in mobile
<div className="run-code">▶ Run Code</div>
```js
var art = new Artplayer({
container: $container,
url: '/assets/sample/video.mp4',
playsInline: true,
});
```
## layers
- Type: `Array`
@@ -496,6 +496,23 @@ SSR 是 Server Side Render 简称,页面上的内容是通过服务端渲染
:::
## playsInline
- 类型: `Boolean`
- 默认: `true`
在移动端是否使用 playsInline 模式
<div className="run-code">▶ Run Code</div>
```js
var art = new Artplayer({
container: $container,
url: '/assets/sample/video.mp4',
playsInline: true,
});
```
## layers
- 类型: `Array`
@@ -570,9 +587,9 @@ var art = new Artplayer({
html: '子菜单02',
},
],
onSelect: function(item) {
onSelect: function (item) {
console.log(item.html);
}
},
},
{
html: '自定义设置02',
@@ -584,9 +601,9 @@ var art = new Artplayer({
html: '子菜单02',
},
],
onSelect: function(item) {
onSelect: function (item) {
console.log(item.html);
}
},
},
],
});
@@ -820,7 +837,6 @@ var art = new Artplayer({
// whitelist: ['*'],
// whitelist: [(ua) => /iPhone OS 11/gi.test(ua)],
// whitelist: [/iPhone OS 11/gi],
});
```