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