import{_ as i,o as n,c as t,ak as s,j as a}from"./chunks/framework.xxfEszSJ.js";const u=JSON.parse('{"title":"Static Properties","description":"","frontmatter":{},"headers":[],"relativePath":"en/advanced/class.md","filePath":"en/advanced/class.md","lastUpdated":1772946913000}'),l={name:"en/advanced/class.md"};function r(p,e,d,h,o,c){return n(),t("div",null,e[0]||(e[0]=[s('
Here, static properties refer to the first-level properties attached to the constructor, which are rarely used.
instances Returns an array of all player instances. This property can be useful when you need to manage multiple players simultaneously.
',4),a("div",{className:"run-code"},"▶ Run Code",-1),s(`console.info([...Artplayer.instances]);
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
});
console.info([...Artplayer.instances]);version Returns the version information of the player.
`,3),a("div",{className:"run-code"},"▶ Run Code",-1),s('console.info(Artplayer.version);env Returns the environment variables of the player.
',3),a("div",{className:"run-code"},"▶ Run Code",-1),s('console.info(Artplayer.env);build Returns the build timestamp of the player.
',3),a("div",{className:"run-code"},"▶ Run Code",-1),s('console.info(Artplayer.build);config Returns the default configuration for videos.
',3),a("div",{className:"run-code"},"▶ Run Code",-1),s('console.info(Artplayer.config);utils Returns the collection of utility functions for the player.
',3),a("div",{className:"run-code"},"▶ Run Code",-1),s('console.info(Artplayer.utils);For all utility functions, please refer to the following address:
scheme Returns the validation schema for player options.
',4),a("div",{className:"run-code"},"▶ Run Code",-1),s('console.info(Artplayer.scheme);Emitter Returns the constructor of the event emitter.
',3),a("div",{className:"run-code"},"▶ Run Code",-1),s('console.info(Artplayer.Emitter);validator Returns the validation function for options.
',3),a("div",{className:"run-code"},"▶ Run Code",-1),s('console.info(Artplayer.validator);kindOf Returns the type detection utility function.
',3),a("div",{className:"run-code"},"▶ Run Code",-1),s('console.info(Artplayer.kindOf);html Returns the html string required by the player.
console.info(Artplayer.html);option Returns the default options of the player.
',3),a("div",{className:"run-code"},"▶ Run Code",-1),s('console.info(Artplayer.option);