Files
ArtPlayer/docs/document/class.md
T
2020-05-20 11:04:56 +08:00

1.5 KiB

version

  • Type: String

Return the player's version number

Run Code

console.info(Artplayer.version);

env

  • Type: String

Return to the player's code environment: development or production

Run Code

console.info(Artplayer.env);

config

  • Type: Object

Return all available propertys, methods and events of the video element

Run Code

console.info(Artplayer.config);

utils

  • Type: Object

Return all functional tools for development

Run Code

console.info(Object.keys(Artplayer.utils));

option

  • Type: Object

Return to default player options

Run Code

console.log(Artplayer.option);

instances

  • Type: Array

Return an array of all player instances

Run Code

console.log(Artplayer.instances.length);

scheme

  • Type: Object

Return the scheme used to verify player options

Run Code

console.log(Artplayer.scheme);

validator

  • Type: Function

Return validator: https://github.com/zhw2590582/option-validator

Run Code

console.log(Artplayer.validator);

kindOf

  • Type: Function

Return type judgment function: https://github.com/jonschlinkert/kind-of

Run Code

console.log(Artplayer.kindOf);