mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-09 03:46:16 -08:00
120 lines
1.6 KiB
Markdown
120 lines
1.6 KiB
Markdown
## version
|
|
|
|
- Type: `String`
|
|
|
|
Return the player's version number
|
|
|
|
[Run Code](/Class.version)
|
|
|
|
```js
|
|
console.info(Artplayer.version);
|
|
```
|
|
|
|
## env
|
|
|
|
- Type: `String`
|
|
|
|
Return to the player's code environment: `development` or `production`
|
|
|
|
[Run Code](/Class.env)
|
|
|
|
```js
|
|
console.info(Artplayer.env);
|
|
```
|
|
|
|
## config
|
|
|
|
- Type: `Object`
|
|
|
|
Return all available `propertys`, `methods` and `events` of the `video` element
|
|
|
|
[Run Code](/Class.config)
|
|
|
|
```js
|
|
console.info(Artplayer.config);
|
|
```
|
|
|
|
## utils
|
|
|
|
- Type: `Object`
|
|
|
|
Return all functional tools for development
|
|
|
|
[Run Code](/Class.utils)
|
|
|
|
```js
|
|
console.info(Object.keys(Artplayer.utils));
|
|
```
|
|
|
|
## option
|
|
|
|
- Type: `Object`
|
|
|
|
Return to default player options
|
|
|
|
[Run Code](/Class.option)
|
|
|
|
```js
|
|
console.log(Artplayer.option);
|
|
```
|
|
|
|
## instances
|
|
|
|
- Type: `Array`
|
|
|
|
Return an array of all player instances
|
|
|
|
[Run Code](/Class.instances)
|
|
|
|
```js
|
|
console.info(Artplayer.instances);
|
|
```
|
|
|
|
## scheme
|
|
|
|
- Type: `Object`
|
|
|
|
Return the scheme used to verify player options
|
|
|
|
[Run Code](/Class.scheme)
|
|
|
|
```js
|
|
console.info(Artplayer.scheme);
|
|
```
|
|
|
|
## validator
|
|
|
|
- Type: `Function`
|
|
|
|
Return validator: [https://github.com/zhw2590582/option-validator](https://github.com/zhw2590582/option-validator)
|
|
|
|
[Run Code](/Class.validator)
|
|
|
|
```js
|
|
console.info(Artplayer.validator);
|
|
```
|
|
|
|
## kindOf
|
|
|
|
- Type: `Function`
|
|
|
|
Return type judgment function: [https://github.com/jonschlinkert/kind-of](https://github.com/jonschlinkert/kind-of)
|
|
|
|
[Run Code](/Class.kindOf)
|
|
|
|
```js
|
|
console.info(Artplayer.kindOf);
|
|
```
|
|
|
|
## Emitter
|
|
|
|
- Type: `Function`
|
|
|
|
Return the `Emitter` constructor
|
|
|
|
[Run Code](/Class.Emitter)
|
|
|
|
```js
|
|
console.info(Artplayer.Emitter);
|
|
```
|