Compare commits

..
1113 Commits
Author SHA1 Message Date
zhw2590582 ae40a5843c Update index.js 2021-11-28 19:55:10 +08:00
zhw2590582 6d6d78939d remove networkMonitor 2021-11-28 19:49:18 +08:00
zhw2590582 50dd23ae31 build docs 2021-11-28 19:42:28 +08:00
zhw2590582 83a35c8b6d typo fix 2021-11-28 19:41:41 +08:00
zhw2590582 c9679bbd24 Update _category_.json 2021-11-28 19:37:06 +08:00
zhw2590582 90f434932e Update package.json 2021-11-28 19:34:28 +08:00
zhw2590582 d2facc5a76 update docs 2021-11-28 19:33:58 +08:00
zhw2590582 cf7cfd85ce update eslint rule 2021-11-28 19:32:40 +08:00
zhw2590582 5a7dc3b935 update docs 2021-11-28 16:43:26 +08:00
Harvey Zack 1ac99407dc Merge pull request #189 from zhw2590582/4.0.0
4.0.0
2021-11-28 16:40:08 +08:00
zhw2590582 5735467af0 Update .eslintignore 2021-11-28 16:38:51 +08:00
zhw2590582 7341d53c5c build all packages 2021-11-28 16:36:42 +08:00
zhw2590582 b909f2f498 update 2021-11-28 16:06:50 +08:00
zhw2590582 6f305bcf12 update docs 2021-11-28 15:41:48 +08:00
zhw2590582 35fcbfe853 update docs 2021-11-28 15:26:35 +08:00
zhw2590582 9cbfa63584 update 2021-11-28 14:31:26 +08:00
zhw2590582 4d73f41e38 update 2021-11-28 14:24:10 +08:00
zhw2590582 454982ab4f Update docusaurus.config.js 2021-11-28 13:49:48 +08:00
zhw2590582 023391be4c update 2021-11-28 13:47:41 +08:00
zhw2590582 480c3b539f Update Create button in the controls.md 2021-11-28 13:35:53 +08:00
zhw2590582 c79b41b224 update 2021-11-28 13:29:46 +08:00
zhw2590582 1d45a7b4ca update 2021-11-28 13:00:26 +08:00
zhw2590582 af97602cfa update 2021-11-28 13:00:07 +08:00
zhw2590582 28d9ad2eaa update 2021-11-28 12:33:03 +08:00
zhw2590582 68b712de0f Update Advance.md 2021-11-28 11:25:04 +08:00
zhw2590582 793734759a update 2021-11-28 11:23:21 +08:00
zhw2590582 d72d816ef7 update 2021-11-28 11:10:24 +08:00
zhw2590582 482f02824d Update README.md 2021-11-28 10:27:55 +08:00
zhw2590582 c16dfc391a Update README.md 2021-11-28 10:27:45 +08:00
Harvey Zack bb1cfed332 Update README.md 2021-11-28 10:26:22 +08:00
zhw2590582 552806ad83 update 2021-11-28 10:09:23 +08:00
zhw2590582 e8030809fd Update README.md 2021-11-28 10:02:44 +08:00
zhw2590582 82bee61317 Update screenshot.png 2021-11-28 09:59:21 +08:00
zhw2590582 21725fe30f Merge branch '4.0.0' of https://github.com/zhw2590582/ArtPlayer into 4.0.0 2021-11-28 09:57:57 +08:00
zhw2590582 f0bb610557 Update Options.md 2021-11-28 09:57:43 +08:00
Harvey Zack 709a8b20e2 Update README.md 2021-11-28 09:57:29 +08:00
zhw2590582 6c8b8e188a update 2021-11-28 09:30:43 +08:00
zhw2590582 00150073b9 update 2021-11-28 09:13:06 +08:00
zhw2590582 d8e0a53b99 Update Events.mdx 2021-11-27 18:07:04 +08:00
zhw2590582 9902e54e38 Update Events.mdx 2021-11-27 17:44:25 +08:00
zhw2590582 b51e9cbb71 update 2021-11-27 17:42:17 +08:00
Harvey 437c6bfd92 Update Class.md 2021-11-26 18:22:25 +08:00
Harvey 9c5aa6424b update 2021-11-26 18:20:07 +08:00
Harvey b3c31dfd2b Update Advance.md 2021-11-26 17:56:53 +08:00
Harvey b9ccea7189 update 2021-11-26 17:28:34 +08:00
Harvey 058d4c4cd7 Update Properties.md 2021-11-26 15:16:16 +08:00
Harvey a6fe955fe8 Update Properties.md 2021-11-26 15:15:20 +08:00
Harvey 565a4c3216 Update Properties.md 2021-11-26 14:46:53 +08:00
Harvey 2cafd359ab update 2021-11-26 14:29:14 +08:00
Harvey c6e092c691 Update Properties.md 2021-11-26 14:01:49 +08:00
Harvey 475c9f931b update 2021-11-26 13:46:37 +08:00
Harvey 16ad88e602 update 2021-11-26 11:48:11 +08:00
zhw2590582 a1671fce5a Update Options.md 2021-11-25 21:21:18 +08:00
zhw2590582 f4d3c77c6c update 2021-11-25 20:23:14 +08:00
Harvey 396026f533 Update Options.md 2021-11-25 18:27:37 +08:00
Harvey b01c0a881d Update Options.md 2021-11-25 18:04:38 +08:00
Harvey f49265a03e update 2021-11-25 16:31:26 +08:00
Harvey 17cde77b59 Update Overview.md 2021-11-25 08:37:49 +08:00
Harvey df1719101b Update Overview.md 2021-11-24 18:34:02 +08:00
Harvey ecf375ffbc update 2021-11-24 18:16:29 +08:00
Harvey 6518c9b213 update 2021-11-24 17:53:45 +08:00
Harvey 932b2005d5 update 2021-11-24 17:01:50 +08:00
Harvey 592df134f1 Update bugfix.js 2021-11-24 17:00:54 +08:00
Harvey 3210833e73 update 2021-11-24 16:50:48 +08:00
Harvey b2d27cd428 update 2021-11-24 16:25:34 +08:00
Harvey 3b79c1751c Update docusaurus.config.js 2021-11-24 16:11:20 +08:00
Harvey f25f97b3ac update 2021-11-24 16:08:08 +08:00
Harvey 133a29ce6e add docusaurus 2021-11-24 14:45:55 +08:00
Harvey 3e593c4b09 删除多余文件 2021-11-24 14:27:29 +08:00
Harvey 74bc297e8f 移除多余文件 2021-11-24 14:07:39 +08:00
Harvey c5c4cf73eb 规范化play方法 2021-11-24 12:24:01 +08:00
Harvey 11e871ddc8 update deps 2021-11-24 11:41:08 +08:00
zhw2590582 fac37d2d9d Update index.js 2021-11-18 21:17:01 +08:00
zhw2590582 a7c7f5538f Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2021-11-18 21:16:44 +08:00
zhw2590582 c1564456ea Update index.js 2021-11-18 21:16:40 +08:00
Harvey 6abd7f3ae2 Update eventInit.js 2021-11-02 13:33:44 +08:00
Harvey af1a116a31 build all packages 2021-11-01 09:37:36 +08:00
Harvey 8a3f59bc01 bugfix 2021-11-01 09:27:21 +08:00
Harvey ec97a5912e add posterMix 2021-11-01 09:21:14 +08:00
Harvey d5b4851a8f add useSSR 2021-10-29 17:33:06 +08:00
zhw2590582 7eeba80319 Update viewInit.js 2021-10-08 20:15:39 +08:00
zhw2590582 115467ecc5 update isInViewport 2021-09-25 19:37:32 +08:00
zhw2590582 2ea92640aa isInViewport添加offset 2021-09-25 19:33:21 +08:00
zhw2590582 d73666475c build all packages 2021-09-25 19:03:06 +08:00
Harvey 8f68191efc Fixed: The provided double value is non-finite 2021-09-13 11:41:29 +08:00
Harvey fddbfdd563 Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2021-08-24 12:01:23 +08:00
Harvey dec929c93f add vue3 demo 2021-08-24 12:01:20 +08:00
Harvey Zack bdd0b72bcc Update index.js 2021-08-17 09:29:01 +08:00
Harvey 92bb1f539e log 默认 bottom 为 10px 2021-08-03 14:25:33 +08:00
Harvey e6242df6d3 添加log插件demo 2021-08-03 14:23:08 +08:00
zhw2590582 888c929549 add log plugin 2021-07-25 00:07:51 +08:00
Harvey Zack 8ad2520738 Merge pull request #117 from zhw2590582/dependabot/add-v2-config-file
Upgrade to GitHub-native Dependabot
2021-06-28 09:42:40 +08:00
Harvey Zack a3d6ceea8e Merge pull request #141 from zhw2590582/dependabot/npm_and_yarn/node-sass-6.0.1
Bump node-sass from 5.0.0 to 6.0.1
2021-06-25 08:23:47 +08:00
dependabot-preview[bot] f95311c616 Bump node-sass from 5.0.0 to 6.0.1
Bumps [node-sass](https://github.com/sass/node-sass) from 5.0.0 to 6.0.1.
- [Release notes](https://github.com/sass/node-sass/releases)
- [Changelog](https://github.com/sass/node-sass/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sass/node-sass/compare/v5.0.0...v6.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-06-24 19:21:38 +00:00
Harvey 4a7dcf14b6 fix 2021-06-08 18:48:12 +08:00
Harvey 8dc77fb1c0 Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2021-06-08 18:46:20 +08:00
Harvey 66c2afca16 add begin and end option 2021-06-08 18:46:17 +08:00
Harvey Zack 8641d15e33 Merge pull request #136 from zhw2590582/dependabot/npm_and_yarn/mocha-9.0.0
Bump mocha from 8.4.0 to 9.0.0
2021-06-08 06:31:16 +08:00
dependabot-preview[bot] dd32ab0f90 Bump mocha from 8.4.0 to 9.0.0
Bumps [mocha](https://github.com/mochajs/mocha) from 8.4.0 to 9.0.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v8.4.0...v9.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-06-07 19:23:01 +00:00
Harvey 80f6d85d46 Update eventInit.js 2021-05-24 13:39:40 +08:00
zhw2590582 8ff013b8aa Update package.json 2021-05-22 22:01:42 +08:00
Harvey 5d9de9eea9 build all packages 2021-05-20 09:38:35 +08:00
Harvey 15d5a31323 3.5.30 2021-05-20 09:37:46 +08:00
Harvey be3d97bf75 优化自动隐藏controls 2021-05-20 09:37:14 +08:00
Harvey ce56c680da Update info.scss 2021-05-13 11:50:24 +08:00
Harvey 8a4b617b23 fix git bug 2021-05-13 08:00:44 +08:00
Harvey 20a5fff0f6 build all packages 2021-05-11 10:36:56 +08:00
Harvey 817d9134c6 build all packages 2021-05-11 10:35:15 +08:00
Harvey 8604162fe2 Update info.scss 2021-05-10 10:12:50 +08:00
Harvey 6263c943bd update demo 2021-05-07 11:34:34 +08:00
Harvey 8550cabe48 build all packages 2021-05-06 13:10:23 +08:00
Harvey 68dcd47ac7 3.5.28 2021-05-06 13:09:33 +08:00
Harvey fe37fcf1b9 Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2021-05-06 13:03:47 +08:00
Harvey 324672a243 Update storage.js 2021-05-06 13:03:44 +08:00
zhw2590582 6ab3df6181 Update fullscreenMix.js 2021-05-05 10:37:09 +08:00
dependabot-preview[bot] 3ab3efa4cf Upgrade to GitHub-native Dependabot 2021-04-29 15:04:23 +00:00
Harvey Zack 2d7a58d022 Delete artplayer-plugin-ass.js 2021-04-21 08:29:51 +08:00
Harvey 97dbdf16a5 Update README-CN.md 2021-04-14 15:23:01 +08:00
Harvey 785ad52e60 remove artplayer-plugin-ass 2021-04-14 15:22:16 +08:00
Harvey 5cdf65d32f Update durationMix.js 2021-04-12 15:28:41 +08:00
Harvey Zack 463ce7bf39 Merge pull request #108 from zhw2590582/dependabot/npm_and_yarn/lerna-4.0.0
Bump lerna from 3.22.1 to 4.0.0
2021-03-16 20:28:12 +08:00
Harvey Zack 6d4844097a Merge pull request #104 from zhw2590582/dependabot/npm_and_yarn/rollup-plugin-postcss-4.0.0
Bump rollup-plugin-postcss from 3.1.8 to 4.0.0
2021-03-07 12:25:22 +08:00
dependabot-preview[bot] 25b5f9b851 Bump lerna from 3.22.1 to 4.0.0
Bumps [lerna](https://github.com/lerna/lerna/tree/HEAD/core/lerna) from 3.22.1 to 4.0.0.
- [Release notes](https://github.com/lerna/lerna/releases)
- [Changelog](https://github.com/lerna/lerna/blob/main/core/lerna/CHANGELOG.md)
- [Commits](https://github.com/lerna/lerna/commits/v4.0.0/core/lerna)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-03-02 19:14:10 +00:00
Harvey Zack 9098490775 Merge pull request #106 from zhw2590582/dependabot/npm_and_yarn/inquirer-8.0.0
Bump inquirer from 7.3.3 to 8.0.0
2021-02-27 11:45:45 +08:00
dependabot-preview[bot] 79d7a40c28 Bump inquirer from 7.3.3 to 8.0.0
Bumps [inquirer](https://github.com/SBoudrias/Inquirer.js) from 7.3.3 to 8.0.0.
- [Release notes](https://github.com/SBoudrias/Inquirer.js/releases)
- [Commits](https://github.com/SBoudrias/Inquirer.js/compare/inquirer@7.3.3...inquirer@8.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-26 19:17:27 +00:00
Harvey Zack aab5bdb85f Merge pull request #105 from zhw2590582/dependabot/npm_and_yarn/eslint-config-prettier-8.1.0
Bump eslint-config-prettier from 7.2.0 to 8.1.0
2021-02-25 10:17:17 +08:00
dependabot-preview[bot] b833d799b4 Bump eslint-config-prettier from 7.2.0 to 8.1.0
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 7.2.0 to 8.1.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v7.2.0...v8.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-24 19:20:27 +00:00
dependabot-preview[bot] 78519cabac Bump rollup-plugin-postcss from 3.1.8 to 4.0.0
Bumps [rollup-plugin-postcss](https://github.com/egoist/rollup-plugin-postcss) from 3.1.8 to 4.0.0.
- [Release notes](https://github.com/egoist/rollup-plugin-postcss/releases)
- [Changelog](https://github.com/egoist/rollup-plugin-postcss/blob/master/CHANGELOG-OLD.md)
- [Commits](https://github.com/egoist/rollup-plugin-postcss/compare/v3.1.8...v4.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2021-02-22 19:22:21 +00:00
Harvey 0508c5b240 Update README.md 2021-01-07 10:16:58 +08:00
zhw2590582 42a860303a build all packages 2020-12-26 21:05:51 +08:00
Harvey 6a6b7b4448 Update package.json 2020-12-18 15:04:56 +08:00
Harvey f00904f515 Update package.json 2020-12-18 15:04:21 +08:00
Harvey ee0191094f Update package.json 2020-12-18 15:03:15 +08:00
Harvey 7e75c105de Update package.json 2020-12-18 15:01:50 +08:00
Harvey cfb207e200 Update package.json 2020-12-18 15:00:18 +08:00
Harvey bc60b3ba1c Update package.json 2020-12-18 14:59:45 +08:00
Harvey f8f86ea968 Update package.json 2020-12-18 14:51:04 +08:00
Harvey 36d6bf9422 build all packages 2020-12-17 15:34:19 +08:00
Harvey 8164cb0d44 new version 2020-12-17 15:33:31 +08:00
Harvey 27b05da718 Update package.json 2020-12-17 15:28:19 +08:00
Harvey f30a13fb2d Update .eslintrc 2020-12-15 16:40:20 +08:00
Harvey b71451d3c1 Update events.md 2020-12-15 16:31:53 +08:00
Harvey b513946571 Update eventInit.js 2020-12-15 15:44:59 +08:00
Harvey b0fb0737cc Update index.js 2020-12-15 09:04:40 +08:00
Harvey b0ac1eaaaa Update bilibili.js 2020-12-15 08:46:34 +08:00
Harvey Zack 0184683682 Merge pull request #91 from zhw2590582/dependabot/npm_and_yarn/eslint-config-prettier-7.0.0
Bump eslint-config-prettier from 6.15.0 to 7.0.0
2020-12-14 12:59:06 +08:00
dependabot-preview[bot] dbe5de44aa Bump eslint-config-prettier from 6.15.0 to 7.0.0
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.15.0 to 7.0.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v6.15.0...v7.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-07 19:15:05 +00:00
Harvey c9218ca80a Update fullscreenMix.js 2020-12-07 08:22:49 +08:00
Harvey 0160152a14 update 2020-12-01 12:02:01 +08:00
Harvey 5ea211ef73 build all packages 2020-12-01 12:00:49 +08:00
Harvey b963d8eebd update 2020-12-01 11:57:40 +08:00
Harvey 386c9ff1eb add webkitSupportsFullscreen 2020-12-01 10:47:52 +08:00
Harvey 0195089791 update logs 2020-12-01 10:43:03 +08:00
Harvey df9579c064 update logs 2020-12-01 10:34:13 +08:00
Harvey ed6e6cd635 Update mobile.html 2020-12-01 10:28:00 +08:00
Harvey a03dc30322 update logs 2020-12-01 10:27:33 +08:00
Harvey de3692b690 Update mobile.html 2020-12-01 10:15:30 +08:00
Harvey a6360c9c70 update logs 2020-12-01 10:15:21 +08:00
Harvey 729f7feedc update logs 2020-12-01 10:08:47 +08:00
Harvey 356f57500c Update mobile.html 2020-12-01 10:04:46 +08:00
Harvey 95fcaf8e6d add log 2020-12-01 09:55:59 +08:00
Harvey 72d80654a3 add webkitSupportsFullscreen 2020-12-01 09:43:16 +08:00
Harvey b931e27804 Update package.json 2020-11-26 09:21:55 +08:00
Harvey c4444fcf56 remove dependencies Status 2020-11-26 09:10:21 +08:00
Harvey 161d6e3e8b Update index.js 2020-11-26 09:07:55 +08:00
Harvey Zack 34e2545d5f Merge pull request #90 from zhw2590582/dev-ass
Dev ass
2020-11-24 16:01:51 +08:00
Harvey 944d6541b9 update readme 2020-11-24 16:00:39 +08:00
Harvey fa2b2dad1a update readme 2020-11-24 15:58:59 +08:00
Harvey d911e206f4 add artplayer-plugin-ass 2020-11-24 15:48:49 +08:00
Harvey f414b9d9a4 build all packages 2020-11-24 14:11:04 +08:00
Harvey 37a5ca4d2f v3.5.24 2020-11-24 14:10:31 +08:00
Harvey 77c766416e 修复旋转计算错误 2020-11-24 14:10:06 +08:00
Harvey 8754fea23d bugfix 2020-11-24 08:05:18 +08:00
Harvey ed03008bc9 build all packages 2020-11-24 08:03:03 +08:00
Harvey b9928cf9f8 v3.5.23 2020-11-24 08:02:26 +08:00
Harvey b2f4bb4806 Update danmuku.js 2020-11-24 08:02:04 +08:00
zhw2590582 39819c5b46 build all packages 2020-11-23 20:28:39 +08:00
zhw2590582 a9a72a49a0 v3.5.22 2020-11-23 20:28:12 +08:00
zhw2590582 b8c7e7b48b Update danmuku.js 2020-11-23 20:28:04 +08:00
zhw2590582 360c3179ae build all packages 2020-11-22 21:21:47 +08:00
zhw2590582 761a084dec v3.5.21 2020-11-22 21:21:21 +08:00
zhw2590582 b2c93d6f4e Update urlMix.js 2020-11-22 21:20:59 +08:00
zhw2590582 7dbe1ae929 build all packages 2020-11-21 08:42:59 +08:00
zhw2590582 046d4805e9 v3.5.20 2020-11-21 08:42:32 +08:00
zhw2590582 7c8d42e704 支持动态弹幕库 2020-11-21 08:42:15 +08:00
Harvey Zack 8379a927ec Merge pull request #86 from zhw2590582/dependabot/npm_and_yarn/node-sass-5.0.0
Bump node-sass from 4.14.1 to 5.0.0
2020-11-14 07:36:40 +08:00
zhw2590582 803cd862f5 build all packages 2020-11-09 21:32:00 +08:00
zhw2590582 200f93a03c v3.5.19 2020-11-09 21:31:33 +08:00
zhw2590582 fbf0986ea9 Update currentTimeMix.js 2020-11-09 21:31:04 +08:00
Harvey de9bc7e65d Update subtitle.scss 2020-11-09 14:31:23 +08:00
Harvey b313341faa Update durationMix.js 2020-11-09 14:19:08 +08:00
zhw2590582 4c9b3b966c build all packages 2020-11-07 22:19:00 +08:00
zhw2590582 b6d07043ba v3.5.18 2020-11-07 22:18:33 +08:00
zhw2590582 0059469060 移除尺寸报错 2020-11-07 22:18:08 +08:00
dependabot-preview[bot] bc88c01af5 Bump node-sass from 4.14.1 to 5.0.0
Bumps [node-sass](https://github.com/sass/node-sass) from 4.14.1 to 5.0.0.
- [Release notes](https://github.com/sass/node-sass/releases)
- [Changelog](https://github.com/sass/node-sass/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sass/node-sass/compare/v4.14.1...v5.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-02 19:16:36 +00:00
zhw2590582 debec4e4ab build all packages 2020-10-18 14:50:09 +08:00
zhw2590582 52b21c6a55 v3.5.17 2020-10-18 14:49:42 +08:00
zhw2590582 3413cf82a5 build all packages 2020-10-18 14:48:34 +08:00
zhw2590582 fbd08e6111 v3.5.16 2020-10-18 14:48:07 +08:00
zhw2590582 ca0a30ca85 add bilingual getter/setter 2020-10-18 14:46:25 +08:00
zhw2590582 699ffece96 build all packages 2020-10-18 14:27:11 +08:00
zhw2590582 d4600fbd95 Update package.json 2020-10-02 23:56:35 +08:00
zhw2590582 0a629df4b8 Update package.json 2020-09-29 20:35:30 +08:00
Harvey Zack 28d29f7f53 Merge pull request #85 from zhw2590582/dependabot/npm_and_yarn/del-6.0.0
Bump del from 5.1.0 to 6.0.0
2020-09-26 13:11:45 +08:00
dependabot-preview[bot] ce667e5f32 Bump del from 5.1.0 to 6.0.0
Bumps [del](https://github.com/sindresorhus/del) from 5.1.0 to 6.0.0.
- [Release notes](https://github.com/sindresorhus/del/releases)
- [Commits](https://github.com/sindresorhus/del/compare/v5.1.0...v6.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-26 04:59:19 +00:00
Harvey 09a28ca2c4 Update template.js 2020-09-24 11:15:08 +08:00
Harvey 6b9e0b3c42 build all packages 2020-09-23 15:01:06 +08:00
Harvey b2b38e5568 v3.5.15 2020-09-23 15:00:29 +08:00
Harvey 956c77c376 Update hotkey.js 2020-09-21 09:35:52 +08:00
Harvey 150052f50b build 2020-09-21 09:31:16 +08:00
Harvey f6d47fe6fe Update bottom.scss 2020-09-21 09:24:14 +08:00
zhw2590582 817b861f2e Update artplayer.scss 2020-09-20 08:38:35 +08:00
Harvey d762033f1d fix scheme 2020-09-18 14:18:20 +08:00
Harvey 3a545ae5e6 优化icon 2020-09-18 14:10:57 +08:00
Harvey 3861770105 修复打包错误 2020-09-18 11:01:43 +08:00
Harvey e4e79b63b4 完成rotate 2020-09-18 10:41:40 +08:00
Harvey e7380e84b8 Update package.json 2020-09-17 17:59:13 +08:00
Harvey e9c9fbc2c8 bugfix 2020-09-15 17:55:48 +08:00
Harvey d3d4114336 bugifx 2020-09-15 17:53:21 +08:00
Harvey 5554849a9f bugfix 2020-09-15 17:47:25 +08:00
Harvey 7a14f73206 bugfix 2020-09-15 17:42:10 +08:00
Harvey e38873f71a bugfix 2020-09-15 17:41:07 +08:00
Harvey f69ca07bd7 Update index.js 2020-09-15 17:27:24 +08:00
Harvey 86980b2a73 normal -> normalSize 2020-09-15 17:25:06 +08:00
Harvey 7e4420d841 优化画面调整 2020-09-15 16:52:01 +08:00
Harvey 5cbb8bd1f3 优化互斥关系 2020-09-15 16:14:27 +08:00
Harvey abf60cfef6 add rotateMix 2020-09-15 14:21:49 +08:00
Harvey 605771bea8 Update package.json 2020-09-11 15:53:48 +08:00
zhw2590582 1c1578149b Update package.json 2020-09-06 18:20:32 +08:00
zhw2590582 53324bc433 build all packages 2020-09-04 22:40:44 +08:00
zhw2590582 d7b9fb54dd v3.5.14 2020-09-04 22:40:16 +08:00
Harvey fb5f78d412 update option-validator 2020-09-04 13:22:39 +08:00
Harvey b5e501ef1c 更新option-validator 2020-09-04 13:10:48 +08:00
Harvey deaa4fa13d 优化字幕传参 2020-09-04 12:44:50 +08:00
Harvey 92686dfcb6 修改字幕乱码 2020-09-04 12:02:54 +08:00
Harvey ed009f9d4d 支持字幕动态样式 2020-09-04 09:22:22 +08:00
Harvey 9ed4febf4c build all packages 2020-09-04 09:05:09 +08:00
Harvey d926098a34 v3.5.13 2020-09-04 09:04:38 +08:00
Harvey 7edd221801 bugfix 2020-09-04 09:04:20 +08:00
Harvey 0c841eca50 build all packages 2020-09-04 08:57:13 +08:00
Harvey 4f43c20b6f v3.5.12 2020-09-04 08:56:41 +08:00
Harvey 11cf4f4455 bugfix 2020-09-04 08:56:09 +08:00
Harvey cf119d4dc5 Update subtitle.scss 2020-09-03 11:59:09 +08:00
zhw2590582 5468acb99b Update subtitle.scss 2020-09-02 23:08:52 +08:00
zhw2590582 47fc4e0b9a bugfix 2020-09-02 22:21:14 +08:00
zhw2590582 35cb0398cf build all packages 2020-09-02 22:06:01 +08:00
zhw2590582 e2008ec328 v3.5.11 2020-09-02 22:04:02 +08:00
zhw2590582 9115e52b52 bugfix 2020-09-02 22:03:22 +08:00
zhw2590582 738b63960b Update seekMix.js 2020-09-02 21:22:35 +08:00
zhw2590582 75baee6e69 Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2020-08-30 18:34:35 +08:00
zhw2590582 607133276a Update package.json 2020-08-30 18:34:05 +08:00
Harvey a50c519896 build all packages 2020-08-27 16:29:05 +08:00
Harvey 79ffbbd52e v3.5.10 2020-08-27 16:28:30 +08:00
Harvey 1480a19295 简化quality 2020-08-26 11:03:48 +08:00
Harvey aee225bc7f 完成selector 2020-08-26 10:43:06 +08:00
Harvey 53d2f12ab6 调整选择器参数 2020-08-25 14:51:12 +08:00
Harvey c621687988 完成selector 2020-08-25 14:24:34 +08:00
Harvey 4d77887c03 调整switcher结构 2020-08-25 12:03:45 +08:00
Harvey 20afbab916 修改switcher逻辑 2020-08-25 10:38:29 +08:00
Harvey dd1ae0f499 分离includeFromEvent函数 2020-08-24 09:28:59 +08:00
Harvey d475f26dfb Update package.json 2020-08-19 17:12:11 +08:00
zhw2590582 bd27086139 Update package.json 2020-08-16 19:05:51 +08:00
zhw2590582 734e7b5922 Update package.json 2020-08-12 21:54:56 +08:00
Harvey 24fb3b402d Update package.json 2020-08-10 14:06:56 +08:00
zhw2590582 0e382835e2 Update package.json 2020-08-09 22:43:23 +08:00
Harvey e21cd74b6b Update package.json 2020-08-03 15:56:24 +08:00
zhw2590582 15874596a5 Update package.json 2020-08-01 23:54:22 +08:00
Harvey 26b71c20f3 Update package.json 2020-07-24 15:18:18 +08:00
Harvey 28c98b0819 Update package.json 2020-07-22 17:45:56 +08:00
Harvey 17de4ff25e Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2020-07-20 09:57:04 +08:00
Harvey fa3d3c6758 fix composedPath 2020-07-20 09:56:52 +08:00
zhw2590582 ac9cea4113 Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2020-07-18 07:15:45 +08:00
zhw2590582 4f4d6a5b10 Update options.md 2020-07-18 07:15:41 +08:00
Harvey dd069324f9 build all packages 2020-07-17 09:20:33 +08:00
Harvey bc1217e9b8 Update package.json 2020-07-14 10:28:53 +08:00
zhw2590582 f76f2184c0 Update package.json 2020-07-11 20:50:47 +08:00
Harvey 3b8421c618 Update package.json 2020-07-08 10:00:49 +08:00
Harvey b3d1e40502 style fix 2020-07-06 08:47:55 +08:00
zhw2590582 9465059548 Update package.json 2020-07-05 23:08:53 +08:00
Harvey 785be34958 Update package.json 2020-07-03 16:10:54 +08:00
Harvey 397a73d667 Update package.json 2020-07-01 16:31:23 +08:00
Harvey 9a6e3e0fb6 build all packages 2020-06-30 13:43:45 +08:00
Harvey 592302975f Update package.json 2020-06-24 12:08:20 +08:00
Harvey 6ea2924c22 fix links 2020-06-22 16:01:34 +08:00
zhw2590582 6aa7bf6036 Update package.json 2020-06-20 22:03:56 +08:00
Harvey Zack 2f22cefc6a Merge pull request #71 from zhw2590582/dependabot/npm_and_yarn/mocha-8.0.0
Bump mocha from 7.2.0 to 8.0.0
2020-06-11 08:13:09 +08:00
dependabot-preview[bot] 76053813a8 Bump mocha from 7.2.0 to 8.0.0
Bumps [mocha](https://github.com/mochajs/mocha) from 7.2.0 to 8.0.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v7.2.0...v8.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-10 19:14:43 +00:00
Harvey 8beae2dd52 Update package.json 2020-06-08 18:19:47 +08:00
Harvey cc27b41075 Update package.json 2020-06-03 09:57:22 +08:00
Harvey 8daf69e7bf Update package.json 2020-06-02 09:18:08 +08:00
Harvey 74d637fc65 add switcher 2020-06-01 11:15:43 +08:00
zhw2590582 65fd3fb9e6 build all packages 2020-05-29 22:05:08 +08:00
zhw2590582 5960489202 v3.5.9 2020-05-29 22:04:43 +08:00
zhw2590582 f53f4e8ef0 返回自定义类型 2020-05-29 22:04:01 +08:00
Harvey 2e84a2a1cf typofix 2020-05-25 09:54:53 +08:00
Harvey 9a86ce4f73 min -> mini 2020-05-25 09:40:20 +08:00
Harvey 1ba121c54f Update package.json 2020-05-25 08:30:49 +08:00
zhw2590582 3b6e13bd42 Update package.json 2020-05-24 15:47:04 +08:00
Harvey 54ba4cffd2 Update events.md 2020-05-22 13:34:11 +08:00
Harvey 0c6de26971 build 2020-05-22 13:33:25 +08:00
Harvey 4718cd186b 简化事件 2020-05-22 13:23:28 +08:00
Harvey 938b90f3a7 build all packages 2020-05-21 10:21:36 +08:00
Harvey dab56f054a v3.5.8 2020-05-21 10:20:57 +08:00
Harvey 6bfd92e110 Update lerna.json 2020-05-21 10:20:47 +08:00
Harvey 9766cf155d v3.5.6 2020-05-21 10:18:36 +08:00
Harvey cd89e8afd8 重写测试用例 2020-05-21 10:13:03 +08:00
Harvey 50f51e413b fix subtitleOffset bug 2020-05-21 08:49:40 +08:00
Harvey 22fa8d5379 build all packages 2020-05-20 17:15:43 +08:00
Harvey ee85be8b6d v3.5.5 2020-05-20 17:15:06 +08:00
Harvey 76aa564e8a Update mobile.js 2020-05-20 16:59:01 +08:00
Harvey 9e7fceef04 add pay.png 2020-05-20 16:34:00 +08:00
Harvey 02d4c801ca fix test 2020-05-20 14:04:53 +08:00
Harvey 4800c6f76c Update properties.md 2020-05-20 13:51:57 +08:00
Harvey 7a977ac6c4 Update class.md 2020-05-20 12:18:49 +08:00
Harvey da1b3112d6 build all packages 2020-05-20 12:04:00 +08:00
Harvey d57fe7b069 Update events.md 2020-05-20 11:24:22 +08:00
Harvey 02915fcee5 重命名事件 2020-05-20 11:13:02 +08:00
Harvey a0e13479d3 Update class.md 2020-05-20 11:04:56 +08:00
Harvey 2d16171720 优化测试用例 2020-05-20 10:46:31 +08:00
Harvey a4535bcc6c Update index.js 2020-05-20 10:32:13 +08:00
Harvey 6cb6036b73 Update index.html 2020-05-20 10:30:46 +08:00
Harvey caa0128d37 优化docs 2020-05-20 10:30:21 +08:00
Harvey bafbd78018 优化ts 2020-05-19 15:00:53 +08:00
Harvey 9760d6268f 优化类型检测 2020-05-19 14:23:29 +08:00
Harvey 3e609bb153 fix ts 2020-05-19 13:35:54 +08:00
Harvey 175e001533 修复scss路径bug 2020-05-19 12:13:52 +08:00
Harvey e2aada7197 优化scss导入 2020-05-19 12:10:06 +08:00
Harvey b202c21a7f add autoMin 2020-05-19 11:47:45 +08:00
Harvey Zack 33a7e1193d Merge pull request #70 from zhw2590582/dependabot/npm_and_yarn/servor-4.0.2
Bump servor from 3.3.1 to 4.0.2
2020-05-19 08:35:49 +08:00
dependabot-preview[bot] b293b02672 Bump servor from 3.3.1 to 4.0.2
Bumps [servor](https://github.com/lukejacksonn/servor) from 3.3.1 to 4.0.2.
- [Release notes](https://github.com/lukejacksonn/servor/releases)
- [Commits](https://github.com/lukejacksonn/servor/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-18 23:26:01 +00:00
Harvey de5ac7513e 改进区间循环UI 2020-05-18 16:25:24 +08:00
Harvey fcbf9cc3cc typofix 2020-05-18 12:10:08 +08:00
Harvey adc092389a remove docup 2020-05-18 11:55:13 +08:00
Harvey d8a238dc06 使用Docup 2020-05-18 11:12:00 +08:00
Harvey 21d99a62f3 添加区间循环UI 2020-05-18 10:53:15 +08:00
zhw2590582 dba9c6dd78 完善区间循环文档 2020-05-17 01:06:40 +08:00
zhw2590582 7d6186ddd6 添加区间循环 2020-05-17 00:39:44 +08:00
zhw2590582 35ac59dc45 修复弹幕自适应 2020-05-16 10:46:33 +08:00
Harvey b70c11ede6 add autoSizeChange 2020-05-15 19:13:59 +08:00
Harvey 2650acc953 add normal mode 2020-05-15 19:11:03 +08:00
Harvey 72937ab1ed 优化退出状态 2020-05-15 18:56:58 +08:00
Harvey 129af7b42d add minToggle 2020-05-15 18:41:54 +08:00
Harvey 05227caf18 添加迷你播放模式 2020-05-15 18:35:41 +08:00
Harvey ed80218e44 remove customPip 2020-05-15 17:50:58 +08:00
Harvey 634e776d49 优化事件互斥关系 2020-05-15 17:30:50 +08:00
Harvey cf22fb0535 添加自动旋转全屏 2020-05-15 17:10:05 +08:00
Harvey b08e6a110a Update mobile.js 2020-05-15 14:17:03 +08:00
Harvey 0c744f5e56 Update mobile.js 2020-05-15 14:11:05 +08:00
Harvey 20adfbbcce Update README.md 2020-05-15 14:02:57 +08:00
Harvey e96c57c4c1 弹幕暴露isHide属性 2020-05-15 13:57:39 +08:00
Harvey 18e8629641 Update README-CN.md 2020-05-15 13:21:16 +08:00
Harvey d5e1c0809a add mobile qrcode 2020-05-15 13:16:57 +08:00
Harvey 119386aa04 Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2020-05-15 13:06:17 +08:00
Harvey bb50f5ab39 添加移动端用户手势 2020-05-15 13:06:10 +08:00
Harvey Zack 6b252ecedf Update nodejs.yml 2020-05-15 12:03:59 +08:00
Harvey 4cbefa172d 优化ready事件 2020-05-15 12:01:43 +08:00
Harvey 7b3913e318 优化移动端UI 2020-05-15 11:39:10 +08:00
Harvey beea013daf 优化手机端UI 2020-05-15 10:28:38 +08:00
Harvey 19a894fcb6 fix playsInline typo 2020-05-15 08:18:03 +08:00
zhw2590582 80818a965c Update package.json 2020-05-10 12:16:18 +08:00
Harvey 353727f318 优化destroy 2020-05-06 10:20:20 +08:00
zhw2590582 6e691b89e6 Update package.json 2020-05-04 07:53:11 +08:00
Harvey 555404b7d0 Update README.md 2020-04-28 13:00:31 +08:00
Harvey 824bd20e94 build all packages 2020-04-27 11:45:25 +08:00
Harvey cb49015697 v3.5.4 2020-04-27 11:44:54 +08:00
Harvey 2501c013af Revert "添加弹幕验证"
This reverts commit 113ccc5415.
2020-04-27 11:44:10 +08:00
Harvey 076692532f build all packages 2020-04-27 11:43:24 +08:00
Harvey 778816e3f3 v3.5.3 2020-04-27 11:42:54 +08:00
Harvey 113ccc5415 添加弹幕验证 2020-04-26 10:07:09 +08:00
Harvey ae7d87e08b 添加弹幕验证 2020-04-26 09:36:12 +08:00
Harvey 7f3b116851 Update danmuku.js 2020-04-26 08:59:30 +08:00
Harvey b5d5487dcf 弹幕隐藏时不运算动画 2020-04-26 08:43:09 +08:00
Harvey cef14a1523 Update package.json 2020-04-24 08:44:00 +08:00
zhw2590582 43215d6950 Update package.json 2020-04-19 09:28:16 +08:00
zhw2590582 334f2e0674 Update package.json 2020-04-18 19:05:44 +08:00
Harvey f56054a9b4 Update package.json 2020-04-16 16:39:40 +08:00
Harvey ac4e5a9c94 Revert "优化focus事件"
This reverts commit df424ec3ac.
2020-04-16 14:57:33 +08:00
Harvey df424ec3ac 优化focus事件 2020-04-16 12:18:26 +08:00
Harvey 51bde726ae 优化blur事件 2020-04-16 11:38:19 +08:00
Harvey 4285201fa9 字幕添加word-break: break-all 2020-04-14 13:06:17 +08:00
Harvey 687df9fd5e build all packages 2020-04-14 12:59:38 +08:00
Harvey bc30f87f54 v3.5.2 2020-04-14 12:59:07 +08:00
Harvey be060e48c4 add isSafari util 2020-04-10 18:31:27 +08:00
Harvey 5f5461eeb4 build 2020-04-10 18:16:53 +08:00
Harvey b322b804fe preload => auto 2020-04-10 18:16:22 +08:00
Harvey Zack 8a812afb3b Merge pull request #63 from zhw2590582/dependabot/npm_and_yarn/chalk-4.0.0
Bump chalk from 3.0.0 to 4.0.0
2020-04-03 08:16:52 +08:00
dependabot-preview[bot] e8beff8f97 Bump chalk from 3.0.0 to 4.0.0
Bumps [chalk](https://github.com/chalk/chalk) from 3.0.0 to 4.0.0.
- [Release notes](https://github.com/chalk/chalk/releases)
- [Commits](https://github.com/chalk/chalk/compare/v3.0.0...v4.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-02 19:18:31 +00:00
Harvey c6c8b8e22f Update mobile.js 2020-03-31 08:24:24 +08:00
Harvey de8cbdd375 remove bilibiliDanmuParseFromAv 2020-03-30 11:11:26 +08:00
Harvey Zack b512ce1b23 Merge pull request #61 from Hitsuki9/master
pauseMix 函数名拼写错误
2020-03-30 11:05:26 +08:00
Hitsuki9 eaa1e4d599 Update pauseMix.js 2020-03-30 10:47:48 +08:00
zhw2590582 12f90007b3 Update index.html 2020-03-30 10:27:46 +08:00
zhw2590582 92a38d6146 修复弹幕隐藏失败的bug 2020-03-30 10:27:46 +08:00
zhw2590582 986bde33c7 Update index.html 2020-03-29 11:07:12 +08:00
zhw2590582 850b133af0 修复弹幕隐藏失败的bug 2020-03-28 19:53:13 +08:00
zhw2590582 70002b7fb5 build all packages 2020-03-22 07:37:10 +08:00
zhw2590582 88979de569 v3.5.1 2020-03-22 07:36:45 +08:00
zhw2590582 2eb6616bdd Update lerna.json 2020-03-22 07:34:33 +08:00
zhw2590582 43f68a3b68 add escape 2020-03-22 07:28:36 +08:00
zhw2590582 e2193c7aa9 Update package.json 2020-03-20 20:55:01 +08:00
zhw2590582 8fe0630ab3 add close back 2020-03-19 22:22:50 +08:00
zhw2590582 03e3fa496f Update package.json 2020-03-16 20:14:35 +08:00
zhw2590582 6a9863ad99 压缩 2020-03-15 08:32:31 +08:00
zhw2590582 bb92f3dc3d Update currentTimeMix.js 2020-03-15 07:43:15 +08:00
zhw2590582 3b0f500438 Update index.js 2020-03-14 22:20:23 +08:00
zhw2590582 08509c8123 remove autoPip 2020-03-14 22:18:09 +08:00
Harvey f07207e78a add Patreon 2020-03-11 17:50:46 +08:00
Harvey 9f01b17137 添加cdn例子 2020-03-10 09:22:28 +08:00
zhw2590582 30e5a776e6 Update index.html 2020-03-09 20:18:04 +08:00
Harvey d212bf90ef Update package.json 2020-03-09 16:11:43 +08:00
Harvey Zack 563a874c96 Update README.md 2020-03-07 18:08:19 +08:00
Harvey c441001e14 Update package.json 2020-03-04 12:29:23 +08:00
zhw2590582 2d4da12180 优化背光刷新频率 2020-02-29 23:03:44 +08:00
zhw2590582 c7a351bc55 fix event.composedPath 2020-02-29 22:18:11 +08:00
zhw2590582 25b041ad8c Update README.md 2020-02-29 09:50:25 +08:00
zhw2590582 3379e6091c 添加灯光模式 2020-02-29 09:37:06 +08:00
Harvey 4867d8e25a Update README.md 2020-02-28 10:04:04 +08:00
Harvey 3128e233da build all packages 2020-02-28 09:17:29 +08:00
Harvey 704fe7732c v3.4.2 2020-02-28 09:17:00 +08:00
Harvey 5a2f1d2787 修复音量拖动不准确问题 2020-02-28 09:16:35 +08:00
Harvey cefbade4a0 build all packages 2020-02-27 17:05:07 +08:00
Harvey b22288492f v3.4.1 2020-02-27 17:04:35 +08:00
Harvey dced5f8b34 fix docs 2020-02-27 16:59:38 +08:00
Harvey 8d95baabc3 Update index.html 2020-02-27 16:55:19 +08:00
Harvey 7560631b8c build all packages 2020-02-27 16:53:50 +08:00
Harvey a060398286 build all packages 2020-02-27 16:42:30 +08:00
Harvey ee1ab0e034 Update package.json 2020-02-27 08:27:41 +08:00
Harvey 13cc7ec64a build all packages 2020-02-24 11:20:30 +08:00
Harvey 5efa26463e v3.3.3 2020-02-24 11:20:00 +08:00
Harvey a969686d88 修改弹幕模式变量 2020-02-24 11:19:17 +08:00
zhw2590582 31f8f9fe09 Update package.json 2020-02-23 09:03:46 +08:00
zhw2590582 96333e00d8 Update package.json 2020-02-03 10:32:26 +08:00
zhw2590582 59413e121c Update package.json 2020-01-31 13:47:55 +08:00
zhw2590582 13282aaf5a Update package.json 2020-01-27 11:30:33 +08:00
Harvey 86e36f176a Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2020-01-22 13:12:24 +08:00
Harvey 60fe51272a Update package.json 2020-01-22 13:12:02 +08:00
Harvey Zack 6ab89f7358 Merge pull request #51 from zhw2590582/dependabot/npm_and_yarn/servor-3.0.8
Bump servor from 2.2.1 to 3.0.8
2020-01-14 08:33:37 +08:00
dependabot-preview[bot] b2db59d24a Bump servor from 2.2.1 to 3.0.8
Bumps [servor](https://github.com/lukejacksonn/servor) from 2.2.1 to 3.0.8.
- [Release notes](https://github.com/lukejacksonn/servor/releases)
- [Commits](https://github.com/lukejacksonn/servor/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-13 19:20:36 +00:00
Harvey 897aa0dd24 Update package.json 2020-01-09 10:13:34 +08:00
Harvey Zack f0fe5d53eb Merge pull request #50 from zhw2590582/dependabot/npm_and_yarn/mocha-7.0.0
Bump mocha from 6.2.2 to 7.0.0
2020-01-07 08:34:58 +08:00
dependabot-preview[bot] d1cdc516ac Bump mocha from 6.2.2 to 7.0.0
Bumps [mocha](https://github.com/mochajs/mocha) from 6.2.2 to 7.0.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v6.2.2...v7.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-06 19:15:29 +00:00
Harvey 153924a966 Update package.json 2020-01-03 10:39:44 +08:00
Harvey af4c007547 Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2020-01-02 08:31:11 +08:00
Harvey 3f77cd1b4b Update package.json 2020-01-02 08:30:29 +08:00
zhw2590582 1a951729ef Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2019-12-29 13:39:24 +08:00
zhw2590582 18e49e8116 Update package.json 2019-12-29 13:38:55 +08:00
Harvey bad6c66f84 Update package.json 2019-12-27 08:34:38 +08:00
Harvey Zack 3307d1fd5a Update mobile.html 2019-12-17 22:36:31 +08:00
Harvey Zack 795b78e2a9 Update index.html 2019-12-17 22:36:13 +08:00
Harvey Zack 829d0e70f0 Update README-CN.md 2019-12-17 18:01:47 +08:00
Harvey Zack 5b22d9537a Update index.js 2019-12-13 08:40:24 +08:00
Harvey 8ca17bf0ae build all packages 2019-12-11 17:10:15 +08:00
Harvey 9315afa217 v3.3.2 2019-12-11 17:09:10 +08:00
Harvey 1939f33703 优化生命周期 2019-12-11 17:08:55 +08:00
Harvey 637a0ec98f 循环播放时不展示控制栏 2019-12-11 16:51:06 +08:00
Harvey cbc38dd78a 组件选项写进父实例属性 2019-12-09 18:43:07 +08:00
Harvey 40b2e14adc Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2019-12-09 17:39:55 +08:00
Harvey 124240255c build all packages 2019-12-09 17:38:23 +08:00
Harvey 22e9022d83 v3.3.1 2019-12-09 17:37:45 +08:00
Harvey 93d39ca618 3.3.0 2019-12-09 17:37:18 +08:00
Harvey 415a04a4a7 build all packages 2019-12-09 17:34:55 +08:00
zhw2590582 9d25c2b402 添加backdrop选项 2019-12-08 09:33:58 +08:00
zhw2590582 e4af4db6a7 Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2019-12-08 09:23:17 +08:00
Harvey Zack 2f71b0d70f Merge pull request #49 from zhw2590582/dependabot/npm_and_yarn/cpy-8.0.0
Bump cpy from 7.3.0 to 8.0.0
2019-12-07 08:41:14 +08:00
dependabot-preview[bot] 9168f0b212 Bump cpy from 7.3.0 to 8.0.0
Bumps [cpy](https://github.com/sindresorhus/cpy) from 7.3.0 to 8.0.0.
- [Release notes](https://github.com/sindresorhus/cpy/releases)
- [Commits](https://github.com/sindresorhus/cpy/compare/v7.3.0...v8.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-06 19:15:59 +00:00
Harvey a8cbb56d93 build all packages 2019-12-02 08:40:33 +08:00
Harvey 1a3c4c5f79 v3.2.6 2019-12-02 08:39:59 +08:00
Harvey 89a19a16f0 修复播放状态 2019-11-29 11:35:00 +08:00
Harvey 0acc2482d5 移除多余空格 2019-11-28 13:33:28 +08:00
Harvey 1cc2a57d5c 更新readme 2019-11-28 12:12:00 +08:00
Harvey a6e4575b84 build all packages 2019-11-28 11:55:11 +08:00
Harvey c81e5ba3a5 v3.2.5 2019-11-28 11:54:41 +08:00
Harvey 763e47ed0f Update package.json 2019-11-28 11:54:17 +08:00
Harvey 904e214727 移除播放列表插件 2019-11-28 11:44:51 +08:00
Harvey 4722226658 修复字幕偏移错误 2019-11-28 11:35:49 +08:00
Harvey 54e9fb9ae2 优化文档 2019-11-28 11:26:19 +08:00
Harvey 0cf455ced3 压缩字符 2019-11-28 10:56:53 +08:00
Harvey 7ff61b4660 删除多余事件 2019-11-28 10:10:29 +08:00
Harvey e0faa3fe68 移除多余icon 2019-11-27 17:16:59 +08:00
Harvey 14701f2141 删除多余字符 2019-11-27 17:11:42 +08:00
Harvey 2cf7905d58 格式化html 2019-11-27 16:32:22 +08:00
Harvey 1d153e9a8d build all packages 2019-11-27 16:17:05 +08:00
Harvey 3da08e1bc7 Update common.js 2019-11-27 16:16:00 +08:00
Harvey 06fc487482 优化demo 2019-11-27 16:14:43 +08:00
Harvey a836852e48 build all packages 2019-11-27 15:49:24 +08:00
Harvey 5f40463713 压缩字符 2019-11-27 15:46:55 +08:00
Harvey 2df60a78ff 修复图片样式 2019-11-25 08:48:19 +08:00
Harvey Zack 4a7736a8e0 Update index.js 2019-11-24 17:28:15 +08:00
Harvey Zack 563e796098 Update index.js 2019-11-24 17:25:47 +08:00
zhw2590582 11525f2ee3 Update index.js 2019-11-24 17:18:12 +08:00
zhw2590582 18a3e88e62 Update package.json 2019-11-22 21:47:57 +08:00
zhw2590582 7a3146db6b 3.2.4 2019-11-22 21:44:12 +08:00
zhw2590582 0a3a20568e build all packages 2019-11-22 21:40:30 +08:00
zhw2590582 6a51c6b0ad v3.2.4 2019-11-22 21:40:05 +08:00
zhw2590582 c10e760141 fix 2019-11-22 21:39:55 +08:00
zhw2590582 247d626c3d build all packages 2019-11-22 21:35:31 +08:00
zhw2590582 6262ff96c3 v3.2.3 2019-11-22 21:35:06 +08:00
zhw2590582 652965352f build all packages 2019-11-22 21:33:46 +08:00
zhw2590582 898ba45bf6 v3.2.2 2019-11-22 21:33:21 +08:00
zhw2590582 88c7b5c2ff build all packages 2019-11-22 21:26:30 +08:00
zhw2590582 590388125a build all packages 2019-11-22 21:23:48 +08:00
zhw2590582 9e6105c8f1 build all packages 2019-11-22 21:18:50 +08:00
zhw2590582 e43e7f3359 3.2.1 2019-11-22 21:12:52 +08:00
zhw2590582 65f2fd57de Update lerna.json 2019-11-22 21:11:33 +08:00
zhw2590582 6f82f3f91d update creatTestFromDoc 2019-11-22 21:08:29 +08:00
zhw2590582 e982482a6d build all packages 2019-11-22 21:04:19 +08:00
zhw2590582 7f9325909b build all packages 2019-11-22 20:59:16 +08:00
zhw2590582 424ce9f39b v3.1.20 2019-11-22 20:52:13 +08:00
zhw2590582 1270167a3e 简化工具函数 2019-11-22 20:50:14 +08:00
zhw2590582 be4d1d0437 add removeHtmlSpace 2019-11-22 20:27:10 +08:00
Harvey Zack d8ba5c266e Update package.json 2019-11-22 18:46:19 +08:00
Harvey 44ca79ef62 build all packages 2019-11-22 18:10:25 +08:00
Harvey 97646bc729 fix artplayer-plugin-playlist 2019-11-22 18:00:32 +08:00
Harvey a31fe1b5d5 压缩html空格 2019-11-22 17:54:59 +08:00
Harvey 48b81536a8 Update hotkey.js 2019-11-22 17:48:13 +08:00
Harvey 15f6f2759a 修复字幕插件 2019-11-22 17:37:53 +08:00
Harvey ee90291897 压缩字符 2019-11-22 17:32:09 +08:00
Harvey baaaa4c56c build all packages 2019-11-22 17:07:40 +08:00
Harvey 2fcd44e8e7 组件添加add方法 2019-11-22 16:34:31 +08:00
Harvey 1d859e2049 创建组件父类 2019-11-22 15:35:21 +08:00
Harvey 0c1c1273a6 压缩多余字符 2019-11-22 11:10:28 +08:00
Harvey 707df15b2d update i18n 2019-11-22 10:16:46 +08:00
Harvey 042745f001 修改本地预览插件 2019-11-22 09:52:56 +08:00
zhw2590582 7c5d0f7385 修复demo尺寸 2019-11-21 20:54:24 +08:00
zhw2590582 d512d9f8f0 修复subtitle:update事件 2019-11-21 20:40:02 +08:00
zhw2590582 965fccb985 修复subtitle:update事件 2019-11-21 20:39:25 +08:00
zhw2590582 c933bd68e4 优化版本输出 2019-11-21 20:26:43 +08:00
zhw2590582 17b7386ad6 remove version 2019-11-21 20:16:55 +08:00
Harvey f9d4bbd752 更新测试html 2019-11-21 13:49:11 +08:00
Harvey 7851ad373b Update creatTestFromDoc.js 2019-11-21 11:43:50 +08:00
Harvey c752982738 自动从文档生成测试用例 2019-11-21 11:39:49 +08:00
Harvey 12c64e41fb 完善文档 2019-11-21 10:31:49 +08:00
Harvey 20f3488830 update demo 2019-11-21 09:37:29 +08:00
Harvey 2d6627225f Update README.md 2019-11-21 09:30:17 +08:00
Harvey de20a350e6 添加事件文档 2019-11-20 15:30:11 +08:00
Harvey 339ec6a163 build all packages 2019-11-20 09:49:52 +08:00
Harvey 066a29e170 v3.1.19 2019-11-20 09:49:22 +08:00
Harvey 2223c01d83 Update package.json 2019-11-20 09:49:05 +08:00
Harvey a8d102cdad Update package.json 2019-11-20 09:46:59 +08:00
Harvey 355fdf623d Update index.html 2019-11-20 09:45:05 +08:00
Harvey ef5558e2d3 同步本地视频的标题 2019-11-15 12:03:47 +08:00
Harvey 04ea075cc4 build all packages 2019-11-15 11:29:25 +08:00
Harvey 1c58255301 remove comments 2019-11-15 11:28:49 +08:00
Harvey 5769baa676 build all packages 2019-11-15 11:19:40 +08:00
Harvey b3c2452758 优化菜单 2019-11-15 11:02:44 +08:00
Harvey 9e36a1ba44 build all packages 2019-11-15 10:37:59 +08:00
Harvey 8c604e6e4d 优化信息面板 2019-11-15 10:33:52 +08:00
Harvey 9f2038539e 优化字幕结构 2019-11-15 10:17:11 +08:00
zhw2590582 3965132252 Update localVideo.js 2019-11-14 20:51:04 +08:00
zhw2590582 c1758c604d 移除多余i18n 2019-11-14 20:50:47 +08:00
Harvey 224a7fe23c build all packages 2019-11-14 16:17:32 +08:00
Harvey 06be229b21 添加中文介绍 2019-11-14 16:04:23 +08:00
Harvey bdec289151 更新英文简介 2019-11-14 15:44:04 +08:00
Harvey 9cf1571ef8 添加字幕本地预览 2019-11-14 14:00:24 +08:00
Harvey 2878705e72 强制关闭controls 2019-11-14 12:05:57 +08:00
Harvey 50c293f6c3 设置 preload 默认值为 metadata 2019-11-14 11:57:38 +08:00
Harvey 8ef582f714 分离工具函数 2019-11-14 11:24:02 +08:00
Harvey 7a84c262da 提取共用方法 2019-11-14 10:11:03 +08:00
Harvey 48ade99047 build all packages 2019-11-11 09:22:33 +08:00
Harvey 61cbcb430d v3.1.18 2019-11-11 09:22:05 +08:00
Harvey d3cc1bd4fc 更新依赖 2019-11-11 09:20:37 +08:00
Harvey a0f90bef50 build all packages 2019-11-11 09:14:51 +08:00
Harvey 1310e1f0a8 v3.1.17 2019-11-11 09:14:25 +08:00
Harvey 66bb5326ec build all packages 2019-11-11 09:11:36 +08:00
zhw2590582 5fb324abc5 Update package.json 2019-11-11 06:47:58 +08:00
zhw2590582 2b83fc1b26 build all packages 2019-11-10 15:53:24 +08:00
zhw2590582 a67307d749 v3.1.17 2019-11-10 15:53:05 +08:00
zhw2590582 c91eab323e Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2019-11-08 06:58:09 +08:00
zhw2590582 27dbd8dfbf Update package.json 2019-11-08 06:57:35 +08:00
Harvey da45181d18 build all packages 2019-10-15 09:56:59 +08:00
Harvey 0d420c6413 更新依赖 2019-10-15 09:49:57 +08:00
Harvey a51b0debd9 添加尺寸错误验证 2019-10-15 09:40:12 +08:00
Harvey a6816d68fa 添加ready事件 2019-10-10 11:33:24 +08:00
zhw2590582 d43a71b931 优化字幕切换 2019-10-01 20:36:43 +08:00
zhw2590582 31d1949da0 添加字幕url的getter和setter 2019-10-01 19:51:10 +08:00
Harvey 8d6dcdf6aa 添加字幕切换方法 2019-09-29 17:02:35 +08:00
Harvey 6f84fcc8f2 add isLocalhost 2019-09-27 10:06:18 +08:00
Harvey 8ad6550d12 Update switchMix.js 2019-09-27 09:54:12 +08:00
Harvey 2fbacf77a6 添加ass格式字幕支持 2019-09-25 18:36:54 +08:00
Harvey 1644a7530f build all packages 2019-09-25 12:44:22 +08:00
Harvey c3ddddc223 v3.1.16 2019-09-25 12:43:54 +08:00
Harvey 13fa706bbf 优化字幕切换 2019-09-25 12:43:45 +08:00
Harvey abeb4b5326 networkMonitor 添加采样时间 2019-09-20 14:32:10 +08:00
Harvey b444b4fcc5 Update package.json 2019-09-19 15:48:58 +08:00
Harvey 6c98b91aa5 修正热键的值 2019-09-19 15:36:56 +08:00
Harvey 282c8f79e0 优化pip 2019-09-19 15:22:54 +08:00
Harvey 022f36624a 优化pip 2019-09-19 15:13:57 +08:00
Harvey Zack fcd7fbecfc Merge pull request #45 from zhw2590582/UI-rebuild
优化进度条样式
2019-09-19 14:41:09 +08:00
Harvey b1276c26a8 优化进度条样式 2019-09-19 14:27:13 +08:00
Harvey Zack af748fdebf Merge pull request #44 from zhw2590582/dependabot/npm_and_yarn/cross-env-tw-6.0.0
Update cross-env requirement from ^5.2.1 to ^6.0.0
2019-09-18 08:29:32 +08:00
dependabot-preview[bot] 853b15ba3c Update cross-env requirement from ^5.2.1 to ^6.0.0
Updates the requirements on [cross-env](https://github.com/kentcdodds/cross-env) to permit the latest version.
- [Release notes](https://github.com/kentcdodds/cross-env/releases)
- [Changelog](https://github.com/kentcdodds/cross-env/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kentcdodds/cross-env/compare/v5.2.1...v6.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-17 19:21:26 +00:00
Harvey 763cabdfe8 Create analysis.js 2019-09-16 10:01:22 +08:00
zhw2590582 902fe20895 build all packages 2019-09-15 16:16:53 +08:00
zhw2590582 8be47d625e v3.1.15 2019-09-15 16:16:33 +08:00
Harvey 9be587559f remove floatCeil 2019-09-12 17:41:20 +08:00
Harvey a244879a3e add floatCeil 2019-09-12 17:02:47 +08:00
Harvey 18ca81e2ed 添加背景模糊特效 2019-09-12 16:33:21 +08:00
Harvey da69b19b63 修改自动画中画的描述 2019-09-11 10:31:06 +08:00
Harvey 904358fbdf 修改字幕偏移插件name 2019-09-11 10:24:01 +08:00
Harvey 05cbe4dad6 添加监听视频卡顿的插件 2019-09-11 10:14:47 +08:00
Harvey cef60c4d9a Update gif.js 2019-09-10 09:04:39 +08:00
Harvey 8d1ae92e73 Update package.json 2019-09-10 08:52:17 +08:00
Harvey 6bac8ad6e2 update screenfull api 2019-09-10 08:46:21 +08:00
Harvey Zack 1ec9c5e2bf Merge pull request #43 from zhw2590582/dependabot/npm_and_yarn/screenfull-tw-5.0.0
Update screenfull requirement from ^4.2.0 to ^5.0.0
2019-09-10 08:32:27 +08:00
Harvey Zack efa498d0d6 Update package.json 2019-09-10 08:30:00 +08:00
Harvey Zack 58d443375c Merge pull request #42 from zhw2590582/dependabot/npm_and_yarn/rollup-1.21.2
Update rollup requirement from 1.14.2 to 1.21.2
2019-09-10 06:56:41 +08:00
dependabot-preview[bot] effcb52e9a Update screenfull requirement from ^4.2.0 to ^5.0.0
Updates the requirements on [screenfull](https://github.com/sindresorhus/screenfull.js) to permit the latest version.
- [Release notes](https://github.com/sindresorhus/screenfull.js/releases)
- [Commits](https://github.com/sindresorhus/screenfull.js/compare/v4.2.0...v5.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-09 20:42:03 +00:00
dependabot-preview[bot] 358c483077 Update rollup requirement from 1.14.2 to 1.21.2
Updates the requirements on [rollup](https://github.com/rollup/rollup) to permit the latest version.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/compare/v1.14.2...v1.21.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-09-09 20:41:41 +00:00
Harvey 07469bfb27 Update package.json 2019-09-09 11:26:09 +08:00
Harvey aa13d472cd Update package.json 2019-09-09 11:22:39 +08:00
Harvey 77acbe47ba Update package.json 2019-09-09 11:14:26 +08:00
Harvey 7bb66071d3 Update package.json 2019-09-09 10:52:27 +08:00
Harvey b2be95e131 Update package.json 2019-09-09 10:43:29 +08:00
Harvey cebb754cdf Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2019-09-09 10:42:51 +08:00
Harvey ea00e6c36b build all packages 2019-09-09 10:40:35 +08:00
Harvey ce09c375c0 Update package.json 2019-09-09 10:02:50 +08:00
zhw2590582 2f56243068 Update README.md 2019-09-08 13:04:56 +08:00
zhw2590582 150e43d325 Update README.md 2019-09-08 13:02:07 +08:00
zhw2590582 d0939d5b65 内置插件默认修改为关闭 2019-09-08 12:52:07 +08:00
zhw2590582 b2f30aa030 fix scheme 2019-09-08 12:43:12 +08:00
zhw2590582 6c0a198f02 add auto pip mode 2019-09-08 12:41:27 +08:00
Harvey Zack 8dc8dc3a3e Update nodejs.yml 2019-09-07 08:51:17 +08:00
Harvey Zack e0d8eea2fc Update nodejs.yml 2019-09-07 08:48:03 +08:00
Harvey Zack 29508485c8 Update nodejs.yml 2019-09-07 08:45:20 +08:00
Harvey Zack 08d195864b Update package.json 2019-09-06 08:21:40 +08:00
Harvey cdbf4b3816 typofix 2019-09-03 17:29:12 +08:00
Harvey 6b716c622c Update index.js 2019-09-03 17:05:23 +08:00
Harvey 743a812860 升级验证器2.0.0 2019-09-03 15:18:58 +08:00
Harvey Zack 663081d2ac Update nodejs.yml 2019-08-27 08:18:46 +08:00
zhw2590582 98942c8049 Update index.html 2019-08-24 09:23:58 +08:00
zhw2590582 4aba07cf79 Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2019-08-24 09:23:14 +08:00
zhw2590582 82c6c59875 add Donate links 2019-08-24 09:22:35 +08:00
Harvey Zack c14f03f019 Merge pull request #41 from zhw2590582/dependabot/npm_and_yarn/inquirer-tw-7.0.0
Update inquirer requirement from ^6.3.1 to ^7.0.0
2019-08-24 08:40:15 +08:00
dependabot-preview[bot] 8ea78d5f99 Update inquirer requirement from ^6.3.1 to ^7.0.0
Updates the requirements on [inquirer](https://github.com/SBoudrias/Inquirer.js) to permit the latest version.
- [Release notes](https://github.com/SBoudrias/Inquirer.js/releases)
- [Commits](https://github.com/SBoudrias/Inquirer.js/compare/inquirer@6.3.1...inquirer@7.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-23 19:23:49 +00:00
Harvey Zack 79c68a5c39 Update package.json 2019-08-23 20:55:27 +08:00
zhw2590582 db8df6015d Update README.md 2019-08-23 20:21:35 +08:00
zhw2590582 1ba6de1555 Update screenshot.png 2019-08-23 20:18:36 +08:00
zhw2590582 ea111be661 update some images 2019-08-23 20:06:53 +08:00
Harvey Zack 35d9350b6f Update package.json 2019-08-23 11:50:33 +08:00
Harvey 71d56e0a63 build all packages 2019-08-21 11:16:06 +08:00
Harvey 876d1b89cd v3.1.14 2019-08-21 11:15:40 +08:00
Harvey Zack 1eb13d9121 Merge pull request #40 from amowu/hotfix/postcss-values-parser-syntax-error
解決 postcss-values-parser 出現 Syntax Error 的問題
2019-08-21 11:11:39 +08:00
Harvey 06fbf2b3c7 remove balloon.css 2019-08-21 11:11:03 +08:00
Amo Wu 908cde6893 fix: solve postcss-values-parser Syntax Error problem
When using Rollup for balloon.css, `calc(var(--balloon-move) * -1))` will become like this `calc(var(--balloon-move)*-1))`. The space was removed.

This will lead to postcss-values-parser Syntax Error, such as webpacker of Ruby on Rails.

Ref https://github.com/postcss/postcss-custom-properties/issues/161#issuecomment-479025016
2019-08-21 09:59:43 +08:00
Harvey fcfc4334f4 change demo url 2019-08-19 11:56:55 +08:00
Harvey Zack 3cc0b40965 Update index.js 2019-08-19 10:29:57 +08:00
Harvey 2db70b99ef add donations 2019-08-16 13:36:36 +08:00
Harvey 8d1417f2fc change link 2019-08-16 09:23:51 +08:00
Harvey 1498c93921 fix eslint err 2019-08-15 10:08:21 +08:00
Harvey f81225b248 修复字幕偏移不准问题 2019-08-15 10:03:49 +08:00
Harvey 09e1d66676 update option-validator 2019-08-15 09:27:01 +08:00
Harvey cb2116fa9c Update README.md 2019-08-15 09:01:54 +08:00
Harvey 2560cee937 build all packages 2019-08-15 08:34:33 +08:00
Harvey cabade015c v3.1.13 2019-08-15 08:34:00 +08:00
Harvey Zack b9e6232b59 Merge pull request #39 from zhw2590582/dependabot/npm_and_yarn/eslint-tw-6.1.0
Update eslint requirement from ^5.16.0 to ^6.1.0
2019-08-14 08:50:22 +08:00
dependabot-preview[bot] 4b0e607c14 Update eslint requirement from ^5.16.0 to ^6.1.0
Updates the requirements on [eslint](https://github.com/eslint/eslint) to permit the latest version.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v5.16.0...v6.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-13 19:28:50 +00:00
harvey 4dbc42cef3 update lint 2019-08-13 08:39:32 +08:00
Harvey Zack e5ba6fcb95 rename DEFAULTS -> option 2019-08-09 14:55:11 +08:00
Harvey Zack ccd167dd84 Update README.md 2019-08-08 20:00:56 +08:00
Harvey Zack 169bce0faa Update index.js 2019-08-08 19:57:04 +08:00
Harvey Zack 655c8dad70 add console link 2019-08-08 19:46:57 +08:00
Harvey Zack 6fb1b0eb6e 精简eslinet 2019-08-08 19:09:22 +08:00
Harvey Zack fba16c2432 fix demo 2019-08-06 13:26:39 +08:00
Harvey Zack 8d8258eb42 add contribution 2019-08-06 13:03:15 +08:00
Harvey Zack b62ec8a5db Merge pull request #36 from amowu/patch-1
docs(README): typo
2019-08-02 11:54:36 +08:00
Amo Wu c2298bc5a8 docs(README): typo
`artplayerPluginBacklight` -> `artplayerPluginDanmuku`
2019-08-02 11:39:24 +08:00
Harvey Zack 2ac43c6c9e Update README.md 2019-08-01 17:45:50 +08:00
Harvey Zack 5e03c9b191 player属性代理到art属性 2019-08-01 15:53:01 +08:00
Harvey Zack 95d5f64057 Update README.md 2019-08-01 15:13:41 +08:00
Harvey Zack 2764cb6d51 Update README.md 2019-08-01 15:08:32 +08:00
Harvey Zack 1a5cf941a1 build all packages 2019-07-19 18:25:13 +08:00
Harvey Zack 7d24eabe32 v3.1.12 2019-07-19 18:24:26 +08:00
Harvey Zack c81240205d build all packages 2019-07-19 18:21:43 +08:00
Harvey Zack 6322e9446f v3.1.11 2019-07-19 18:20:37 +08:00
Harvey Zack 385fc7bda2 bugfix 2019-07-19 18:18:32 +08:00
Harvey Zack 8b16c0fc29 build all packages 2019-07-19 17:55:10 +08:00
Harvey Zack f6c76e9c8f v3.1.10 2019-07-19 17:54:25 +08:00
Harvey Zack dd8397f14e 优化DEMO 2019-07-09 09:45:02 +08:00
Harvey Zack d17104ed3b Update index.js 2019-07-08 20:44:56 +08:00
Harvey Zack ffbb4cc057 Update package.json 2019-07-08 17:44:24 +08:00
Harvey Zack 64b71850b4 Merge pull request #34 from zhw2590582/dependabot/npm_and_yarn/del-tw-5.0.0
Update del requirement from ^4.1.1 to ^5.0.0
2019-07-03 07:02:36 +08:00
dependabot-preview[bot] 760f7c1dfd Update del requirement from ^4.1.1 to ^5.0.0
Updates the requirements on [del](https://github.com/sindresorhus/del) to permit the latest version.
- [Release notes](https://github.com/sindresorhus/del/releases)
- [Commits](https://github.com/sindresorhus/del/compare/v4.1.1...v5.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-02 19:23:30 +00:00
Harvey Zack 2e168cb5e6 update 2019-06-27 09:44:43 +08:00
Harvey Zack d6e9643220 update validator 2019-06-26 16:34:30 +08:00
Harvey Zack b5cde4d611 Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2019-06-26 15:29:24 +08:00
Harvey Zack e0b5da64fb add sizereport 2019-06-26 15:29:16 +08:00
Harvey Zack 35ecf4bc53 Merge pull request #33 from zhw2590582/dependabot/npm_and_yarn/eslint-config-prettier-tw-6.0.0
Update eslint-config-prettier requirement from ^5.0.0 to ^6.0.0
2019-06-26 07:12:23 +08:00
dependabot-preview[bot] 712c488332 Update eslint-config-prettier requirement from ^5.0.0 to ^6.0.0
Updates the requirements on [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) to permit the latest version.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v5.0.0...v6.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-25 19:18:04 +00:00
Harvey Zack 47058616de 优化插件模块 2019-06-25 16:59:27 +08:00
Harvey Zack 98f0e80a33 bugfix 2019-06-25 16:45:14 +08:00
Harvey Zack d3d1c83eb8 update component.js 2019-06-25 16:34:11 +08:00
Harvey Zack c5355ed6d5 Update index.js 2019-06-25 12:48:55 +08:00
Harvey Zack dc35807bfa Merge pull request #32 from zhw2590582/dependabot/npm_and_yarn/rollup-plugin-eslint-tw-7.0.0
Update rollup-plugin-eslint requirement from ^6.0.0 to ^7.0.0
2019-06-25 11:01:13 +08:00
dependabot-preview[bot] b50dd1e4eb Update rollup-plugin-eslint requirement from ^6.0.0 to ^7.0.0
Updates the requirements on [rollup-plugin-eslint](https://github.com/TrySound/rollup-plugin-eslint) to permit the latest version.
- [Release notes](https://github.com/TrySound/rollup-plugin-eslint/releases)
- [Commits](https://github.com/TrySound/rollup-plugin-eslint/compare/v6.0.0...v7.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-24 19:17:26 +00:00
Harvey Zack a72a51d00b Update eslint-config-prettier requirement from ^4.3.0 to ^5.0.0 (#30)
Update eslint-config-prettier requirement from ^4.3.0 to ^5.0.0
2019-06-18 07:21:54 +08:00
Harvey Zack 81e2b441ff Update balloon-css requirement from ^0.5.0 to ^1.0.0 (#31)
Update balloon-css requirement from ^0.5.0 to ^1.0.0
2019-06-18 07:18:52 +08:00
dependabot-preview[bot] 6b62ca261b Update balloon-css requirement from ^0.5.0 to ^1.0.0
Updates the requirements on [balloon-css](https://github.com/kazzkiq/balloon.css) to permit the latest version.
- [Release notes](https://github.com/kazzkiq/balloon.css/releases)
- [Commits](https://github.com/kazzkiq/balloon.css/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 19:17:21 +00:00
dependabot-preview[bot] 1ee7d7e6a7 Update eslint-config-prettier requirement from ^4.3.0 to ^5.0.0
Updates the requirements on [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) to permit the latest version.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v4.3.0...v5.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-17 19:15:43 +00:00
Harvey Zack 4503676cbf add componentID 2019-06-12 17:08:45 +08:00
Harvey Zack 999636400e Update README.md 2019-06-12 15:49:24 +08:00
Harvey Zack a9474b6bf1 fix 2019-06-12 15:38:44 +08:00
Harvey Zack 6e44bee87b 优化vue/react组件 2019-06-12 15:34:07 +08:00
Harvey Zack cadfa4efe5 build all packages 2019-06-12 15:24:34 +08:00
Harvey Zack 6c2d5f62f6 build all packages 2019-06-06 15:57:29 +08:00
Harvey Zack 896de568cc 使用 e.pageX 2019-06-06 15:45:37 +08:00
Harvey Zack 581b453ed2 update demo 2019-06-06 15:40:18 +08:00
Harvey Zack 3c939b3c37 移除 draggabilly 2019-06-06 15:39:03 +08:00
Harvey Zack a510b9b772 build all packages 2019-06-06 13:33:49 +08:00
Harvey Zack 98c600c244 移除两个依赖 2019-06-06 13:32:19 +08:00
Harvey Zack dc8337dc65 修复 gif demo 错误 2019-06-06 13:12:52 +08:00
Harvey Zack 52b6693da2 简化player接口 2019-06-06 10:37:57 +08:00
Harvey Zack 1b69b28ba1 Update volume.js 2019-06-06 08:31:20 +08:00
zhw2590582 75bd703790 change file name 2019-06-01 00:58:17 +08:00
Harvey Zack 1f25803519 Update index.js 2019-05-27 09:15:24 +08:00
zhw2590582 0af2403bb8 build all packages 2019-05-25 12:50:02 +08:00
Harvey Zack 416e79705c Merge pull request #29 from zhw2590582/dependabot/npm_and_yarn/rollup-plugin-eslint-tw-6.0.0
Update rollup-plugin-eslint requirement from ^5.1.0 to ^6.0.0
2019-05-23 08:13:59 +08:00
dependabot[bot] 9b9e1da1c7 Update rollup-plugin-eslint requirement from ^5.1.0 to ^6.0.0
Updates the requirements on [rollup-plugin-eslint](https://github.com/TrySound/rollup-plugin-eslint) to permit the latest version.
- [Release notes](https://github.com/TrySound/rollup-plugin-eslint/releases)
- [Commits](https://github.com/TrySound/rollup-plugin-eslint/compare/v5.1.0...v6.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-22 19:15:33 +00:00
zhw2590582 899307696b 验证重名组件 2019-05-17 21:52:52 +08:00
Harvey Zack 73e58d356e Merge pull request #27 from zhw2590582/dependabot/npm_and_yarn/rollup-plugin-node-resolve-tw-5.0.0
Update rollup-plugin-node-resolve requirement from ^4.2.3 to ^5.0.0
2019-05-16 06:58:24 +08:00
dependabot[bot] 5a159c8f52 Update rollup-plugin-node-resolve requirement from ^4.2.3 to ^5.0.0
Updates the requirements on [rollup-plugin-node-resolve](https://github.com/rollup/rollup-plugin-node-resolve) to permit the latest version.
- [Release notes](https://github.com/rollup/rollup-plugin-node-resolve/releases)
- [Changelog](https://github.com/rollup/rollup-plugin-node-resolve/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup-plugin-node-resolve/compare/v4.2.3...v5.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-15 22:55:25 +00:00
Harvey Zack 1bab88147c Merge pull request #28 from zhw2590582/dependabot/npm_and_yarn/rollup-plugin-commonjs-tw-10.0.0
Update rollup-plugin-commonjs requirement from ^9.3.4 to ^10.0.0
2019-05-16 06:53:18 +08:00
dependabot[bot] 5f9a5abfcc Update rollup-plugin-commonjs requirement from ^9.3.4 to ^10.0.0
Updates the requirements on [rollup-plugin-commonjs](https://github.com/rollup/rollup-plugin-commonjs) to permit the latest version.
- [Release notes](https://github.com/rollup/rollup-plugin-commonjs/releases)
- [Changelog](https://github.com/rollup/rollup-plugin-commonjs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup-plugin-commonjs/compare/v9.3.4...v10.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-05-15 19:26:17 +00:00
zhw2590582 af2f30442d build all packages 2019-05-13 06:09:33 +08:00
zhw2590582 f1a71f5f6c v3.1.9 2019-05-13 06:09:18 +08:00
zhw2590582 89fecf5488 build all packages 2019-05-13 06:07:33 +08:00
zhw2590582 773714f739 localStorage 添加 del 方法 2019-05-12 10:02:42 +08:00
zhw2590582 6f34ea0da0 添加css主题变量 2019-05-10 22:08:00 +08:00
zhw2590582 4c28b38825 修正播放列表样式 2019-05-10 21:57:47 +08:00
Harvey Zack 6093d826a1 Update README.md 2019-05-10 10:25:17 +08:00
Harvey Zack 6695a128b8 Merge pull request #25 from fossabot/master
Add license scan report and status
2019-05-10 10:04:44 +08:00
fossabot 13da0815ca Add license scan report and status
Signed-off-by: fossabot <badges@fossa.io>
2019-05-09 18:55:40 -07:00
zhw2590582 6e2cb3ad5e add more badge 2019-05-09 22:05:20 +08:00
zhw2590582 88067817cd typofix 2019-05-09 21:18:12 +08:00
zhw2590582 3f33e98421 add more Badge 2019-05-09 21:03:52 +08:00
zhw2590582 524c3203ef safari 支持画中画模式 2019-05-09 20:37:27 +08:00
zhw2590582 cca41ae1fe 模糊插件添加支持判断 2019-05-09 20:01:52 +08:00
Harvey Zack 0eb028fbd4 Update index.js 2019-05-09 18:31:20 +08:00
Harvey Zack bbe0923064 Update index.js 2019-05-09 18:28:36 +08:00
Harvey Zack 0335c678d5 添加绝对坐标 2019-05-09 18:15:35 +08:00
Harvey Zack c95d379064 优化模糊插件 2019-05-09 13:15:43 +08:00
zhw2590582 a2b6ce6d7c pip style fix 2019-05-08 20:20:38 +08:00
Harvey Zack 947e41cd88 style fix 2019-05-08 13:15:05 +08:00
Harvey Zack 29dca053b6 bugfix 2019-05-08 12:40:54 +08:00
Harvey Zack 22f2b4714f 修正模糊插件的时间差问题 2019-05-08 12:12:43 +08:00
Harvey Zack dac68903c5 style fix 2019-05-08 11:57:21 +08:00
Harvey Zack 1aedc530d5 Update package.json 2019-05-08 11:34:57 +08:00
Harvey Zack f88a1f0fda Update index.js 2019-05-08 11:27:24 +08:00
Harvey Zack f82d6e85c8 Merge pull request #24 from zhw2590582/blur
add artplayer-plugin-blur
2019-05-08 11:20:51 +08:00
Harvey Zack 950d6a3b3a add artplayer-plugin-blur 2019-05-08 11:19:46 +08:00
Harvey Zack e26f43e243 暴露Draggabilly接口 2019-05-08 09:23:33 +08:00
Harvey Zack eb34a39429 修复迷你播放器的坐标错误 2019-05-08 09:14:25 +08:00
Harvey Zack 4b207c6bfb remove postinstall 2019-05-07 17:49:16 +08:00
Harvey Zack 335c9b28c3 add postinstall 2019-05-07 17:44:15 +08:00
Harvey Zack ccd027b928 Update constructor.test.js 2019-05-07 17:34:41 +08:00
Harvey Zack cbde597614 Update constructor.test.js 2019-05-07 17:30:03 +08:00
Harvey Zack abff0e0331 优化错误验证 2019-05-07 14:22:15 +08:00
Harvey Zack aa156e1516 Update index.js 2019-05-07 11:12:01 +08:00
Harvey Zack 23237c5ed6 icon 支持自定义元素 2019-05-07 08:27:16 +08:00
zhw2590582 5d286e5d00 添加isLive选项 2019-05-06 22:42:04 +08:00
zhw2590582 df54606294 build all packages 2019-05-06 21:58:00 +08:00
zhw2590582 6b95f054d8 添加demo图标 2019-05-06 21:48:11 +08:00
Harvey Zack 4ec49ec5f1 移除1.75播放速度 2019-05-06 17:22:33 +08:00
Harvey Zack 8d91a5f515 i18n update 2019-05-06 17:15:20 +08:00
Harvey Zack ad03401d74 style fix 2019-05-06 17:07:54 +08:00
Harvey Zack ea275dc405 typefix 2019-05-06 16:37:30 +08:00
Harvey Zack 1471e9ae5e typofix 2019-05-06 16:36:10 +08:00
Harvey Zack 90f1e5faa8 style fix 2019-05-06 16:24:18 +08:00
Harvey Zack b64fe65164 build all packages 2019-05-06 15:48:38 +08:00
Harvey Zack 952b66898a 弹幕同步视频播放速度功能 2019-05-06 15:06:52 +08:00
Harvey Zack 92893321b2 Update artplayer.d.ts 2019-05-06 14:06:05 +08:00
Harvey Zack c8143b0979 修正字幕偏移插件的值 2019-05-06 13:58:10 +08:00
Harvey Zack d012920f34 typofix 2019-05-06 13:52:41 +08:00
Harvey Zack 4d537d3872 简化icon 2019-05-06 13:34:49 +08:00
Harvey Zack d9b38d8e72 Update github.js 2019-05-06 11:40:44 +08:00
Harvey Zack c7d816192e typofix 2019-05-06 10:02:02 +08:00
Harvey Zack 44dec9f83e bugfix 2019-05-06 09:58:37 +08:00
Harvey Zack 0fd8a85ea9 添加flip配置项 2019-05-06 09:48:48 +08:00
Harvey Zack f6295c1fbc 添加更多设置项 2019-05-06 09:36:44 +08:00
Harvey Zack 0bc9c88af2 i18n改用json格式 2019-05-06 09:12:36 +08:00
Harvey Zack ffd7a38b35 Update getDanmuTop.js 2019-05-04 18:40:53 +08:00
zhw2590582 afcb601c84 修复尺寸变化时的弹幕偏移bug 2019-05-04 17:44:02 +08:00
zhw2590582 573c549ce1 修复切换画质时不能接着播放问题 2019-05-04 11:16:38 +08:00
zhw2590582 296a8122d8 build all packages 2019-05-03 22:22:38 +08:00
zhw2590582 ec1fa2f9d0 v3.1.8 2019-05-03 22:22:22 +08:00
zhw2590582 6824543951 fix miniProgressBar bug 2019-05-03 21:43:15 +08:00
zhw2590582 d0fd5abcd3 修复控制栏显示异常问题 2019-05-03 21:34:17 +08:00
zhw2590582 5000d6ed26 移除多余文件 2019-05-03 21:06:55 +08:00
zhw2590582 d70a84773b 优化背光插件 2019-05-03 21:01:24 +08:00
zhw2590582 046d679c81 Update index.html 2019-05-03 20:48:19 +08:00
zhw2590582 339996a873 build all packages 2019-05-03 20:46:24 +08:00
zhw2590582 df3f633e78 bugfix 2019-05-03 14:23:53 +08:00
zhw2590582 58b68a2c12 bugfix 2019-05-03 14:03:05 +08:00
zhw2590582 4dfcba5266 优化静止弹幕 2019-05-03 13:44:12 +08:00
zhw2590582 f4d097b918 添加静止弹幕 2019-05-03 11:52:54 +08:00
zhw2590582 6056e7a0c6 调整播放列表接口 2019-05-01 10:57:49 +08:00
zhw2590582 941ab07c66 添加弹幕设置 2019-05-01 10:43:48 +08:00
zhw2590582 c89f99f8a3 调整设置样式 2019-04-30 22:32:42 +08:00
Harvey Zack c323cea07a typofix 2019-04-30 17:19:12 +08:00
Harvey Zack a817034907 typofix 2019-04-30 17:08:34 +08:00
Harvey Zack 3de25525c4 修复配置全局变量bug 2019-04-30 15:51:36 +08:00
Harvey Zack b74eabc73b Update github.js 2019-04-30 15:18:09 +08:00
Harvey Zack fa585e536a 调整整体样式 2019-04-30 15:10:30 +08:00
Harvey Zack 487e865017 优化整体结构 2019-04-30 13:06:24 +08:00
Harvey Zack 9f9cb0e036 弹幕随播放器尺寸变化而调整 2019-04-29 15:25:01 +08:00
Harvey Zack 73462364b3 typofix 2019-04-29 08:25:15 +08:00
Harvey Zack bf1a4f2234 层使用异步加载 2019-04-29 08:21:19 +08:00
Harvey Zack 8ee7488bb1 优化组件id 2019-04-28 12:58:52 +08:00
Harvey Zack 39ea75450c 优化弹幕层级 2019-04-28 11:58:16 +08:00
Harvey Zack 100785bd58 Update package.json 2019-04-28 11:39:27 +08:00
Harvey Zack b73611b126 优化弹幕库 2019-04-28 11:14:32 +08:00
Harvey Zack cd67baae94 优化弹幕 2019-04-28 10:40:55 +08:00
Harvey Zack d29a5b788f Update github.js 2019-04-27 22:35:28 +08:00
zhw2590582 abaf47b380 Update github.js 2019-04-27 21:33:56 +08:00
zhw2590582 cd9c897c30 调整弹幕样式 2019-04-27 20:59:00 +08:00
zhw2590582 8b28148cc6 Update github.js 2019-04-27 20:35:48 +08:00
zhw2590582 ebc0835da4 Update github.js 2019-04-27 20:30:12 +08:00
zhw2590582 00d8b77e89 fix readme 2019-04-27 20:26:30 +08:00
zhw2590582 8e825effdb build all packages 2019-04-27 20:19:18 +08:00
zhw2590582 8f608ef694 build all packages 2019-04-27 20:18:54 +08:00
zhw2590582 429330a7e2 build all packages 2019-04-27 20:13:00 +08:00
zhw2590582 7c72e3ecd8 Delete artplayer-plugin-danmu.css 2019-04-27 16:00:27 +08:00
zhw2590582 86dd34dc37 build all packages 2019-04-27 15:39:29 +08:00
zhw2590582 dd6a2dafda 优化弹幕插件 2019-04-27 00:09:07 +08:00
Harvey Zack ec52781540 typofix 2019-04-26 18:00:25 +08:00
Harvey Zack de5c97dc52 弹幕添加暂停功能 2019-04-26 17:53:25 +08:00
Harvey Zack 495ff8625e 弹幕基本成型 2019-04-26 17:17:57 +08:00
Harvey Zack 9d730146c0 弹幕池支持异步返回 2019-04-26 12:05:59 +08:00
Harvey Zack 9bd1452030 add bilibiliDanmuParseFromAv 2019-04-26 10:01:54 +08:00
Harvey Zack d735bb4de7 update artplayer-plugin-danmu 2019-04-25 18:02:10 +08:00
Harvey Zack 8aac0ba52f 添加弹幕插件方法 2019-04-25 16:47:50 +08:00
Harvey Zack b1819b3ea2 add bilibiliDanmuParse 2019-04-25 14:15:12 +08:00
Harvey Zack 582114e79d 添加弹幕插件 2019-04-25 11:23:41 +08:00
Harvey Zack d626ee601e 移除flv插件 2019-04-25 09:17:53 +08:00
Harvey Zack 43f8e9d935 优化 screenfull 接口 2019-04-23 08:55:18 +08:00
Harvey Zack eeaeb95557 优化 screenfull 接口 2019-04-23 08:42:54 +08:00
zhw2590582 14c3b52b1d build all packages 2019-04-23 06:56:00 +08:00
zhw2590582 65a9fab8d9 v3.1.7 2019-04-23 06:55:45 +08:00
zhw2590582 bd73f2535d typofix 2019-04-22 22:07:56 +08:00
zhw2590582 bf22c92209 调整预览图精度bug 2019-04-22 22:06:02 +08:00
zhw2590582 09ef4c975b build all packages 2019-04-22 21:40:32 +08:00
Harvey Zack 57e48c0783 Update mobile.js 2019-04-22 18:40:42 +08:00
Harvey Zack c857340d11 Update mobile.js 2019-04-22 17:59:10 +08:00
Harvey Zack edf138730a add seo info 2019-04-22 15:39:27 +08:00
Harvey Zack 5ed7f240fa Update thumbnail.js 2019-04-22 15:19:48 +08:00
Harvey Zack 62c05ef659 优化回调参数 2019-04-22 13:32:27 +08:00
Harvey Zack 2385128abb 优化 playlist 2019-04-22 13:08:39 +08:00
Harvey Zack 328d580fb7 Update index.js 2019-04-22 11:30:06 +08:00
zhw2590582 9a0a02bf56 build all packages 2019-04-21 21:25:22 +08:00
zhw2590582 7bed66fdaf fix fullscreenEnabled bug 2019-04-21 21:16:24 +08:00
zhw2590582 c27d245003 Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2019-04-21 20:42:23 +08:00
zhw2590582 e453033792 修复提示语坐标bug 2019-04-21 20:42:17 +08:00
Harvey Zack 273c199df2 Update index.html 2019-04-21 18:42:29 +08:00
Harvey Zack b84ae21907 Update README.md 2019-04-21 18:32:37 +08:00
Harvey Zack cc71a27ad2 Update README.md 2019-04-21 18:32:13 +08:00
zhw2590582 a04900bcba typofix 2019-04-21 18:04:18 +08:00
zhw2590582 ca75dbd637 Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2019-04-21 18:00:10 +08:00
zhw2590582 7fb29496fe 添加播放列表自动循环 2019-04-21 18:00:02 +08:00
Harvey Zack d867a25a51 Update README.md 2019-04-21 12:43:41 +08:00
Harvey Zack 6fef6881be Update README.md 2019-04-21 12:34:41 +08:00
zhw2590582 2ebdfb4a2d add artplayerPluginPlaylist:change 2019-04-21 12:28:52 +08:00
zhw2590582 a056983047 移除列表自动播放 2019-04-21 12:00:36 +08:00
zhw2590582 3b172ffa93 build all packages 2019-04-21 11:57:44 +08:00
zhw2590582 9de6e12671 Update README.md 2019-04-21 10:06:06 +08:00
zhw2590582 cfafcf4959 add artplayerPluginPlaylist 2019-04-21 10:03:31 +08:00
zhw2590582 53c5502b0f 调整设置面板样式 2019-04-21 09:34:56 +08:00
Harvey Zack 8b88db6e71 Update index.js 2019-04-21 08:31:07 +08:00
Harvey Zack 3bb7a77b28 Update README.md 2019-04-21 08:04:20 +08:00
Harvey Zack 74bc9ba312 Update README.md 2019-04-21 08:03:54 +08:00
Harvey Zack dea98cbf7c Update README.md 2019-04-21 08:03:30 +08:00
Harvey Zack 6cbc84b47f Update README.md 2019-04-21 08:02:58 +08:00
zhw2590582 8a6e438d3b Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2019-04-20 23:00:53 +08:00
zhw2590582 06b15dc278 add mobile.html 2019-04-20 23:00:44 +08:00
Harvey Zack 60e64dd68e Update backlight.js 2019-04-20 22:47:13 +08:00
zhw2590582 1dd4a90734 Update index.html 2019-04-20 21:54:34 +08:00
zhw2590582 da2df1aa95 优化预览图demo 2019-04-20 21:53:03 +08:00
Harvey Zack e269d89821 Update style.css 2019-04-20 21:14:15 +08:00
zhw2590582 5c6245a8b8 style fix 2019-04-20 21:11:17 +08:00
zhw2590582 a9a3796744 添加更多菜单 2019-04-20 19:49:08 +08:00
Harvey Zack 8495892a75 fix docs 2019-04-20 18:06:32 +08:00
Harvey Zack 6da839465b Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2019-04-20 18:00:25 +08:00
Harvey Zack 59e3a43e3d build all packages 2019-04-20 17:59:28 +08:00
Harvey Zack 1cae225112 Update README.md 2019-04-20 17:53:10 +08:00
Harvey Zack af12acba9d add artplayer-tool-thumbnail demo 2019-04-20 17:51:08 +08:00
Harvey Zack 64c21d04bd Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2019-04-20 16:59:43 +08:00
Harvey Zack 935accdad2 fix gif 2019-04-20 16:58:41 +08:00
Harvey Zack 0aeb916e3d Merge pull request #20 from zhw2590582/new-docs
add gif demo
2019-04-20 16:56:45 +08:00
Harvey Zack 2f16d173da add gif demo 2019-04-20 16:55:20 +08:00
Harvey Zack 61913d1b75 Merge pull request #19 from zhw2590582/new-docs
New docs
2019-04-20 16:21:06 +08:00
Harvey Zack e47674f346 完成新docs结构 2019-04-20 16:20:14 +08:00
Harvey Zack f2947edacb new docs init 2019-04-20 12:46:15 +08:00
Harvey Zack f04493a8fa fix fullscreenEnabled 2019-04-20 12:13:48 +08:00
Harvey Zack 7d7dec5d93 Update index.js 2019-04-20 06:20:31 +08:00
Harvey Zack 1353ef0aaa build all packages 2019-04-19 17:01:21 +08:00
Harvey Zack 18d3523799 v3.1.6 2019-04-19 17:00:56 +08:00
Harvey Zack 008232ea14 Update artplayer.d.ts 2019-04-19 16:51:12 +08:00
Harvey Zack 94405a7240 修改d.ts 2019-04-19 16:39:09 +08:00
Harvey Zack 95bbe6f3b2 add ts 2019-04-19 15:41:12 +08:00
Harvey Zack 965e3e008f add getScreenshotBlobUrl 2019-04-19 14:28:33 +08:00
Harvey Zack 078507356a fix bug 2019-04-19 12:51:39 +08:00
Harvey Zack 769855be79 fix miniProgressBar timer 2019-04-19 11:26:56 +08:00
Harvey Zack 87d068dd68 build all packages 2019-04-19 09:56:19 +08:00
Harvey Zack 48436c008d Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2019-04-19 08:51:16 +08:00
Harvey Zack f457fa779c 消除timer 2019-04-19 08:51:01 +08:00
zhw2590582 6ee14a9ff0 修改info精度 2019-04-19 06:55:26 +08:00
赵海伟 a5cda26b80 build all packages 2019-04-19 06:39:04 +08:00
Harvey Zack b787a3bb99 Update index.js 2019-04-18 21:48:24 +08:00
Harvey Zack 662531b35f Update index.js 2019-04-18 21:37:31 +08:00
Harvey Zack b434fa0d79 Update screenshot.js 2019-04-18 20:23:24 +08:00
Harvey Zack 966e25d13a Update screenshotMix.js 2019-04-18 20:22:39 +08:00
Harvey Zack 09a6c67c75 更新webkit样式 2019-04-18 18:26:59 +08:00
Harvey Zack 00c8054a8b update demo url 2019-04-18 18:10:30 +08:00
Harvey Zack 2d6ac77747 update 2019-04-18 18:08:50 +08:00
Harvey Zack a2c3e0d019 add artplayerPluginBacklight 2019-04-18 17:00:51 +08:00
Harvey Zack 80e04f7a4b fix style 2019-04-18 12:25:44 +08:00
Harvey Zack a3c4dcd051 Update README.md 2019-04-17 20:58:14 +08:00
Harvey Zack 6fd9a4f950 Update README.md 2019-04-17 20:53:57 +08:00
Harvey Zack aab55bf2fb Update README.md 2019-04-17 20:53:40 +08:00
Harvey Zack e71a675219 Update common.js 2019-04-17 20:52:31 +08:00
Harvey Zack b01e366f0a Update README.md 2019-04-17 20:52:01 +08:00
Harvey Zack 743662c5db Update index.html 2019-04-17 20:51:29 +08:00
Harvey Zack 8a9dc135ed Update index.html 2019-04-17 20:51:09 +08:00
Harvey Zack bb2d871826 Update example.js 2019-04-17 20:50:45 +08:00
Harvey Zack e7d0326dad Update README.md 2019-04-17 20:49:40 +08:00
Harvey Zack 5d5a90f195 Update README.md 2019-04-17 20:48:47 +08:00
Harvey Zack 7c86519e46 Update mobile.js 2019-04-17 20:47:59 +08:00
Harvey Zack 3baa3d5720 Update README.md 2019-04-17 20:47:22 +08:00
Harvey Zack 8ffa1ff2da fix js src 2019-04-16 14:28:35 +08:00
Harvey Zack 381a7e657e 修改多实例时的图标bug 2019-04-16 14:26:16 +08:00
Harvey Zack 1573364202 Update README.md 2019-04-16 12:09:43 +08:00
Harvey Zack f85e300d77 Update README.md 2019-04-16 12:09:27 +08:00
Harvey Zack fbe54980e3 build all packages 2019-04-16 11:47:22 +08:00
Harvey Zack 32a502cef3 v3.1.5 2019-04-16 11:47:00 +08:00
Harvey Zack 70a389ae37 npm fix 2019-04-16 11:46:49 +08:00
Harvey Zack 3ffd48d464 build all packages 2019-04-16 11:46:02 +08:00
Harvey Zack 7f8ea62e18 v3.1.4 2019-04-16 11:45:37 +08:00
Harvey Zack 507ce40213 npm fix 2019-04-16 11:45:21 +08:00
Harvey Zack a36eb4ab02 build all packages 2019-04-16 11:39:40 +08:00
Harvey Zack a78880dac9 v3.1.3 2019-04-16 11:39:18 +08:00
Harvey Zack d6a36558c5 npm fix 2019-04-16 11:39:06 +08:00
Harvey Zack 66e0519707 build all packages 2019-04-16 11:38:06 +08:00
Harvey Zack dc637e879f v3.1.2 2019-04-16 11:37:33 +08:00
Harvey Zack 21a03468a3 npm fix 2019-04-16 11:37:18 +08:00
Harvey Zack 9d2e1d1a6d build all packages 2019-04-16 11:35:11 +08:00
Harvey Zack 806c95e8ea build all packages 2019-04-16 11:34:09 +08:00
Harvey Zack f539c69eb4 v3.1.1 2019-04-16 11:33:37 +08:00
Harvey Zack f859640be2 build all packages 2019-04-16 11:33:00 +08:00
Harvey Zack 9602263820 v3.1.0 2019-04-16 11:23:02 +08:00
Harvey Zack fe34da0743 3.0.0 2019-04-16 11:22:41 +08:00
Harvey Zack 1aeb1a4378 v3.0.0 2019-04-16 11:18:16 +08:00
Harvey Zack 0b2b9393a8 2.0.0 2019-04-16 11:17:44 +08:00
Harvey Zack 6b93f3c4c6 v2.0.0 2019-04-16 11:14:24 +08:00
Harvey Zack 57d862f25c 优化npm脚本 2019-04-16 11:11:41 +08:00
Harvey Zack 2e994ae82f update 1.0.9 2019-04-16 11:04:04 +08:00
Harvey Zack dd1ec7905c v1.0.9 2019-04-16 10:15:41 +08:00
Harvey Zack 258abf82fa typofix 2019-04-16 10:14:56 +08:00
Harvey Zack 33e73810cb 添加vue组件 2019-04-16 10:12:11 +08:00
Harvey Zack ba5e680887 Update README.md 2019-04-16 08:51:40 +08:00
Harvey Zack c17b098dac Update README.md 2019-04-16 08:38:38 +08:00
赵海伟 376b1433a4 v1.0.8 2019-04-15 20:37:49 +08:00
赵海伟 904f7f6e93 1.0.8 2019-04-15 20:37:24 +08:00
赵海伟 38f78292a3 v1.0.7 2019-04-15 20:30:17 +08:00
Harvey Zack 943a79d244 Delete cypress.json 2019-04-15 19:58:06 +08:00
Harvey Zack bf1620acbc 添加react组件demo 2019-04-15 17:33:44 +08:00
Harvey Zack 283baaa68f 优化i18n 2019-04-15 14:44:10 +08:00
Harvey Zack 135b1b7536 优化render 2019-04-15 14:35:39 +08:00
Harvey Zack f8a7187530 修复打包错误 2019-04-15 14:14:08 +08:00
Harvey Zack 18fbb79dab typofix 2019-04-15 13:18:35 +08:00
Harvey Zack e00fab0bfe 添加react组件 2019-04-15 13:16:15 +08:00
Harvey Zack f13aebd720 修改postcss配置 2019-04-15 12:04:11 +08:00
Harvey Zack 4f3d5e0240 修复全屏时画面比例不对问题 2019-04-15 11:58:28 +08:00
Harvey Zack c16f2647e7 update 2019-04-15 11:45:40 +08:00
赵海伟 667cdcf7e8 add cypress 2019-04-13 19:31:23 +08:00
赵海伟 b8153a5a29 update 2019-04-06 09:15:29 +08:00
赵海伟 38e989bc05 update 2019-04-06 09:05:47 +08:00
Harvey Zack 72925f3987 Update README.md 2019-03-30 17:26:43 +08:00
Harvey Zack 0fc6c7ca63 Update README.md 2019-03-30 17:25:09 +08:00
Harvey Zack 912689a8fa Update README.md 2019-03-30 17:23:47 +08:00
Harvey Zack dfd55731c1 Merge pull request #18 from zhw2590582/dependabot/npm_and_yarn/del-tw-4.0.0
Update del requirement from ^3.0.0 to ^4.0.0
2019-03-05 13:05:59 +08:00
dependabot[bot] 495123d415 Update del requirement from ^3.0.0 to ^4.0.0
Updates the requirements on [del](https://github.com/sindresorhus/del) to permit the latest version.
- [Release notes](https://github.com/sindresorhus/del/releases)
- [Commits](https://github.com/sindresorhus/del/compare/v3.0.0...v4.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-03-04 19:15:42 +00:00
Harvey Zack 7251e67524 Merge pull request #17 from zhw2590582/dependabot/npm_and_yarn/mocha-tw-6.0.0
Update mocha requirement from ^5.2.0 to ^6.0.0
2019-02-20 07:19:17 +08:00
dependabot[bot] f7a222f7b9 Update mocha requirement from ^5.2.0 to ^6.0.0
Updates the requirements on [mocha](https://github.com/mochajs/mocha) to permit the latest version.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v5.2.0...v6.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-19 19:15:16 +00:00
Harvey Zack 9179c3a00e Merge pull request #16 from zhw2590582/dependabot/npm_and_yarn/eslint-config-prettier-tw-4.0.0
Update eslint-config-prettier requirement from ^3.3.0 to ^4.0.0
2019-01-29 09:09:17 +08:00
dependabot[bot] 6948f1da88 Update eslint-config-prettier requirement from ^3.3.0 to ^4.0.0
Updates the requirements on [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) to permit the latest version.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/commits/v4.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-28 19:25:34 +00:00
Harvey Zack 3c8bf2e092 Merge pull request #15 from zhw2590582/dependabot/npm_and_yarn/rollup-plugin-postcss-tw-2.0.0
Update rollup-plugin-postcss requirement from ^1.6.2 to ^2.0.0
2019-01-24 10:49:44 +08:00
dependabot[bot] 4208e62138 Update rollup-plugin-postcss requirement from ^1.6.2 to ^2.0.0
Updates the requirements on [rollup-plugin-postcss](https://github.com/egoist/rollup-plugin-postcss) to permit the latest version.
- [Release notes](https://github.com/egoist/rollup-plugin-postcss/releases)
- [Changelog](https://github.com/egoist/rollup-plugin-postcss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/egoist/rollup-plugin-postcss/commits/v2.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-23 19:18:36 +00:00
Harvey Zack 48c64bfc9d Merge pull request #14 from zhw2590582/dependabot/npm_and_yarn/rollup-tw-1.1.0
Update rollup requirement from ^0.68.0 to ^1.1.0
2019-01-12 17:39:12 +08:00
dependabot[bot] 5bcc78e2f7 Update rollup requirement from ^0.68.0 to ^1.1.0
Updates the requirements on [rollup](https://github.com/rollup/rollup) to permit the latest version.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/commits/v1.1.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-11 19:25:26 +00:00
Harvey Zack d2d5875f5e Merge pull request #13 from zhw2590582/dependabot/npm_and_yarn/mocha-chrome-tw-2.0.0
Update mocha-chrome requirement from ^1.1.0 to ^2.0.0
2019-01-10 20:28:29 +08:00
dependabot[bot] c960a89976 Update mocha-chrome requirement from ^1.1.0 to ^2.0.0
Updates the requirements on [mocha-chrome](https://github.com/shellscape/mocha-chrome) to permit the latest version.
- [Release notes](https://github.com/shellscape/mocha-chrome/releases)
- [Commits](https://github.com/shellscape/mocha-chrome/commits/v2.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-09 19:21:14 +00:00
Harvey Zack 1c83fc1774 Merge pull request #12 from zhw2590582/dev-flv
Dev flv
2018-12-21 15:46:34 +08:00
Harvey Zack 348aabf44c 优化标签解析 2018-12-21 15:43:12 +08:00
Harvey Zack a2125a2634 优化目录 2018-12-21 14:53:36 +08:00
Harvey Zack 32b2f4792a 优化amf解析 2018-12-21 14:30:38 +08:00
Harvey Zack 3afe2e1640 解析amf成功 2018-12-21 11:24:15 +08:00
Harvey Zack 94aaf29da8 简化metadata解析 2018-12-20 20:17:29 +08:00
Harvey Zack 42eb35571d 添加metadata解析 2018-12-20 19:58:42 +08:00
Harvey Zack 4658d3f4b4 分离部分工具函数 2018-12-20 12:25:02 +08:00
Harvey Zack 8ad0605e1a 完成fetch 2018-12-20 11:28:54 +08:00
Harvey Zack 765402662f 添加标签验证 2018-12-19 18:24:54 +08:00
Harvey Zack 39f8c157ac add creatWorker 2018-12-19 17:36:28 +08:00
Harvey Zack 6cc89edcd9 add fetchStream 2018-12-19 15:16:53 +08:00
Harvey Zack 7264d0b3a3 改变flv插件加载方式 2018-12-19 09:20:45 +08:00
Harvey Zack efb5f69dab 更换文件名 2018-12-18 16:58:07 +08:00
Harvey Zack 3a50f7ea86 成功读取tags 2018-12-18 16:46:00 +08:00
Harvey Zack 52458bb95e 调整目录 2018-12-18 11:10:26 +08:00
Harvey Zack f63ae33be7 优化检测支持函数 2018-12-18 10:53:36 +08:00
Harvey Zack b7e740ae61 构建事件代理 2018-12-18 10:41:34 +08:00
Harvey Zack 6da0ede757 Merge pull request #10 from zhw2590582/dependabot/npm_and_yarn/screenfull-tw-4.0.0
Update screenfull requirement from ^3.3.3 to ^4.0.0
2018-12-18 08:20:35 +08:00
Harvey Zack 9d0b1a3a24 Merge pull request #11 from zhw2590582/dependabot/npm_and_yarn/rollup-tw-0.68.0
Update rollup requirement from ^0.67.0 to ^0.68.0
2018-12-18 08:12:42 +08:00
dependabot[bot] f356188c47 Update rollup requirement from ^0.67.0 to ^0.68.0
Updates the requirements on [rollup](https://github.com/rollup/rollup) to permit the latest version.
- [Release notes](https://github.com/rollup/rollup/releases)
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup/commits/v0.68.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-17 19:24:44 +00:00
dependabot[bot] 0f3218340f Update screenfull requirement from ^3.3.3 to ^4.0.0
Updates the requirements on [screenfull](https://github.com/sindresorhus/screenfull.js) to permit the latest version.
- [Release notes](https://github.com/sindresorhus/screenfull.js/releases)
- [Commits](https://github.com/sindresorhus/screenfull.js/commits/v4.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-17 19:18:33 +00:00
Harvey Zack f4c2e11b86 v1.0.6 2018-12-17 15:19:25 +08:00
Harvey Zack 637af75769 1.0.6 2018-12-17 15:18:03 +08:00
Harvey Zack d0110453c0 Update 7.html 2018-12-17 14:26:25 +08:00
Harvey Zack e0d2ffe0bf Update 7.html 2018-12-17 14:03:44 +08:00
Harvey Zack 84c9b539c3 捕捉手机全屏事件错误 2018-12-17 13:54:06 +08:00
Harvey Zack 2a330db120 Merge pull request #9 from zhw2590582/dev-flv
screenfull error in phone
2018-12-17 13:48:39 +08:00
Harvey Zack 6b095af945 screenfull error in phone 2018-12-17 13:47:41 +08:00
Harvey Zack 1414c5d542 Merge pull request #8 from zhw2590582/dev-flv
Dev flv
2018-12-17 13:40:40 +08:00
Harvey Zack 0553eb8aa3 Update 7.html 2018-12-17 13:39:39 +08:00
Harvey Zack 8a27565164 Update 7.html 2018-12-17 13:33:30 +08:00
Harvey Zack 411e15776f 添加issues demo 2018-12-17 13:32:24 +08:00
Harvey Zack 056b57eb1b typofix 2018-12-14 17:30:59 +08:00
Harvey Zack ad2aafe07f update 2018-12-14 17:09:26 +08:00
Harvey Zack f2658673dc 优化结构 2018-12-14 17:03:41 +08:00
Harvey Zack c6869686c3 不合理 2018-12-14 16:48:37 +08:00
Harvey Zack f8400002c2 分离flv文件夹 2018-12-14 16:32:25 +08:00
Harvey Zack 2e0d70292b 创建mse 2018-12-14 16:09:23 +08:00
Harvey Zack 50d1457e7e update 2018-12-14 15:06:20 +08:00
Harvey Zack 3f451aa047 flv demo 2018-12-14 14:10:39 +08:00
Harvey Zack 9f90774b4f artplayer-plugin-flv init 2018-12-11 22:07:44 +08:00
Harvey Zack 96d0786838 Merge pull request #6 from zhw2590582/dependabot/npm_and_yarn/rollup-plugin-node-resolve-tw-4.0.0
Update rollup-plugin-node-resolve requirement from ^3.4.0 to ^4.0.0
2018-12-11 08:58:06 +08:00
dependabot[bot] f12d099aad Update rollup-plugin-node-resolve requirement from ^3.4.0 to ^4.0.0
Updates the requirements on [rollup-plugin-node-resolve](https://github.com/rollup/rollup-plugin-node-resolve) to permit the latest version.
- [Release notes](https://github.com/rollup/rollup-plugin-node-resolve/releases)
- [Changelog](https://github.com/rollup/rollup-plugin-node-resolve/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rollup/rollup-plugin-node-resolve/commits/v4.0.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-10 19:24:19 +00:00
Harvey Zack 9a9665aac5 取消预览图自动下载 2018-12-08 10:06:19 +08:00
Harvey Zack 7cdf6ce904 url支持返回promise 2018-12-08 01:33:09 +08:00
Harvey Zack 8ffa4174ae Update artplayer-plugin-gif.js 2018-12-07 21:57:43 +08:00
Harvey Zack 39301b2e14 修复预览图工具bug 2018-12-07 20:51:33 +08:00
Harvey Zack 465fb64cda Update README.md 2018-12-07 13:23:48 +08:00
Harvey Zack f4c5531b80 修改本地视频类型判断 2018-12-07 12:16:45 +08:00
Harvey Zack 01e16b042c 添加sourcemap 2018-12-07 11:07:56 +08:00
Harvey Zack 03605262bd 修复提示语的 timer bug 2018-12-07 10:18:28 +08:00
Harvey Zack e33934d982 优化 gif 插件 2018-12-07 10:12:46 +08:00
Harvey Zack f931f0dda2 优化 gif 提示 2018-12-06 21:44:52 +08:00
Harvey Zack 0eaf9b9b3b 优化gif demo 2018-12-06 21:32:59 +08:00
Harvey Zack c3bc0f5270 fix 2018-12-06 20:28:56 +08:00
Harvey Zack bb74e686cf gif下载失败? 2018-12-06 20:22:30 +08:00
Harvey Zack b42e9b99c7 优化gif demo 2018-12-06 20:19:43 +08:00
Harvey Zack 02c63e55e8 优化gif演示 2018-12-06 16:05:09 +08:00
Harvey Zack 56eba5626e 优化提示信息 2018-12-06 15:59:21 +08:00
Harvey Zack 06fa463bdd Merge pull request #5 from zhw2590582/dev-git
Dev git
2018-12-06 15:41:12 +08:00
Harvey Zack c9dfc883ab 完成gif插件 2018-12-06 15:39:47 +08:00
Harvey Zack d535423dd8 分离公共资源 2018-12-06 11:59:55 +08:00
Harvey Zack b64d5d5744 构建demo 2018-12-06 11:24:22 +08:00
Harvey Zack ca31357292 初始化gif插件 2018-12-06 11:01:24 +08:00
Harvey Zack 7fc370b6d9 完成截图工具例子 2018-12-06 09:21:52 +08:00
Harvey Zack 17dc3af41f style fix 2018-12-05 21:04:01 +08:00
Harvey Zack 99614d0717 截图工具添加销毁方法 2018-12-05 19:42:14 +08:00
Harvey Zack a47bfb9d31 依赖bug修复 2018-12-05 18:02:07 +08:00
Harvey Zack f489454c3a 更新qq群图片 2018-12-05 16:48:16 +08:00
Harvey Zack e06252c80f 添加字幕插件状态判断 2018-12-05 16:19:49 +08:00
Harvey Zack 156519546f 添加更多异常处理 2018-12-05 16:09:37 +08:00
Harvey Zack 6d3e0b4567 添加截图密度限制 2018-12-05 16:03:44 +08:00
Harvey Zack 0e4e3da5ee 优化本地文件类型判断 2018-12-05 14:54:36 +08:00
Harvey Zack 5078533ad8 完成截图工具 2018-12-05 14:45:16 +08:00
Harvey Zack 0ba8efc2b9 初步完成 2018-12-04 19:53:54 +08:00
Harvey Zack 3396a741dd 初始化截图工具 2018-12-04 18:14:48 +08:00
Harvey Zack 73f6cd7493 docs 优化 2018-12-04 14:14:15 +08:00
Harvey Zack 4de2718432 Update index.html 2018-12-03 20:23:08 +08:00
Harvey Zack fdc0bd31dc artplayer tool init 2018-12-03 17:13:34 +08:00
Harvey Zack 6515953b93 thumbnail tool init 2018-12-03 17:09:25 +08:00
Harvey Zack a942ca2ea0 Merge branch 'master' of https://github.com/zhw2590582/ArtPlayer 2018-12-03 16:11:50 +08:00
Harvey Zack a26fffdd69 add artplayer-tool-thumbnail 2018-12-03 16:11:45 +08:00
Harvey Zack 5c6cfcbe3e Merge pull request #4 from zhw2590582/dev
添加del
2018-12-03 13:11:04 +08:00
Harvey Zack efd82ab889 添加del 2018-12-03 13:09:39 +08:00
Harvey Zack 16cc6f6fb0 Merge pull request #3 from zhw2590582/dev
Dev
2018-12-03 12:49:29 +08:00
Harvey Zack b7565cae54 Update package.json 2018-12-03 12:47:36 +08:00
Harvey Zack 00b51c32ba 完成build脚本 2018-12-03 12:46:52 +08:00
Harvey Zack cc2027832e 完成dev脚本 2018-12-03 11:15:43 +08:00
Harvey Zack c2bbe15e79 Update package.json 2018-12-02 19:55:22 +08:00
Harvey Zack 2b3d305412 优化cli init 2018-12-02 19:52:02 +08:00
Harvey Zack 81a577d4a6 采用简单的插件命名 2018-12-02 11:05:48 +08:00
Harvey Zack 5bfe0f7cfb readme update 2018-12-02 10:57:13 +08:00
Harvey Zack 3e429add87 typofix 2018-12-02 10:51:22 +08:00
Harvey Zack 6deccca9be 修复本地视频初始化问题 2018-12-02 10:49:15 +08:00
Harvey Zack 5c067c2c47 添加本地视频预览 2018-12-02 10:37:03 +08:00
Harvey Zack acdb272393 合并字幕插件 2018-12-02 09:31:54 +08:00
Harvey Zack 6c61a5678b v1.0.5 2018-12-01 08:10:58 +08:00
Harvey Zack ba7109ec11 v 1.0.5 2018-12-01 08:10:36 +08:00
Harvey Zack d414d5ca21 Update README.md 2018-11-30 20:23:26 +08:00
Harvey Zack 416c7e850d clean up 2018-11-30 19:22:57 +08:00
Harvey Zack e0afd92180 Merge pull request #2 from zhw2590582/dev
Dev
2018-11-30 17:29:57 +08:00
Harvey Zack 00ea9c4ca4 完成ci优化 2018-11-30 17:25:48 +08:00
Harvey Zack 848c6ab131 update script 2018-11-30 12:14:13 +08:00
Harvey Zack d62405e8ff dev init 2018-11-30 09:49:25 +08:00
Harvey Zack 0130455888 add some script 2018-11-30 09:26:21 +08:00
Harvey Zack b943bcde99 移除深度合并依赖 2018-11-29 22:20:31 +08:00
Harvey Zack dc8405403c 添加测试用例 2018-11-29 16:38:59 +08:00
Harvey Zack 02009e854d test fypofix 2018-11-29 15:00:51 +08:00
Harvey Zack d1da9f3de8 添加基础测试用例 2018-11-29 14:56:23 +08:00
Harvey Zack 43a90ae379 切换视频后播放按钮bug 2018-11-29 09:16:19 +08:00
Harvey Zack efbd7c08f4 Update index.js 2018-11-28 21:56:24 +08:00
Harvey Zack 0e716da80d 修复移动端销毁错误bug 2018-11-28 20:03:47 +08:00
Harvey Zack a63cc35df0 docs update 2018-11-28 19:47:52 +08:00
Harvey Zack 6d1a167e4d add VConsole 2018-11-28 19:39:58 +08:00
Harvey Zack bfcfc449aa docs update 2018-11-28 19:33:49 +08:00
Harvey Zack 02c45caa38 添加白名单功能 2018-11-28 19:26:21 +08:00
Harvey Zack 970e7e3b89 typofix 2018-11-28 18:26:42 +08:00
Harvey Zack bdb050f0a7 优化playing 2018-11-28 14:28:45 +08:00
Harvey Zack 8dfe97b905 修复切换画质后无法点击播放 2018-11-28 14:11:36 +08:00
Harvey Zack 2f1e7a0b55 修复异步切换画质bug 2018-11-28 13:56:41 +08:00
Harvey Zack 946a2da8a9 优化字幕插件 2018-11-28 13:28:03 +08:00
Harvey Zack 450e4ac879 移除大部分异步操作 2018-11-28 13:15:45 +08:00
Harvey Zack 3fb41eedf7 分离template 2018-11-28 12:15:33 +08:00
397 changed files with 25453 additions and 12616 deletions

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
{
"presets": [
[
"@babel/env",
{
"modules": false
}
]
],
"plugins": [
"@babel/plugin-external-helpers",
"@babel/plugin-transform-runtime"
]
}
+3 -1
View File
@@ -1,5 +1,7 @@
/docs
/dist
/test
/scripts
/node_modules
/packages/**/node_modules
/packages/**/dist
/packages/**/dist
+31 -35
View File
@@ -1,37 +1,33 @@
{
"parser": "babel-eslint",
"extends": ["airbnb-base", "prettier"],
"env": {
"browser": true,
"es6": true
},
"globals": {
"Artplayer": false,
"jQuery": false
},
"rules": {
"class-methods-use-this": 2,
"no-console": 0,
"import/no-cycle": 1,
"no-const-assign": 1,
"no-shadow": 0,
"no-this-before-super": 1,
"no-undef": 1,
"no-unreachable": 1,
"no-unused-vars": 1,
"constructor-super": 1,
"valid-typeof": 1,
"indent": [2, 4, { "SwitchCase": 1 }],
"quotes": [2, "single", "avoid-escape"],
"semi": [2, "always"],
"eqeqeq": [2, "always"],
"one-var": [2, "never"],
"comma-dangle": [2, "always-multiline"],
"spaced-comment": [2, "always"],
"no-restricted-globals": 2,
"no-param-reassign": [2, { "props": false }]
},
"parserOptions": {
"sourceType": "module"
}
"parser": "@babel/eslint-parser",
"extends": ["standard", "prettier"],
"env": {
"browser": true,
"es6": true
},
"rules": {
"no-shadow": 0,
"no-param-reassign": 0,
"no-restricted-exports": 0,
"no-loss-of-precision": 0,
"no-promise-executor-return": 0,
"no-unreachable-loop": 0,
"no-unsafe-optional-chaining": 0,
"no-useless-backreference": 0,
"default-case-last": 0,
"no-nonoctal-decimal-escape": 0,
"prefer-object-spread": 0,
"prefer-destructuring": 0,
"arrow-body-style": 0,
"accessor-pairs": 0,
"import/named": 0
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 8,
"requireConfigFile": false,
"babelOptions": {
"presets": ["@babel/preset-react"]
}
}
}
+4 -4
View File
@@ -11,10 +11,10 @@ about: Report an issue or unexpected behaviour with Artplayer
### Environment
- Browser:
- Version:
- Operating System:
- Version:
- Browser:
- Version:
- Operating System:
- Version:
### Console errors (if any)
+20
View File
@@ -0,0 +1,20 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "19:00"
open-pull-requests-limit: 10
ignore:
- dependency-name: cssnano
versions:
- 5.0.0
- 5.0.1
- dependency-name: autoprefixer
versions:
- 10.2.4
- 10.2.5
- dependency-name: eslint-config-prettier
versions:
- 8.0.0
+31
View File
@@ -0,0 +1,31 @@
name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, lint, build, and test
run: |
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
npm install
npm install packages/* && npx lerna bootstrap --hoist
npm run lint
npm run build:all
npm run test
npm run sizereport
env:
CI: true
+1
View File
@@ -5,4 +5,5 @@ node_modules
examples
commit.json
package-lock.json
.size-snapshot.json
yarn.lock
-11
View File
@@ -1,11 +0,0 @@
language: node_js
node_js:
- stable
before_script:
- npm install
- npm i packages/* && lerna bootstrap --hoist
script:
- npm run lint
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

+47 -44
View File
@@ -1,64 +1,69 @@
# ArtPlayer
<h2 align="center">
<a href="https://artplayer.org">ArtPlayer.js</a>
</h2>
[![Build Status](https://www.travis-ci.org/zhw2590582/ArtPlayer.svg?branch=master)](https://www.travis-ci.org/zhw2590582/ArtPlayer)
![version](https://badgen.net/npm/v/artplayer)
![license](https://badgen.net/npm/license/artplayer)
![size](https://badgen.net/bundlephobia/minzip/artplayer)
<p align="center">
:art: ArtPlayer.js is a modern and full featured HTML5 video player
</p>
> ArtPlayer is a modern HTML5 video player
<p align="center">
<img src="https://img.shields.io/github/checks-status/zhw2590582/artplayer/master" alt="Build Status">
<img src="https://img.shields.io/bundlephobia/minzip/artplayer" alt="Size">
<img src="https://img.shields.io/npm/dm/artplayer.svg?sanitize=true" alt="Downloads">
<img src="https://img.shields.io/npm/v/artplayer.svg?sanitize=true" alt="Version">
<img src="https://img.shields.io/npm/l/artplayer.svg?sanitize=true" alt="License">
</p>
![Screenshot](./screenshot.png)
<p align="center">
<span>・</span>
<a href="https://artplayer.org">Online Editor</a>
<span>・</span>
<a href="https://artplayer.org/?libs=.%2Funcompiled%2Fartplayer-plugin-danmuku.js&example=danmuku">Danmuku Demo</a>
<span>・</span>
<a href="https://artplayer.org/document">API Document</a>
<span>・</span>
</p>
<p align="center">
<a href="https://artplayer.org">
<img src="./images/screenshot.png" alt="screenshot">
</a>
</p>
## Features
* Support `vtt` and `srt` subtitles
* Support video quality switching
* Support for custom `control`, `layer`, `contextmenu`, `setting`
* Support `playback rate`, `aspect ratio`, `flip`, `window fullscreen` or `web fullscreen` adjustment
* Support integration with other dependencies, like: `flv.js`, `hls.js`, `dash.js`, `shaka-player`, `webtorrent`
* Support chrome native picture-in-picture mode, or custom picture-in-picture mode
* Support `thumbnails` and `highlight` in the progress bar
* Support to maintain the original video ratio, adaptive size
* Support rich custom event monitoring, easy to expand
* Support for internationalization of controls
* Support for custom plugins
* Support `screenshot`
* And more...
## Demo
[Checkout the demo](https://artplayer.org/lab/) from Github Pages
## Document
[Checkout the Document](https://artplayer.org/docs) from Github Pages
[ArtPlayer.js](https://artplayer.org) is an easy-to-use and feature-rich HTML5 video player, and most of the player's functional controls support customization, which makes it easy to connect with your business logic. In addition, it directly supports `.vtt`, `.ass` and `.srt` subtitle formats. Integration with other dependencies such as `flv.js`, `hls.js`, `dash.js`, etc. is also very simple. The code is highly decoupled, the structure and logic are clear, and it is easy to track errors and add new features.
## Install
Install with `npm`
Install with `npm`:
```
```bash
$ npm install artplayer
```
Or install with `yarn`
Or install with `yarn`:
```
```bash
$ yarn add artplayer
```
```js
import Artplayer from 'artplayer';
import 'artplayer/dist/artplayer.css';
```
Or umd builds are also available
Or umd builds are also available:
```html
<link rel="stylesheet" href="path/to/artplayer.css" />
<script src="path/to/artplayer.js"></script>
```
Or from jsDelivr CDN:
```html
<script src="https://cdn.jsdelivr.net/npm/artplayer/dist/artplayer.js"></script>
```
Will expose the global variable to `window.Artplayer`.
## Usage
@@ -74,21 +79,19 @@ var art = new Artplayer({
});
```
## Changelog
## Donations
[Checkout the changelog](https://github.com/zhw2590582/ArtPlayer/blob/master/changelog.md)
We accept donations through these channels:
## Ecosystem
![pay](./images/pay.png)
| Project | Description |
| ---------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| [artplayer-plugin-danmu](https://github.com/zhw2590582/ArtPlayer/tree/master/packages/artplayer-plugin-danmu) | Danmu plugin for ArtPlayer |
| [artplayer-plugin-subtitle](https://github.com/zhw2590582/ArtPlayer/tree/master/packages/artplayer-plugin-subtitle) | Subtitle plugin for ArtPlayer |
- [Patreon](https://www.patreon.com/artplayer)
- [Paypal](https://www.paypal.me/harveyzack)
## QQ Group
![QQ Group](./QQgroup.png)
![QQ Group](./images/qqgroup.png)
## License
MIT © [Harvey Zack](https://www.zhw-island.com/)
MIT © Harvey Zack
+8
View File
@@ -0,0 +1,8 @@
/*!
* artplayer-plugin-backlight.js v4.0.0
* Github: https://github.com/zhw2590582/ArtPlayer#readme
* (c) 2017-2021 Harvey Zack
* Released under the MIT License.
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).artplayerPluginBacklight=e()}(this,(function(){"use strict";function t(t){for(var e=[],o=0;o<10;o+=1)for(var n=0;n<5;n+=1)0!==o&&9!==o&&0!==n&&4!==n||e.push(t(o,n,10,5));return e}return function(e){var o=e.constructor.utils.setStyles,n=e.template,a=n.$player,i=n.$video,r=e.player,c=document.createElement("div");c.classList.add("artplayer-backlight"),o(c,{position:"absolute",zIndex:9,left:0,top:0,right:0,bottom:0,width:"100%",height:"100%"});var l,s=(l=c,t((function(t,e,o,n){var a=document.createElement("div");return a.style.position="absolute",a.style.left="".concat(100*t/o,"%"),a.style.top="".concat(100*e/n,"%"),a.style.width="".concat(100/o,"%"),a.style.height="".concat(100/n,"%"),a.style.webkitBorderRadius="50%",a.style.borderRadius="50%",a.style.webkitTransition="all .2s ease",a.style.transition="all .2s ease",l.appendChild(a),{$box:a,left:0===t,right:t===o-1,top:0===e,bottom:e===n-1}}))),u=document.createElement("canvas");return a.insertBefore(c,i),function o(){setTimeout((function(){if(r.playing){var n=i.clientWidth,a=i.clientHeight,c=function(e,o,n,a){var i=e.getContext("2d");return e.width=n,e.height=a,i.drawImage(o,0,0),t((function(t,e,o,r){for(var c=n/o,l=a/r,s=t*c,u=e*l,d=i.getImageData(s,u,c,l).data,f=0,h=0,p=0,g=0,y=d.length;g<y;g+=4)f+=d[g],h+=d[g+1],p+=d[g+2];return{r:f=Math.floor(f/(d.length/4)),g:h=Math.floor(h/(d.length/4)),b:p=Math.floor(p/(d.length/4))}}))}(u,i,n,a);c.forEach((function(t,e){var o=t.r,n=t.g,a=t.b,i=s[e],r=i.$box,c=i.left,l=i.right,u=i.top,d=i.bottom,f=c?"-64px":l?"64px":"0",h=u?"-64px":d?"64px":"0";r.style.webkitBoxShadow="rgb(".concat(o,", ").concat(n,", ").concat(a,") ").concat(f," ").concat(h," 128px"),r.style.boxShadow="rgb(".concat(o,", ").concat(n,", ").concat(a,") ").concat(f," ").concat(h," 128px")}))}e.isDestroy||o()}),200)}(),{name:"artplayerPluginBacklight"}}}));
+8
View File
@@ -0,0 +1,8 @@
/*!
* artplayer-plugin-danmuku.js v4.0.0
* Github: https://github.com/zhw2590582/ArtPlayer#readme
* (c) 2017-2021 Harvey Zack
* Released under the MIT License.
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).artplayerPluginDanmuku=e()}(this,(function(){"use strict";function t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function e(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var n={"zh-cn":{"Danmu opacity":"弹幕透明度","Danmu speed":"弹幕速度","Danmu size":"弹幕大小","Danmu text cannot be empty":"弹幕文本不能为空","The length of the danmu does not exceed":"弹幕文本字数不能超过","Danmu speed synchronous playback multiple":"弹幕速度同步播放倍数"},"zh-tw":{"Danmu opacity":"彈幕透明度","Danmu speed":"彈幕速度","Danmu size":"弹幕大小","Danmu text cannot be empty":"彈幕文本不能為空","The length of the danmu does not exceed":"彈幕文本字數不能超過","Danmu speed synchronous playback multiple":"彈幕速度同步播放倍數"}};function i(t){var e=t.i18n,n=t.events.proxy;return{name:"danmuku-opacity",index:10,html:'<div class="art-setting-header">'.concat(e.get("Danmu opacity"),': <span class="art-value">100</span>%</div><div class="art-setting-range"><input type="range" value="1" min="0.1" max="1" step="0.1"></div>'),mounted:function(e){var i=e.querySelector("input[type=range]"),r=e.querySelector(".art-value");n(i,"change",(function(){var e=i.value;r.innerText=100*Number(e),t.plugins.artplayerPluginDanmuku.config({opacity:Number(e)})})),t.on("artplayerPluginDanmuku:config",(function(t){i.value!==t.opacity&&(i.value=t.opacity,r.innerText=100*t.opacity)}))}}}function r(t){var e=t.i18n,n=t.events.proxy;return{name:"danmuku-size",index:11,html:'<div class="art-setting-header">'.concat(e.get("Danmu size"),': <span class="art-value">25</span>px</div><div class="art-setting-range"><input type="range" value="25" min="14" max="30" step="1"></div>'),mounted:function(e){var i=e.querySelector("input[type=range]"),r=e.querySelector(".art-value");n(i,"change",(function(){var e=i.value;r.innerText=e,t.plugins.artplayerPluginDanmuku.config({fontSize:Number(e)})})),t.on("artplayerPluginDanmuku:config",(function(t){i.value!==t.fontSize&&(i.value=t.fontSize,r.innerText=t.fontSize)}))}}}function a(t){var e=t.i18n,n=t.events.proxy;return{name:"danmuku-speed",index:12,html:'<div class="art-setting-header">'.concat(e.get("Danmu speed"),': <span class="art-value">5</span>s</div><div class="art-setting-range"><input type="range" value="5" min="1" max="10" step="1"></div>'),mounted:function(e){var i=e.querySelector("input[type=range]"),r=e.querySelector(".art-value");n(i,"change",(function(){var e=i.value;r.innerText=e,t.plugins.artplayerPluginDanmuku.config({speed:Number(e)})})),t.on("artplayerPluginDanmuku:config",(function(t){i.value!==t.speed&&(i.value=t.speed,r.innerText=t.speed)}))}}}function o(t){var e=t.i18n,n=t.events.proxy;return{name:"danmuku-synchronousPlayback",index:13,html:'<label class="art-setting-checkbox"><input type="checkbox"/>'.concat(e.get("Danmu speed synchronous playback multiple"),"</label>"),mounted:function(e){var i=e.querySelector("input[type=checkbox]");n(i,"change",(function(){t.plugins.artplayerPluginDanmuku.config({synchronousPlayback:i.checked})})),t.on("artplayerPluginDanmuku:config",(function(t){i.checked!==t.synchronousPlayback&&(i.checked=t.synchronousPlayback)}))}}}function u(t,e,n){return t.filter((function(t){return t.$state===e})).map(n)}function s(t,e){var n=t.getBoundingClientRect();return e?n[e]:n}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,a=[],o=!0,u=!1;try{for(n=n.call(t);!(o=(i=n.next()).done)&&(a.push(i.value),!e||a.length!==e);o=!0);}catch(t){u=!0,r=t}finally{try{o||null==n.return||n.return()}finally{if(u)throw r}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t){switch(t){case 1:case 2:case 3:default:return 0;case 4:case 5:return 1}}function f(t){return fetch(t).then((function(t){return t.text()})).then((function(t){return function(t){if("string"!=typeof t)return[];var e=t.match(/<d([\S ]*?>[\S ]*?)<\/d>/gi);return e&&e.length?e.map((function(t){var e=c(t.match(/<d p="(.+)">(.+)<\/d>/)Line truncated
+8
View File
@@ -0,0 +1,8 @@
/*!
* artplayer-tool-github.js v4.0.0
* Github: https://github.com/zhw2590582/ArtPlayer#readme
* (c) 2017-2021 Harvey Zack
* Released under the MIT License.
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).ArtplayerToolGithub=e()}(this,(function(){"use strict";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var t={exports:{}};return function(t,e){t.exports=function(){var t,e=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},r=function(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(r){e(t,r,n[r])}))}return t},n=(function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=function(t,e,r){var n=f;return function(o,i){if(n===l)throw new Error("Generator is already running");if(n===p){if("throw"===o)throw i;return S()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=O(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=l;var u=s(t,e,r);if("normal"===u.type){if(n=r.done?p:h,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",l="executing",p="completed",y={};function d(){}function g(){}function v(){}var m={};m[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(P([])));b&&b!==r&&n.call(b,i)&&(m=b);var x=v.prototype=d.prototype=Object.create(m);function k(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function L(t){var e;this._invoke=function(r,o){function i(){return new Promise((function(e,i){!function e(r,o,i,a){var c=s(t[r],t,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?Promise.resolve(f.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(f).then((function(t){u.value=t,i(u)}),(function(t){return e("throw",t,i,a)}))}a(c.arg)}(r,o,e,i)}))}return e=e?e.then(i,i):i()}}function O(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function P(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:S}}function S(){return{value:e,done:!0}}return g.prototype=x.constructor=v,v.constructor=g,v[c]=g.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},k(L.prototype),L.prototype[a]=function(){return this},t.AsyncIterator=L,t.async=function(e,r,n,o){var i=new L(u(e,r,n,o));return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(x),x[c]="Generator",x[i]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=P,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sentLine truncated
+8
View File
@@ -0,0 +1,8 @@
/*!
* artplayer-tool-thumbnail.js v4.0.0
* Github: https://github.com/zhw2590582/ArtPlayer#readme
* (c) 2017-2021 Harvey Zack
* Released under the MIT License.
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).ArtplayerToolThumbnail=e()}(this,(function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){return i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function r(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return n(t)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}var s={exports:{}};function u(){}function h(t){return new Promise((function(e){return setTimeout(e,t)}))}function l(t,e,n){return Math.max(Math.min(t,Math.max(e,n)),Math.min(e,n))}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=a(t);if(e){var o=a(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return r(this,n)}}u.prototype={on:function(t,e,n){var i=this.e||(this.e={});return(i[t]||(i[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var i=this;function o(){i.off(t,o),e.apply(n,arguments)}return o._=e,this.on(t,o,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),i=0,o=n.length;i<o;i++)n[i].fn.apply(n[i].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),i=n[t],o=[];if(i&&e)for(var r=0,a=i.length;r<a;r++)i[r].fn!==e&&i[r].fn._!==e&&o.push(i[r]);return o.length?n[t]=o:delete n[t],this}},s.exports=u,s.exports.TinyEmitter=u;var f=function(o){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(f,o);var r,a,s,u=c(f);function f(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t(this,f),(e=u.call(this)).processing=!1,e.option={},e.setup(Object.assign({},f.DEFAULTS,i)),e.video=f.creatVideo(),e.duration=0,e.inputChange=e.inputChange.bind(n(e)),e.ondrop=e.ondrop.bind(n(e)),e.option.fileInput.addEventListener("change",e.inputChange),e.option.fileInput.addEventListener("dragover",f.ondragover),e.option.fileInput.addEventListener("drop",f.ondrop),e}return r=f,a=[{key:"ondrop",value:function(t){t.preventDefault();var e=t.dataTransfer.files[0];this.loadVideo(e)}},{key:"setup",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.option=Object.assign({},this.option,e);var n=this.option,i=n.fileInput,o=n.delay,r=n.number,a=n.width,s=n.height,u=n.column;if(this.errorHandle(i instanceof Element,"The 'fileInput' is not a Element"),"INPUT"!==i.tagName||"file"!==i.type){i.style.position="relative";var h=document.createElement("input");h.type="file",h.style.position="absolute",h.style.width="100%",h.style.height="100%",h.style.left="0",h.style.top="0",h.style.right="0",h.style.bottom="0",h.style.opacity="0",i.appendChild(h),this.option.fileInput=h}return["delay","number","width","height","column","begin","end"].forEach((function(e){t.errorHandle("number"==typeof t.option[e],"The '".concat(e,"' is not a number"))})),this.option.delay=l(o,10,1e3),this.option.number=l(r,10,1e3),this.option.width=l(a,10,1e3),this.option.height=l(s,10,1e3),this.option.column=l(u,1,1e3),this}},{key:"inputChange",value:function(){var t=this.option.fileInput.files[0];this.loadVideo(t)}},{key:"loadVideo",value:function(t){var e=this,n=this.option.delay;if(t){var i=this.video.canPlayType(t.type);this.errorHandle("maybe"===i||"probably"===i,"Playback of this file format is not supported: ".concat(t.type));var o=URL.createObjectURL(t);this.videoUrl=o,this.file=t,this.emit("file",this.file),this.video.src=o,h(n).then((function(){e.emit("video",e.video)})).catch((function(t){throw e.emit("error",t.message),t}))}}},{key:"start",value:function(){var t=this;if(!this.video.duration)return h(1e3).then(this.start);var e=this.option,n=e.width,i=e.height,o=e.number,r=e.delay,a=e.begin,s=e.end;this.option.begin=l(a,0,this.video.duration),this.optionLine truncated
+8
View File
@@ -0,0 +1,8 @@
/*!
* artplayer.js v4.0.0
* Github: https://github.com/zhw2590582/ArtPlayer#readme
* (c) 2017-2021 Harvey Zack
* Released under the MIT License.
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Artplayer=e()}(this,(function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function c(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return n(t)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}!function(t,e){void 0===e&&(e={});var r=e.insertAt;if(t&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}('.art-video-player{zoom:1;-webkit-tap-highlight-color:rgba(0,0,0,0);-ms-high-contrast-adjust:none;background-color:#000;color:#eee;direction:ltr;display:flex;font-family:Roboto,Arial,Helvetica,sans-serif;font-size:14px;height:100%;line-height:1.3;margin:0 auto;outline:0;position:relative;text-align:left;touch-action:manipulation;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%;z-index:20}.art-video-player *{box-sizing:border-box;margin:0;padding:0}.art-video-player ::-webkit-scrollbar{width:5px}.art-video-player ::-webkit-scrollbar-thumb{background-color:#666}.art-video-player ::-webkit-scrollbar-thumb:hover{background-color:#ccc}.art-video-player .art-icon{align-items:center;display:inline-flex;justify-content:center;line-height:1.5}.art-video-player .art-icon svg{fill:#fff}.art-video-player img{max-width:100%;vertical-align:top}@supports ((-webkit-backdrop-filter:initial) or (backdrop-filter:initial)){.art-video-player .art-backdrop-filter{-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);background-color:rgba(0,0,0,.7)!important}}.art-video-player .art-video{background-color:#000;cursor:pointer;z-index:10}.art-video-player .art-poster,.art-video-player .art-video{bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%}.art-video-player .art-poster{background-position:50%;background-repeat:no-repeat;background-size:cover;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:11}.art-video-player .art-subtitle{bottom:10px;color:#fff;display:none;font-size:20px;padding:0 20px;pointer-events:none;position:absolute;text-align:center;text-shadow:.5px .5px .5px rgba(0,0,0,.5);width:100%;z-index:20}.art-video-player .art-subtitle p{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;line-height:1.2;margin:5px 0 0;word-break:break-all}.art-video-player .art-bilingual p:nth-child(n+2){transform:scale(.6);transform-origin:center top}.art-video-player.art-subtitle-show .art-subtitle{display:block}.art-video-player.art-control-show .art-subtitle{bottom:50px}.art-video-player .art-danmuku{z-index:30}.art-video-player .art-danmuku,.art-video-player .art-layers{bottom:0;height:100%;left:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;width:100%}.art-video-player .art-layers{display:none;z-index:40}.art-video-player .art-layers .art-layer{pointer-events:auto}.art-video-player.art-layer-show .art-layers{display:block}.art-video-player .art-mask{align-items:center;bottom:0;display:none;height:100%;justify-content:center;left:0;overflow:hidden;pointer-events:none;position:absolute;right:0;top:0;width:100%;z-index:50}.art-video-player .art-mask .art-state{align-items:center;bottom:55px;display:flex;height:60px;justify-content:center;opacity:.6;position:absolute;right:30px;width:60px}.art-video-player.art-mask-show .art-mask{display:flex}.art-video-player .art-loading{align-items:center;bottom:0;display:none;height:100%;justify-content:center;left:0;pointer-events:none;position:Line truncated
File renamed without changes.
File renamed without changes.
File renamed without changes.
+41
View File
@@ -0,0 +1,41 @@
/*
Name: dracula
Author: Michael Kaminsky (http://github.com/mkaminsky11)
Original dracula color scheme by Zeno Rocha (https://github.com/zenorocha/dracula-theme)
*/
.cm-s-dracula.CodeMirror, .cm-s-dracula .CodeMirror-gutters {
background-color: #282a36 !important;
color: #f8f8f2 !important;
border: none;
}
.cm-s-dracula .CodeMirror-gutters { color: #282a36; }
.cm-s-dracula .CodeMirror-cursor { border-left: solid thin #f8f8f0; }
.cm-s-dracula .CodeMirror-linenumber { color: #6D8A88; }
.cm-s-dracula .CodeMirror-selected { background: rgba(255, 255, 255, 0.10); }
.cm-s-dracula .CodeMirror-line::selection, .cm-s-dracula .CodeMirror-line > span::selection, .cm-s-dracula .CodeMirror-line > span > span::selection { background: rgba(255, 255, 255, 0.10); }
.cm-s-dracula .CodeMirror-line::-moz-selection, .cm-s-dracula .CodeMirror-line > span::-moz-selection, .cm-s-dracula .CodeMirror-line > span > span::-moz-selection { background: rgba(255, 255, 255, 0.10); }
.cm-s-dracula span.cm-comment { color: #6272a4; }
.cm-s-dracula span.cm-string, .cm-s-dracula span.cm-string-2 { color: #f1fa8c; }
.cm-s-dracula span.cm-number { color: #bd93f9; }
.cm-s-dracula span.cm-variable { color: #50fa7b; }
.cm-s-dracula span.cm-variable-2 { color: white; }
.cm-s-dracula span.cm-def { color: #50fa7b; }
.cm-s-dracula span.cm-operator { color: #ff79c6; }
.cm-s-dracula span.cm-keyword { color: #ff79c6; }
.cm-s-dracula span.cm-atom { color: #bd93f9; }
.cm-s-dracula span.cm-meta { color: #f8f8f2; }
.cm-s-dracula span.cm-tag { color: #ff79c6; }
.cm-s-dracula span.cm-attribute { color: #50fa7b; }
.cm-s-dracula span.cm-qualifier { color: #50fa7b; }
.cm-s-dracula span.cm-property { color: #66d9ef; }
.cm-s-dracula span.cm-builtin { color: #50fa7b; }
.cm-s-dracula span.cm-variable-3, .cm-s-dracula span.cm-type { color: #ffb86c; }
.cm-s-dracula .CodeMirror-activeline-background { background: rgba(255,255,255,0.1); }
.cm-s-dracula .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; }
+18
View File
@@ -0,0 +1,18 @@
html, body {
height: 100%;
}
.container {
height: 100%;
padding: 10px;
box-sizing: border-box;
}
.artplayer-app {
width: 100%;
height: 50%;
}
.tip {
text-align: center;
}
File renamed without changes.
+215
View File
@@ -0,0 +1,215 @@
body,
html {
height: 100%;
}
body {
font-family: Hiragino Sans GB, Microsoft YaHei, \5fae\8f6f\96c5\9ed1, tahoma, arial, simsun, \5b8b\4f53;
-webkit-text-size-adjust: 100% !important;
-moz-text-size-adjust: 100% !important;
-ms-text-size-adjust: 100% !important;
text-size-adjust: 100% !important;
font-size: 14px;
margin: 0;
padding: 0;
color: #ccc;
background: rgb(16, 17, 19);
}
*,
:after,
:before {
box-sizing: border-box;
}
a {
color: #ccc;
text-decoration: none;
}
a:hover {
color: #fff;
}
img {
max-width: 100%;
vertical-align: top;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 13px;
height: 48px;
width: 100%;
padding: 0 0 0 20px;
border-bottom: 1px solid rgb(17, 21, 24);
background-color: rgb(28, 32, 34);
}
.header .menus {
display: flex;
align-items: center;
flex: 1;
height: 100%;
}
.header .menus .item {
display: flex;
align-items: center;
margin-left: 20px;
height: 100%;
}
.header .menus .has-sub-menu {
position: relative;
cursor: pointer;
}
.header .menus .has-sub-menu:hover .sub-menu{
display: block;
}
.header .menus .has-sub-menu .sub-menu {
display: none;
position: absolute;
z-index: 9;
top: 45px;
left: 0;
width: 200px;
padding: 0 10px;
background: #2b2b2b;
}
.header .menus .has-sub-menu .sub-menu ul {
padding: 0;
margin-bottom: 15px;
}
.header .menus .has-sub-menu .sub-menu li {
display: block;
list-style: none;
margin-bottom: 15px;
}
.header .menus .has-sub-menu .sub-menu li.title {
color: #fff;
font-size: 16px;
margin-bottom: 15px;
}
.header .run {
display: flex;
justify-content: center;
align-items: center;
width: 100px;
height: 100%;
cursor: pointer;
color: #f1fa8c;
border-left: 1px solid rgb(17, 21, 24);
background-color: rgb(39, 41, 54);
}
.main {
display: flex;
flex: 1;
height: 100%;
}
.main .part-left {
display: flex;
flex-direction: column;
width: 40%;
border-right: 1px solid rgb(17, 21, 24);
}
.main .part-left .libs {
height: 50px;
}
.main .part-left .libsInput {
height: 100%;
width: 100%;
padding: 5px 10px;
outline: none;
resize: none;
border: none;
font-size: 13px;
color: #ccc;
border-bottom: 1px solid rgb(17, 21, 24);
background-color: rgb(28, 32, 34);
}
.main .part-left .code {
flex: 1;
overflow: auto;
}
.main .part-left .code .codeMirrorWrap {
height: 100%;
overflow-x: hidden;
}
.CodeMirror {
height: 100%;
width: calc(100% + 30px);
padding: 10px 30px 10px 0;
}
.main .part-right {
flex: 1;
}
.part-right .video-wrap {
display: flex;
height: 70%;
align-items: center;
justify-content: center;
border-bottom: 1px solid rgb(17, 21, 24);
}
.part-right .video-wrap .artplayer-app {
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
width: 90%;
height: 65%;
border: 1px solid rgba(255, 255, 255, 0.05);
}
.part-right .console {
position: relative;
z-index: 8;
height: 30%;
}
.popups {
display: none;
justify-content: center;
align-items: center;
position: fixed;
z-index: 999;
left: 0;
top: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
}
.popups .popinner {
display: flex;
justify-content: center;
align-items: center;
width: 800px;
height: 600px;
background: #2b2b2b;
border-radius: 3px;
padding: 20px;
background-repeat: no-repeat;
background-position: center center;
background-size: contain;
}
+21
View File
@@ -0,0 +1,21 @@
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
autoSize: true,
light: true,
localVideo: true,
moreVideoAttr: {
crossOrigin: 'anonymous',
},
controls: [
{
name: 'open',
position: 'right',
html: 'Local Video',
mounted: $open => {
art.plugins.localVideo.attach($open);
},
},
],
plugins: [artplayerPluginBacklight],
});
+51
View File
@@ -0,0 +1,51 @@
// 使用说明:
// https://github.com/zhw2590582/ArtPlayer/tree/master/packages/artplayer-plugin-danmuku
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
autoSize: true,
setting: true,
playbackRate: true,
fullscreenWeb: true,
plugins: [
artplayerPluginDanmuku({
danmuku: '/assets/sample/danmuku.xml',
speed: 5,
maxlength: 50,
margin: [10, 100],
opacity: 1,
fontSize: 25,
synchronousPlayback: false,
}),
],
controls: [
{
position: 'right',
html: 'Hide',
click: function (_, event) {
if (art.plugins.artplayerPluginDanmuku.isHide) {
art.plugins.artplayerPluginDanmuku.show();
event.target.innerText = 'Hide';
} else {
art.plugins.artplayerPluginDanmuku.hide();
event.target.innerText = 'Show';
}
},
},
{
position: 'right',
html: 'Send',
click: function () {
var text = prompt('Please enter', 'Danmu text');
if (!text || !text.trim()) return;
var color = '#' + Math.floor(Math.random() * 0xffffff).toString(16);
art.plugins.artplayerPluginDanmuku.emit({
text: text,
color: color,
border: true,
});
},
},
],
});
+68
View File
@@ -0,0 +1,68 @@
// 使用 Github Issues Api 做弹幕接口
// 接口每小时限制 5000 次请求,勿滥用
var danmuku = new ArtplayerToolGithub({
api: 'zhw2590582/github-issues-api-as-danmuku/issues/1',
clientID: '749a95aad589f8849abe',
clientSecret: '7bb6fa67ef6e525e5bd5fda46cd3925ecc4a3760',
});
var art = new Artplayer({
container: '.artplayer-app',
url: '/assets/sample/video.mp4',
autoSize: true,
controls: [
{
name: 'danmuku',
position: 'right',
html: '发送弹幕',
click: () => {
if (window.location.href.includes('code=')) {
art.notice.show = '正在登陆中,请稍等!!!';
} else if (!danmuku.isLogin) {
danmuku.login();
} else {
var text = prompt('请输入:', '弹幕内容');
if (!text || !text.trim()) return;
if (text.length >= 20) {
art.notice.show = '弹幕字数不能大于20字!!!';
return;
}
if (danmuku.remaining <= 10) {
art.notice.show = '接口请求到达上限,请稍后再试!!!';
return;
}
art.notice.show = '弹幕发送中...';
danmuku
.send({
text: text,
time: art.player.currentTime,
color: '#' + Math.floor(Math.random() * 0xffffff).toString(16),
})
.then(data => {
art.notice.show = `发送弹幕成功: ${danmuku.remaining} / ${danmuku.limit}`;
art.plugins.artplayerPluginDanmuku.emit({
...data,
mode: 0,
time: art.player.currentTime + 0.2,
border: true,
});
})
.catch(() => {
art.notice.show = `发送弹幕失败: ${danmuku.remaining} / ${danmuku.limit}`;
});
}
},
},
],
plugins: [
artplayerPluginDanmuku({
danmuku: () => danmuku.load(),
speed: 5,
opacity: 1,
color: '#fff',
size: 25,
maxlength: 50,
margin: [10, 100],
}),
],
});
+118
View File
@@ -0,0 +1,118 @@
var art = new Artplayer({
container: '.artplayer-app',
url: 'https://artplayer.org/assets/sample/video.mp4',
title: 'One More Time One More Chance',
poster: '/assets/sample/poster.jpg',
volume: 0.5,
isLive: false,
muted: false,
autoplay: false,
pip: true,
autoSize: true,
autoMini: true,
screenshot: true,
setting: true,
loop: true,
flip: true,
rotate: true,
playbackRate: true,
aspectRatio: true,
fullscreen: true,
fullscreenWeb: true,
subtitleOffset: true,
miniProgressBar: true,
localVideo: true,
localSubtitle: true,
mutex: true,
backdrop: true,
log: true,
theme: '#ffad00',
lang: navigator.language.toLowerCase(),
moreVideoAttr: {
crossOrigin: 'anonymous',
},
contextmenu: [
{
html: 'Custom menu',
click: function (contextmenu) {
console.info('You clicked on the custom menu');
contextmenu.show = false;
},
},
],
layers: [
{
html: `<img style="width: 100px" src="/assets/sample/layer.png">`,
click: function () {
console.info('You clicked on the custom layer');
},
style: {
position: 'absolute',
top: '20px',
right: '20px',
opacity: '.9',
},
},
],
quality: [
{
default: true,
html: 'SD 480P',
url: '/assets/sample/video.mp4',
},
{
html: 'HD 720P',
url: '/assets/sample/video.mp4',
},
],
thumbnails: {
url: '/assets/sample/thumbnails.png',
number: 100,
width: 160,
height: 90,
column: 10,
},
subtitle: {
url: '/assets/sample/subtitle.srt',
style: {
color: '#03A9F4',
},
encoding: 'utf-8',
bilingual: true,
},
highlight: [
{
time: 60,
text: 'One more chance',
},
{
time: 120,
text: '谁でもいいはずなのに',
},
{
time: 180,
text: '夏の想い出がまわる',
},
{
time: 240,
text: 'こんなとこにあるはずもないのに',
},
{
time: 300,
text: '终わり',
},
],
controls: [
{
position: 'right',
html: 'Control',
click: function () {
console.info('You clicked on the custom control');
},
},
],
icons: {
loading: '<img src="/assets/img/ploading.gif">',
state: '<img src="/assets/img/state.png">',
},
});
+70
View File
@@ -0,0 +1,70 @@
if (window.lastThumbnail) {
window.lastThumbnail.destroy();
}
var $popups = document.querySelector('.popups');
var $popinner = document.querySelector('.popinner');
var $artplayer = document.querySelector('.artplayer-app');
$artplayer.innerHTML = 'Drop video file here or click to upload.';
var thumbnail = new ArtplayerToolThumbnail({
fileInput: $artplayer,
delay: 300, // 延迟
number: 60, // 数量
width: 160, // 宽度
height: 90, // 高度
column: 10, // 列数
begin: 0, // 开始
end: NaN, // 结束
});
window.lastThumbnail = thumbnail;
thumbnail.on('file', function (file) {
console.log('Read video successfully: ' + file.name);
});
thumbnail.on('video', function (video) {
console.log('Video size: ' + video.videoWidth + ' x ' + video.videoHeight);
console.log('Video duration: ' + video.duration + 's');
thumbnail.start();
});
thumbnail.on('canvas', function (canvas) {
console.log('Build canvas successfully');
console.log('Canvas size: ' + canvas.width + ' x ' + canvas.height);
console.log('Preview density: ' + thumbnail.density + ' p/s');
});
thumbnail.on('update', function (url, percentage) {
console.log('Processing: ' + Math.floor(percentage.toFixed(2) * 100) + '%');
$popups.style.display = 'flex';
$popinner.style.backgroundImage = 'url(' + url + ')';
});
thumbnail.on('download', function (name) {
console.log('Start download preview: ' + name);
});
thumbnail.on('done', function () {
$popups.style.display = 'none';
thumbnail.download();
console.log('Build preview image complete');
Artplayer.instances.forEach(function (art) {
art.destroy(true);
});
new Artplayer({
container: $artplayer,
url: thumbnail.videoUrl,
poster: thumbnail.thumbnailUrl,
thumbnails: {
url: thumbnail.thumbnailUrl,
number: thumbnail.option.number,
width: thumbnail.option.width,
height: thumbnail.option.height,
column: thumbnail.option.column,
},
});
console.log('Build player complete');
});
File renamed without changes.
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

File renamed without changes.
@@ -1,9 +1,14 @@
'use strict';
(function() {
var $code = document.querySelector('.code');
var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
if (isMobile) {
window.location.href = './mobile.html';
return;
}
var $codeMirror = document.querySelector('.codeMirrorWrap');
var $lib = document.querySelector('.libsInput');
var $run = document.querySelector('.run');
var $lib = document.querySelector('.lib');
var $popups = document.querySelector('.popups');
var loaddLib = [];
consola.creat({
@@ -12,16 +17,18 @@
zIndex: 99,
});
var mirror = CodeMirror($code, {
var mirror = CodeMirror($codeMirror, {
lineNumbers: true,
mode: 'javascript',
matchBrackets: true,
styleActiveLine: true,
theme: 'dracula',
value: '',
});
function initArt(art) {
Artplayer.config.video.events.forEach(function(item) {
art.on('video:' + item, function(event) {
Artplayer.config.events.forEach(function(item) {
art && art.on('video:' + item, function(event) {
console.log('video: ' + event.type);
});
});
@@ -99,22 +106,28 @@
return Promise.all(libPromise);
}
function loadCode(code) {
if (code) {
function runExample(name) {
fetch(`./assets/example/${name}.js`)
.then(function(response) {
return response.text();
})
.then(function(text) {
mirror.setValue(text);
runCode();
})
.catch(function(err) {
console.error(err.message);
});
}
function loadCode(code, example) {
if (example) {
runExample(example);
} else if (code) {
mirror.setValue(decodeURIComponent(code).trim());
runCode();
} else {
fetch('./js/example.js')
.then(function(response) {
return response.text();
})
.then(function(text) {
mirror.setValue(text);
runCode();
})
.catch(function(err) {
console.error(err.message);
});
runExample('index');
}
}
@@ -132,11 +145,12 @@
var _getURLParameters = getURLParameters(window.location.href),
code = _getURLParameters.code,
libs = _getURLParameters.libs;
example = _getURLParameters.example;
loadLib(libs)
.then(function(result) {
loaddLib = loaddLib.concat(result);
loadCode(code);
loadCode(code, example);
})
.catch(function(err) {
console.error(err.message);
@@ -147,6 +161,10 @@
console.error(err.message);
});
window.addEventListener('unhandledrejection', function(err) {
console.error(err.message);
});
$run.addEventListener('click', function(e) {
var libs = encodeURIComponent($lib.value);
var code = encodeURIComponent(mirror.getValue());
@@ -155,5 +173,11 @@
initApp();
});
$popups.addEventListener('click', function (e) {
if (e.target === this) {
this.style.display = 'none';
}
});
initApp();
})();
File renamed without changes.
File renamed without changes.
+68
View File
@@ -0,0 +1,68 @@
var vConsole = new VConsole();
var art = new Artplayer({
container: '.artplayer-app',
url: 'https://artplayer.org/assets/sample/video.mp4',
title: 'One More Time One More Chance',
poster: '/assets/sample/poster.jpg',
autoSize: true,
loop: true,
mutex: true,
theme: '#ffad00',
fullscreen: true,
fullscreenWeb: true,
miniProgressBar: true,
moreVideoAttr: {
playsInline: true,
'webkit-playsinline': true,
'x5-video-player-type': 'h5',
'x5-video-player-fullscreen': false,
'x5-video-orientation': 'portraint',
},
subtitle: {
url: '/assets/sample/subtitle.srt',
style: {
color: '#fff',
fontSize: '14px',
},
},
layers: [
{
html: `<img style="width: 50px" src="/assets/sample/layer.png">`,
click: function () {
console.info('You clicked on the custom layer');
},
style: {
position: 'absolute',
top: '10px',
right: '10px',
opacity: '.9',
},
},
],
icons: {
loading: '<img src="./assets/img/ploading.gif">',
state: '<img src="./assets/img/state.png">',
},
plugins: [
artplayerPluginDanmuku({
danmuku: '/assets/sample/danmuku.xml',
speed: 5,
maxlength: 100,
margin: [10, 70],
opacity: 1,
fontSize: 14,
synchronousPlayback: false,
}),
],
whitelist: ['*'],
});
Artplayer.config.events.forEach(function (item) {
art.on('video:' + item, function (event) {
console.log('video: ' + event.type);
});
});
if (art.isWechat) {
document.querySelector('.tip').textContent = '微信环境需手动触发播放';
}
+132
View File
@@ -0,0 +1,132 @@
const $container = document.querySelector('.artplayer-app');
// 在服务器端可以直接访问 Artplayer.html 属性,返回供 ssr 使用的 html
// 然后直接插值于播放器的容器里
// const Artplayer = require('artplayer');
// console.log(Artplayer.html);
// 在浏览器端,开启 useSSR 即可
// 模拟效果
$container.innerHTML = Artplayer.html;
var art = new Artplayer({
useSSR: true,
container: $container,
url: 'https://artplayer.org/assets/sample/video.mp4',
title: 'One More Time One More Chance',
poster: '/assets/sample/poster.jpg',
volume: 0.5,
isLive: false,
muted: false,
autoplay: false,
pip: true,
autoSize: true,
autoMini: true,
screenshot: true,
setting: true,
loop: true,
flip: true,
rotate: true,
playbackRate: true,
aspectRatio: true,
fullscreen: true,
fullscreenWeb: true,
subtitleOffset: true,
miniProgressBar: true,
localVideo: true,
localSubtitle: true,
networkMonitor: false,
mutex: true,
light: true,
backdrop: true,
log: true,
theme: '#ffad00',
lang: navigator.language.toLowerCase(),
moreVideoAttr: {
crossOrigin: 'anonymous',
},
contextmenu: [
{
html: 'Custom menu',
click: function (contextmenu) {
console.info('You clicked on the custom menu');
contextmenu.show = false;
},
},
],
layers: [
{
html: `<img style="width: 100px" src="/assets/sample/layer.png">`,
click: function () {
console.info('You clicked on the custom layer');
},
style: {
position: 'absolute',
top: '20px',
right: '20px',
opacity: '.9',
},
},
],
quality: [
{
default: true,
name: 'SD 480P',
url: '/assets/sample/video.mp4',
},
{
name: 'HD 720P',
url: '/assets/sample/video.mp4',
},
],
thumbnails: {
url: '/assets/sample/thumbnails.png',
number: 100,
width: 160,
height: 90,
column: 10,
},
subtitle: {
url: '/assets/sample/subtitle.srt',
style: {
color: '#03A9F4',
},
encoding: 'utf-8',
bilingual: true,
},
highlight: [
{
time: 60,
text: 'One more chance',
},
{
time: 120,
text: '谁でもいいはずなのに',
},
{
time: 180,
text: '夏の想い出がまわる',
},
{
time: 240,
text: 'こんなとこにあるはずもないのに',
},
{
time: 300,
text: '终わり',
},
],
controls: [
{
position: 'right',
html: 'Control',
click: function () {
console.info('You clicked on the custom control');
},
},
],
icons: {
loading: '<img src="/assets/img/ploading.gif">',
state: '<img src="/assets/img/state.png">',
},
});
+1
View File
@@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?><i><chatserver>chat.bilibili.com</chatserver><chatid>11724691</chatid><mission>0</mission><maxlimit>500</maxlimit><state>0</state><real_name>0</real_name><source>k-v</source><d p="24.00000,1,25,16777215,1481940619,0,9369f6e1,2755349415">刚看完中文的</d><d p="47.83900,1,25,16777215,1481940620,0,9369f6e1,2755350229">看完中文版,看一下原版压压惊</d><d p="103.13600,1,25,16777215,1481940621,0,9369f6e1,2755352159">那一买哇</d><d p="93.65400,4,25,15138834,1481940647,0,3a91a313,2755409489">我叫欧布,欧布奥特曼!</d><d p="37.60400,1,25,16777215,1481950905,0,750af5df,2755948579">口昌占戈哥欠</d><d p="12.14200,1,25,16777215,1481961897,0,ab4d3d03,2756547743">刚看完</d><d p="107.61400,5,25,16711782,1481965559,0,f311f6e1,2756754771">自个儿看吧!</d><d p="2.64700,5,25,15138834,1481969183,0,a6f75681,2756841077">今晚三刷!</d><d p="44.21500,1,25,16777215,1481972875,0,f98384a7,2757208503">日刷一遍。哈哈</d><d p="79.24100,1,25,16777215,1481983853,0,fb570164,2758012907">89这个数字神了</d><d p="107.54200,5,25,16707842,1482019718,0,88e1250a,2758909611">子个看的笑哭我</d><d p="17.84600,1,25,0,1482027021,0,462140f3,2759121757">欠的电影票已还</d><d p="94.49900,5,25,16777215,1482030661,0,afe1c3ba,2759240147">老子有杯存了三年的抠脚酒,那些抢着要喝的我这里有</d><d p="102.04200,5,25,15138834,1482030686,0,c73ab657,2759313563">在下版本 有何贵干</d><d p="100.23000,1,25,16777215,1482030708,0,7cdcfcf8,2759381903">好感动</d><d p="1.31200,1,25,16777215,1482037278,0,caf41548,2759709291">三刷回来留念</d><d p="31.56800,4,25,41194,1482037291,0,3143abc,2759757455">幸瑜,我们一起去看吧</d><d p="66.68000,1,25,16777215,1482040963,0,a9c2f933,2760034489">这是什么歌啊啊啊好好听</d><d p="31.36200,4,25,16711680,1482055582,0,660e8376,2760779037">3刷路过</d><d p="15.42800,1,25,16777215,1482062931,0,c447a236,2761295787">看了也没脱单,让我找一个漂亮的德国妹子做女朋友吧!</d><d p="52.06700,1,25,16777215,1482062932,0,70d7d75f,2761299095">-0-</d><d p="52.47900,5,25,65280,1482120763,0,75828be6,2762846077">真想问问表白那些人</d><d p="52.47900,5,25,65280,1482120763,0,75828be6,2762847267">在这里表白算什么</d><d p="52.47900,5,25,65280,1482120763,0,75828be6,2762848323">只能说你是懦夫</d><d p="64.47200,1,25,0,1482127346,0,1f99633e,2763097299">电影院看完的+1</d><d p="92.66300,4,25,16776960,1482141968,0,4ddc51b,2763521111">哪买啊</d><d p="83.36500,1,25,16777215,1482235684,0,3d13d2d1,2766545727">大陆版的宣传片最有感觉</d><d p="91.92700,1,25,16777215,1482235697,0,af8227b4,2766590877">你的名字 郑安琪</d><d p="83.02400,1,25,16777215,1482235735,0,12acbbbf,2766717501">bgm 花火</d><d p="1.00100,1,25,38979,1482243059,0,ab62cfd,2767183303">五刷纪念 sc</d><d p="13.33100,1,25,16777215,1482250320,0,d4d486c6,2767395005">你……我……想和你一起看《你的名字》</d><d p="26.81200,1,25,16777215,1482250353,0,887e2676,2767478183">这就是我们梦寐以求的,唐朝和尚</d><d p="33.23900,1,25,16707842,1482253302,0,3b3a6f4d,2767597689">一个人刷了七遍就我了吧,我还是个男生</d><d p="0.00000,5,25,10027008,1482282578,0,e763cdf4,2767872227">自己看的</d><d p="5.21700,1,25,16777215,1482293534,0,c00038e9,2768119847">看完中毒了,越看中毒越深,新海诚你算计我..........</d><d p="80.32000,1,25,16777215,1482322119,0,a8bac6e4,2769449883">misha</d><d p="8.56700,5,25,15138834,1482322124,0,1d590742,2769465725">希望下辈子可以做个东京的帅哥</d><d p="92.03100,1,25,16777215,1482329452,0,ac03485d,2769962501">自己看吧</d><d p="110.12400,5,25,14811775,1482329453,0,ac03485d,2769964411">自己看吧</d><d p="1.99100,1,25,16777215,1482333104,0,73bfe3ed,2770147271">果然还是大陆版的预告最好</d><d p="43.85900,1,25,0,1482382882,0,b205d490,2771047893">看完电影再看预告的那个等等我,我也是哈哈</d><d p="1.14800,1,25,16777215,1482386544,0,4210f246,2771174753">电影院6刷路过</d><d p="36.30800,1,25,14811775,1482429738,0,748e1d11,2773043641">截止到20号,断断续续去刷了六遍,也是没谁了</d><d p="83.74300,1,25,16777215,1482472932,0,ca08e35f,2773826711">火花</d><d p="14.20000,1,25,16777215,1482491279,0,6e89d570,2774713355">明天二刷</d><d p="73.28500,1,25,16777215,1482502212,0,9c1a8324,2775235269">预告好良心</d><d p="5.54000,5,25,41194,1482549112,0,c2179b89,2776580937">刚看完国语感觉各种不适应</d><d p="76.46300,1,25,16777215,1482573973,0,c904b41b,2777844945">看完之后更加不可能有女朋友了</d><d p="50.16100,1,25,16777215,1482631815,0,24e6ff05,2780053005">三刷归来</d><d p="80.58300,1,25,16777215,1482639163,0,639f1a6c,2780504913">超级好看</d><d p="80.58700,1,25,16777215,1482649427,0,e6a7f8c3,2781190105">米兹哈</d><d p="14.86800,1,25,16777215,1482653076,0,27f539d4,2781355729">我也觉得大陆Line truncated
Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

+97
View File
@@ -0,0 +1,97 @@
[Script Info]
; This is an Advanced Sub Station Alpha v4+ script.
Title: phpNOQ5Gi
ScriptType: v4.00+
Collisions: Normal
PlayDepth: 0
[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Default,Arial,20,&H00FFFFFF,&H0300FFFF,&H00000000,&H02000000,0,0,0,0,100,100,0,0,1,2,1,2,10,10,10,1
[Events]
Format: Layer, Start, End, Style, Actor, MarginL, MarginR, MarginV, Effect, Text
Dialogue: 0,0:00:01.50,0:00:03.95,Default,,0,0,0,,歌名:One More Time,One More Chance\N〖愿往事重来〗
Dialogue: 0,0:00:04.00,0:00:05.95,Default,,0,0,0,,【新海诚动画】『秒速5センチメートル』\N《秒速5厘米》主题曲
Dialogue: 0,0:00:06.00,0:00:08.95,Default,,0,0,0,,编曲:森俊之
Dialogue: 0,0:00:09.00,0:00:11.95,Default,,0,0,0,,作词|作曲|演唱:山崎まさよし <山崎将义>
Dialogue: 0,0:00:12.00,0:00:15.95,Default,,0,0,0,,
Dialogue: 0,0:00:16.00,0:00:20.25,Default,,0,0,0,,これ以上何をう失(し)なえば\N【还要再失去什么】
Dialogue: 0,0:00:20.30,0:00:23.25,Default,,0,0,0,,心は许(ゆる)されるの\N【才能让心得到宽恕?】
Dialogue: 0,0:00:23.30,0:00:27.25,Default,,0,0,0,,どれ程(ほど)の痛(いた)みならば\N【还要再怎样痛苦】
Dialogue: 0,0:00:27.30,0:00:30.25,Default,,0,0,0,,もう一度君に会(あ)える\N【才能与你再次相见】
Dialogue: 0,0:00:30.30,0:00:33.25,Default,,0,0,0,,One more time
Dialogue: 0,0:00:33.30,0:00:37.95,Default,,0,0,0,,季节(きせつ)よ うつろわないで\N【不愿看到季节的变迁】
Dialogue: 0,0:00:38.00,0:00:41.05,Default,,0,0,0,,One more time
Dialogue: 0,0:00:41.10,0:00:45.25,Default,,0,0,0,,ふざけあった时间(じかん)よ\N【曾与你嬉闹的时光啊】
Dialogue: 0,0:00:45.30,0:00:49.25,Default,,0,0,0,,くいちがうときはいつも\N【每次争执的时候】
Dialogue: 0,0:00:49.30,0:00:53.10,Default,,0,0,0,,仆が先(さき)に折(お)れたね\N【总是我先让步】
Dialogue: 0,0:00:53.15,0:00:56.25,Default,,0,0,0,,わがままな性格(せいかく)が\N【你那任性的性格】
Dialogue: 0,0:00:56.30,0:00:59.25,Default,,0,0,0,,なおさら爱(いと)しくさせた\N【反而令你更加可爱】
Dialogue: 0,0:00:59.30,0:01:02.95,Default,,0,0,0,,One more chance
Dialogue: 0,0:01:03.00,0:01:07.25,Default,,0,0,0,,记忆(きおく)に足(あし)を取(と)られて\N【回忆绊住我的脚步】
Dialogue: 0,0:01:07.30,0:01:10.25,Default,,0,0,0,,One more chance
Dialogue: 0,0:01:10.30,0:01:14.95,Default,,0,0,0,,次(つぎ)の场所を选(えら)べない\N【无法选择下个地方】
Dialogue: 0,0:01:15.00,0:01:18.25,Default,,0,0,0,,いつでも捜(さが)しているよ\N【总是在一直寻觅】
Dialogue: 0,0:01:18.30,0:01:21.95,Default,,0,0,0,,どっかに君の姿(すがた)を\N【寻觅着你的身影】
Dialogue: 0,0:01:22.00,0:01:23.95,Default,,0,0,0,,向(むか)いのホーム\N【对面的月台上】
Dialogue: 0,0:01:24.00,0:01:25.95,Default,,0,0,0,,路地裏(ろじうら)の窓(まど)\N【在小巷的窗口里】
Dialogue: 0,0:01:26.00,0:01:29.25,Default,,0,0,0,,こんなとこにいるはずもないのに\N【尽管明知道你不可能在那里】
Dialogue: 0,0:01:29.30,0:01:33.25,Default,,0,0,0,,愿(ねが)いがもしも叶(かな)うなら\N【若愿望能够实现】
Dialogue: 0,0:01:33.30,0:01:36.55,Default,,0,0,0,,いますぐ君のもとへ\N【好想马上去到你身边】
Dialogue: 0,0:01:36.60,0:01:40.25,Default,,0,0,0,,できないことは もう何もない\N【如今我再也不会有丝毫退缩】
Dialogue: 0,0:01:40.30,0:01:47.30,Default,,0,0,0,,すべてかけて抱きしめてみせるよ\N【我会不顾一切将你紧紧拥抱】
Dialogue: 0,0:01:47.35,0:01:51.95,Default,,0,0,0,,
Dialogue: 0,0:01:52.00,0:01:55.25,Default,,0,0,0,,
Dialogue: 0,0:01:55.30,0:01:59.25,Default,,0,0,0,,寂(さび)しさ纷(まぎ)らすだけなら\N【如果只是为了排遣寂寞】
Dialogue: 0,0:01:59.30,0:02:02.95,Default,,0,0,0,,谁でもいいはずなのに\N【其实不管是谁都无所谓】
Dialogue: 0,0:02:03.00,0:02:07.25,Default,,0,0,0,,星が落(お)ちそうな夜(よる)だから\N【唯有在星辰仿佛要坠落的夜晚】
Dialogue: 0,0:02:07.30,0:02:10.25,Default,,0,0,0,,自分(じぶん)をいつわれない\N【我无法欺骗自己】
Dialogue: 0,0:02:10.30,0:02:13.25,Default,,0,0,0,,One more time
Dialogue: 0,0:02:13.30,0:02:17.25,Default,,0,0,0,,季节(きせつ)よ うつろわないで\N【不愿看到季节的变迁】
Dialogue: 0,0:02:17.30,0:02:20.25,Default,,0,0,0,,One more time
Dialogue: 0,0:02:20.30,0:02:24.60,Default,,0,0,0,,ふざけあった时间(じかん)よ\N【曾与你嬉闹的时光啊】
Dialogue: 0,0:02:24.65,0:02:25.25,Default,,0,0,0,,
Dialogue: 0,0:02:25.30,0:02:29.05,Default,,0,0,0,,いつでも捜(さが)しているよ\N【总是在一直寻觅】
Dialogue: 0,0:02:29.10,0:02:32.25,Default,,0,0,0,,どっかに君(きみ)の姿(すがた)を\N【寻觅着你的身影】
Dialogue: 0,0:02:32.30,0:02:34.25,Default,,0,0,0,,交差点(こうさてん)でも\N【每个十字路口】
Dialogue: 0,0:02:34.30,0:02:36.25,Default,,0,0,0,,梦の中でも 【每次梦境之中】
Dialogue: 0,0:02:36.30,0:02:39.95,Default,,0,0,0,,こんなとこにいるはずもないのに\N【尽管明知道你不可能在那里】
Dialogue: 0,0:02:40.00,0:02:43.25,Default,,0,0,0,,奇迹(きせき)がもしも起(お)こるなら\N【若奇迹将会发生】
Dialogue: 0,0:02:43.30,0:02:46.95,Default,,0,0,0,,今すぐ君に见せたい\N【我希望马上就能见到你】
Dialogue: 0,0:02:47.00,0:02:50.25,Default,,0,0,0,,新しい朝(あさ) これからの仆\N【无论崭新的清晨 还是今后的自己】
Dialogue: 0,0:02:50.30,0:02:57.25,Default,,0,0,0,,言えなかった「好き」という言叶も\N【或是那句没能说出口的「喜欢你」】
Dialogue: 0,0:02:57.30,0:03:04.45,Default,,0,0,0,,
Dialogue: 0,0:03:04.50,0:03:05.95,Default,,0,0,0,,
Dialogue: 0,0:03:06.00,0:03:13.95,Default,,0,0,0,,夏の想い出がまわる\N【夏日的回忆在脑海中回旋】
Dialogue: 0,0:03:14.00,0:03:20.95,Default,,0,0,0,,ふいに消(き)えた鼓动(こどう)\N【刹那间消失的悸动】
Dialogue: 0,0:03:21.00,0:03:24.95,Default,,0,0,0,,いつでも捜(さが)しているよ\N【总是在一直寻觅】
Dialogue: 0,0:03:25.00,0:03:27.95,Default,,0,0,0,,どっかに君の姿(すがた)を\N【寻觅着你的身影】
Dialogue: 0,0:03:28.00,0:03:29.95,Default,,0,0,0,,明(あ)け方(がた)の街(まち)\N【在拂晓的街头】
Dialogue: 0,0:03:30.00,0:03:31.95,Default,,0,0,0,,桜木町(さくらぎちょう)で\N【在种满樱树的小镇】
Dialogue: 0,0:03:32.00,0:03:35.95,Default,,0,0,0,,こんなとこに来(く)るはずもないのに\N【尽管明知道你不可能在那里】
Dialogue: 0,0:03:36.00,0:03:39.25,Default,,0,0,0,,愿(ねが)いがもしも叶(かな)うなら\N【若愿望能够实现】
Dialogue: 0,0:03:39.30,0:03:43.05,Default,,0,0,0,,今すぐ君のもとへ\N【现在马上去到你身边】
Dialogue: 0,0:03:43.10,0:03:46.80,Default,,0,0,0,,できないことは もう何(なに)もない\N【如今我再也不会有丝毫退缩】
Dialogue: 0,0:03:46.85,0:03:50.60,Default,,0,0,0,,すべてかけて抱きしめてみせるよ\N【我会不顾一切紧紧将你拥抱】
Dialogue: 0,0:03:50.65,0:03:54.25,Default,,0,0,0,,いつでも捜(さが)しているよ\N【总是在一直寻觅】
Dialogue: 0,0:03:54.30,0:03:57.70,Default,,0,0,0,,どっかに君のかけらを\N【寻觅着你的片断】
Dialogue: 0,0:03:57.75,0:03:59.25,Default,,0,0,0,,旅先(たびさき)の店(みせ)\N【在旅途中的小店】
Dialogue: 0,0:03:59.30,0:04:01.45,Default,,0,0,0,,新闻(しんぶん)の隅(すみ)\N【在报纸的角落】
Dialogue: 0,0:04:01.50,0:04:04.95,Default,,0,0,0,,こんなとこにあるはずもないのに\N【尽管明知道你不可能在那里】
Dialogue: 0,0:04:05.00,0:04:08.25,Default,,0,0,0,,奇迹(きせき)がもしも起(お)こるなら\N【若奇迹将会发生】
Dialogue: 0,0:04:08.30,0:04:12.25,Default,,0,0,0,,今すぐ君に见せたい\N【我希望现在就能见到你】
Dialogue: 0,0:04:12.30,0:04:16.05,Default,,0,0,0,,新しい朝(あさ) これからの仆\N【无论崭新的清晨 还是今后的自己】
Dialogue: 0,0:04:16.10,0:04:19.40,Default,,0,0,0,,言えなかった「好き」という言叶も\N【或是那句没能说出口的「喜欢你」】
Dialogue: 0,0:04:19.45,0:04:19.95,Default,,0,0,0,,
Dialogue: 0,0:04:20.00,0:04:22.95,Default,,0,0,0,,いつでも捜(さが)してしまう\N【总是在一直寻觅】
Dialogue: 0,0:04:23.00,0:04:26.95,Default,,0,0,0,,どっかに君の笑颜(えがお)を\N【寻觅着你的笑容】
Dialogue: 0,0:04:27.00,0:04:30.25,Default,,0,0,0,,急行(きゅうこう)待ちの 踏切(ふみきり)あたり\N【哪怕在等待列车通过的铁路道口】
Dialogue: 0,0:04:30.30,0:04:34.25,Default,,0,0,0,,こんなとこにいるはずもないのに\N【虽然明明知道你不可能在那里】
Dialogue: 0,0:04:34.30,0:04:37.95,Default,,0,0,0,,命(いのち)が缲(く)り返(かえ)すならば\N【如果生命能够重来】
Dialogue: 0,0:04:38.00,0:04:41.05,Default,,0,0,0,,何度(なんど)も君のもとへ\N【无论几次我都要去你身边】
Dialogue: 0,0:04:41.10,0:04:45.15,Default,,0,0,0,,欲(ほ)しいものなど もう何もない\N【那时我一定别无所求】
Dialogue: 0,0:04:45.20,0:04:52.75,Default,,0,0,0,,君のほかに大切なものなど\N【再也没有什么比你更加重要】
Dialogue: 0,0:04:52.80,0:05:10.95,Default,,0,0,0,,
Dialogue: 0,0:05:11.00,0:05:15.45,Default,,0,0,0,,
Dialogue: 0,0:05:15.50,0:05:25.50,Default,,0,0,0,,--终わり--
+402
View File
@@ -0,0 +1,402 @@
1
00:00:01,500 --> 00:00:03,950
One More Time,One More Chance
愿往事重来
2
00:00:04,000 --> 00:00:05,950
秒速5センチメートル
秒速5厘米
3
00:00:06,000 --> 00:00:08,950
编曲:森俊之
4
00:00:09,000 --> 00:00:11,950
山崎まさよし
山崎将义
5
00:00:12,000 --> 00:00:15,950
6
00:00:16,000 --> 00:00:20,250
これ以上何をう失(し)なえば
还要再失去什么
7
00:00:20,300 --> 00:00:23,250
心は许(ゆる)されるの
才能让心得到宽恕?
8
00:00:23,300 --> 00:00:27,250
どれ程(ほど)の痛(いた)みならば
还要再怎样痛苦
9
00:00:27,300 --> 00:00:30,250
もう一度君に会(あ)える
才能与你再次相见
10
00:00:30,300 --> 00:00:33,250
One more time
11
00:00:33,300 --> 00:00:37,950
季节(きせつ)よ うつろわないで
不愿看到季节的变迁
12
00:00:38,000 --> 00:00:41,050
One more time
13
00:00:41,100 --> 00:00:45,250
ふざけあった时间(じかん)よ
曾与你嬉闹的时光啊
14
00:00:45,300 --> 00:00:49,250
くいちがうときはいつも
每次争执的时候
15
00:00:49,300 --> 00:00:53,100
仆が先(さき)に折(お)れたね
总是我先让步
16
00:00:53,150 --> 00:00:56,250
わがままな性格(せいかく)が
你那任性的性格
17
00:00:56,300 --> 00:00:59,250
なおさら爱(いと)しくさせた
反而令你更加可爱
18
00:00:59,300 --> 00:01:02,950
One more chance
19
00:01:03,000 --> 00:01:07,250
记忆(きおく)に足(あし)を取(と)られて
回忆绊住我的脚步
20
00:01:07,300 --> 00:01:10,250
One more chance
21
00:01:10,300 --> 00:01:14,950
次(つぎ)の场所を选(えら)べない
无法选择下个地方
22
00:01:15,000 --> 00:01:18,250
いつでも捜(さが)しているよ
总是在一直寻觅
23
00:01:18,300 --> 00:01:21,950
どっかに君の姿(すがた)を
寻觅着你的身影
24
00:01:22,000 --> 00:01:23,950
向(むか)いのホーム
对面的月台上
25
00:01:24,000 --> 00:01:25,950
路地裏(ろじうら)の窓(まど)
在小巷的窗口里
26
00:01:26,000 --> 00:01:29,250
こんなとこにいるはずもないのに
尽管明知道你不可能在那里
27
00:01:29,300 --> 00:01:33,250
愿(ねが)いがもしも叶(かな)うなら
若愿望能够实现
28
00:01:33,300 --> 00:01:36,550
いますぐ君のもとへ
好想马上去到你身边
29
00:01:36,600 --> 00:01:40,250
できないことは もう何もない
如今我再也不会有丝毫退缩
30
00:01:40,300 --> 00:01:47,300
すべてかけて抱きしめてみせるよ
我会不顾一切将你紧紧拥抱
31
00:01:47,350 --> 00:01:51,950
32
00:01:52,000 --> 00:01:55,250
33
00:01:55,300 --> 00:01:59,250
寂(さび)しさ纷(まぎ)らすだけなら
如果只是为了排遣寂寞
34
00:01:59,300 --> 00:02:02,950
谁でもいいはずなのに
其实不管是谁都无所谓
35
00:02:03,000 --> 00:02:07,250
星が落(お)ちそうな夜(よる)だから
唯有在星辰仿佛要坠落的夜晚
36
00:02:07,300 --> 00:02:10,250
自分(じぶん)をいつわれない
我无法欺骗自己
37
00:02:10,300 --> 00:02:13,250
One more time
38
00:02:13,300 --> 00:02:17,250
季节(きせつ)よ うつろわないで
不愿看到季节的变迁
39
00:02:17,300 --> 00:02:20,250
One more time
40
00:02:20,300 --> 00:02:24,600
ふざけあった时间(じかん)よ
曾与你嬉闹的时光啊
41
00:02:24,650 --> 00:02:25,250
42
00:02:25,300 --> 00:02:29,050
いつでも捜(さが)しているよ
总是在一直寻觅
43
00:02:29,100 --> 00:02:32,250
どっかに君(きみ)の姿(すがた)を
寻觅着你的身影
44
00:02:32,300 --> 00:02:34,250
交差点(こうさてん)でも
每个十字路口
45
00:02:34,300 --> 00:02:36,250
梦の中でも 每次梦境之中
46
00:02:36,300 --> 00:02:39,950
こんなとこにいるはずもないのに
尽管明知道你不可能在那里
47
00:02:40,000 --> 00:02:43,250
奇迹(きせき)がもしも起(お)こるなら
若奇迹将会发生
48
00:02:43,300 --> 00:02:46,950
今すぐ君に见せたい
我希望马上就能见到你
49
00:02:47,000 --> 00:02:50,250
新しい朝(あさ) これからの仆
无论崭新的清晨 还是今后的自己
50
00:02:50,300 --> 00:02:57,250
言えなかった「好き」という言叶も
或是那句没能说出口的「喜欢你」
51
00:02:57,300 --> 00:03:04,450
52
00:03:04,500 --> 00:03:05,950
53
00:03:06,000 --> 00:03:13,950
夏の想い出がまわる
夏日的回忆在脑海中回旋
54
00:03:14,000 --> 00:03:20,950
ふいに消(き)えた鼓动(こどう)
刹那间消失的悸动
55
00:03:21,000 --> 00:03:24,950
いつでも捜(さが)しているよ
总是在一直寻觅
57
00:03:25,000 --> 00:03:27,950
どっかに君の姿(すがた)を
寻觅着你的身影
58
00:03:28,000 --> 00:03:29,950
明(あ)け方(がた)の街(まち)
在拂晓的街头
59
00:03:30,000 --> 00:03:31,950
桜木町(さくらぎちょう)で
在种满樱树的小镇
60
00:03:32,000 --> 00:03:35,950
こんなとこに来(く)るはずもないのに
尽管明知道你不可能在那里
61
00:03:36,000 --> 00:03:39,250
愿(ねが)いがもしも叶(かな)うなら
若愿望能够实现
62
00:03:39,300 --> 00:03:43,050
今すぐ君のもとへ
现在马上去到你身边
63
00:03:43,100 --> 00:03:46,800
できないことは もう何(なに)もない
如今我再也不会有丝毫退缩
64
00:03:46,850 --> 00:03:50,600
すべてかけて抱きしめてみせるよ
我会不顾一切紧紧将你拥抱
65
00:03:50,650 --> 00:03:54,250
いつでも捜(さが)しているよ
总是在一直寻觅
66
00:03:54,300 --> 00:03:57,700
どっかに君のかけらを
寻觅着你的片断
67
00:03:57,750 --> 00:03:59,250
旅先(たびさき)の店(みせ)
在旅途中的小店
68
00:03:59,300 --> 00:04:01,450
新闻(しんぶん)の隅(すみ)
在报纸的角落
69
00:04:01,500 --> 00:04:04,950
こんなとこにあるはずもないのに
尽管明知道你不可能在那里
70
00:04:05,000 --> 00:04:08,250
奇迹(きせき)がもしも起(お)こるなら
若奇迹将会发生
71
00:04:08,300 --> 00:04:12,250
今すぐ君に见せたい
我希望现在就能见到你
72
00:04:12,300 --> 00:04:16,050
新しい朝(あさ) これからの仆
无论崭新的清晨 还是今后的自己
73
00:04:16,100 --> 00:04:19,400
言えなかった「好き」という言叶も
或是那句没能说出口的「喜欢你」
74
00:04:19,450 --> 00:04:19,950
75
00:04:20,000 --> 00:04:22,950
いつでも捜(さが)してしまう
总是在一直寻觅
76
00:04:23,000 --> 00:04:26,950
どっかに君の笑颜(えがお)を
寻觅着你的笑容
77
00:04:27,000 --> 00:04:30,250
急行(きゅうこう)待ちの 踏切(ふみきり)あたり
哪怕在等待列车通过的铁路道口
78
00:04:30,300 --> 00:04:34,250
こんなとこにいるはずもないのに
虽然明明知道你不可能在那里
79
00:04:34,300 --> 00:04:37,950
命(いのち)が缲(く)り返(かえ)すならば
如果生命能够重来
80
00:04:38,000 --> 00:04:41,050
何度(なんど)も君のもとへ
无论几次我都要去你身边
81
00:04:41,100 --> 00:04:45,150
欲(ほ)しいものなど もう何もない
那时我一定别无所求
82
00:04:45,200 --> 00:04:52,750
君のほかに大切なものなど
再也没有什么比你更加重要
83
00:04:52,800 --> 00:05:10,950
84
00:05:11,000 --> 00:05:15,450
85
00:05:15,500 --> 00:05:25,500
--终わり--
+404
View File
@@ -0,0 +1,404 @@
WEBVTT
1
00:00:01.500 --> 00:00:03.950
歌名:One More Time,One More Chance
愿往事重来
2
00:00:04.000 --> 00:00:05.950
秒速5センチメートル
秒速5厘米
3
00:00:06.000 --> 00:00:08.950
编曲:森俊之
4
00:00:09.000 --> 00:00:11.950
山崎まさよし
山崎将义
5
00:00:12.000 --> 00:00:15.950
6
00:00:16.000 --> 00:00:20.250
これ以上何をう失(し)なえば
还要再失去什么
7
00:00:20.300 --> 00:00:23.250
心は许(ゆる)されるの
才能让心得到宽恕?
8
00:00:23.300 --> 00:00:27.250
どれ程(ほど)の痛(いた)みならば
还要再怎样痛苦
9
00:00:27.300 --> 00:00:30.250
もう一度君に会(あ)える
才能与你再次相见
10
00:00:30.300 --> 00:00:33.250
One more time
11
00:00:33.300 --> 00:00:37.950
季节(きせつ)よ うつろわないで
不愿看到季节的变迁
12
00:00:38.000 --> 00:00:41.050
One more time
13
00:00:41.100 --> 00:00:45.250
ふざけあった时间(じかん)よ
曾与你嬉闹的时光啊
14
00:00:45.300 --> 00:00:49.250
くいちがうときはいつも
每次争执的时候
15
00:00:49.300 --> 00:00:53.100
仆が先(さき)に折(お)れたね
总是我先让步
16
00:00:53.150 --> 00:00:56.250
わがままな性格(せいかく)が
你那任性的性格
17
00:00:56.300 --> 00:00:59.250
なおさら爱(いと)しくさせた
反而令你更加可爱
18
00:00:59.300 --> 00:01:02.950
One more chance
19
00:01:03.000 --> 00:01:07.250
记忆(きおく)に足(あし)を取(と)られて
回忆绊住我的脚步
20
00:01:07.300 --> 00:01:10.250
One more chance
21
00:01:10.300 --> 00:01:14.950
次(つぎ)の场所を选(えら)べない
无法选择下个地方
22
00:01:15.000 --> 00:01:18.250
いつでも捜(さが)しているよ
总是在一直寻觅
23
00:01:18.300 --> 00:01:21.950
どっかに君の姿(すがた)を
寻觅着你的身影
24
00:01:22.000 --> 00:01:23.950
向(むか)いのホーム
对面的月台上
25
00:01:24.000 --> 00:01:25.950
路地裏(ろじうら)の窓(まど)
在小巷的窗口里
26
00:01:26.000 --> 00:01:29.250
こんなとこにいるはずもないのに
尽管明知道你不可能在那里
27
00:01:29.300 --> 00:01:33.250
愿(ねが)いがもしも叶(かな)うなら
若愿望能够实现
28
00:01:33.300 --> 00:01:36.550
いますぐ君のもとへ
好想马上去到你身边
29
00:01:36.600 --> 00:01:40.250
できないことは もう何もない
如今我再也不会有丝毫退缩
30
00:01:40.300 --> 00:01:47.300
すべてかけて抱きしめてみせるよ
我会不顾一切将你紧紧拥抱
31
00:01:47.350 --> 00:01:51.950
32
00:01:52.000 --> 00:01:55.250
33
00:01:55.300 --> 00:01:59.250
寂(さび)しさ纷(まぎ)らすだけなら
如果只是为了排遣寂寞
34
00:01:59.300 --> 00:02:02.950
谁でもいいはずなのに
其实不管是谁都无所谓
35
00:02:03.000 --> 00:02:07.250
星が落(お)ちそうな夜(よる)だから
唯有在星辰仿佛要坠落的夜晚
36
00:02:07.300 --> 00:02:10.250
自分(じぶん)をいつわれない
我无法欺骗自己
37
00:02:10.300 --> 00:02:13.250
One more time
38
00:02:13.300 --> 00:02:17.250
季节(きせつ)よ うつろわないで
不愿看到季节的变迁
39
00:02:17.300 --> 00:02:20.250
One more time
40
00:02:20.300 --> 00:02:24.600
ふざけあった时间(じかん)よ
曾与你嬉闹的时光啊
41
00:02:24.650 --> 00:02:25.250
42
00:02:25.300 --> 00:02:29.050
いつでも捜(さが)しているよ
总是在一直寻觅
43
00:02:29.100 --> 00:02:32.250
どっかに君(きみ)の姿(すがた)を
寻觅着你的身影
44
00:02:32.300 --> 00:02:34.250
交差点(こうさてん)でも
每个十字路口
45
00:02:34.300 --> 00:02:36.250
梦の中でも 每次梦境之中
46
00:02:36.300 --> 00:02:39.950
こんなとこにいるはずもないのに
尽管明知道你不可能在那里
47
00:02:40.000 --> 00:02:43.250
奇迹(きせき)がもしも起(お)こるなら
若奇迹将会发生
48
00:02:43.300 --> 00:02:46.950
今すぐ君に见せたい
我希望马上就能见到你
49
00:02:47.000 --> 00:02:50.250
新しい朝(あさ) これからの仆
无论崭新的清晨 还是今后的自己
50
00:02:50.300 --> 00:02:57.250
言えなかった「好き」という言叶も
或是那句没能说出口的「喜欢你」
51
00:02:57.300 --> 00:03:04.450
52
00:03:04.500 --> 00:03:05.950
53
00:03:06.000 --> 00:03:13.950
夏の想い出がまわる
夏日的回忆在脑海中回旋
54
00:03:14.000 --> 00:03:20.950
ふいに消(き)えた鼓动(こどう)
刹那间消失的悸动
55
00:03:21.000 --> 00:03:24.950
いつでも捜(さが)しているよ
总是在一直寻觅
56
00:03:25.000 --> 00:03:27.950
どっかに君の姿(すがた)を
寻觅着你的身影
57
00:03:28.000 --> 00:03:29.950
明(あ)け方(がた)の街(まち)
在拂晓的街头
58
00:03:30.000 --> 00:03:31.950
桜木町(さくらぎちょう)で
在种满樱树的小镇
59
00:03:32.000 --> 00:03:35.950
こんなとこに来(く)るはずもないのに
尽管明知道你不可能在那里
60
00:03:36.000 --> 00:03:39.250
愿(ねが)いがもしも叶(かな)うなら
若愿望能够实现
61
00:03:39.300 --> 00:03:43.050
今すぐ君のもとへ
现在马上去到你身边
62
00:03:43.100 --> 00:03:46.800
できないことは もう何(なに)もない
如今我再也不会有丝毫退缩
63
00:03:46.850 --> 00:03:50.600
すべてかけて抱きしめてみせるよ
我会不顾一切紧紧将你拥抱
64
00:03:50.650 --> 00:03:54.250
いつでも捜(さが)しているよ
总是在一直寻觅
65
00:03:54.300 --> 00:03:57.700
どっかに君のかけらを
寻觅着你的片断
66
00:03:57.750 --> 00:03:59.250
旅先(たびさき)の店(みせ)
在旅途中的小店
67
00:03:59.300 --> 00:04:01.450
新闻(しんぶん)の隅(すみ)
在报纸的角落
68
00:04:01.500 --> 00:04:04.950
こんなとこにあるはずもないのに
尽管明知道你不可能在那里
69
00:04:05.000 --> 00:04:08.250
奇迹(きせき)がもしも起(お)こるなら
若奇迹将会发生
70
00:04:08.300 --> 00:04:12.250
今すぐ君に见せたい
我希望现在就能见到你
71
00:04:12.300 --> 00:04:16.050
新しい朝(あさ) これからの仆
无论崭新的清晨 还是今后的自己
72
00:04:16.100 --> 00:04:19.400
言えなかった「好き」という言叶も
或是那句没能说出口的「喜欢你」
73
00:04:19.450 --> 00:04:19.950
74
00:04:20.000 --> 00:04:22.950
いつでも捜(さが)してしまう
总是在一直寻觅
75
00:04:23.000 --> 00:04:26.950
どっかに君の笑颜(えがお)を
寻觅着你的笑容
76
00:04:27.000 --> 00:04:30.250
急行(きゅうこう)待ちの 踏切(ふみきり)あたり
哪怕在等待列车通过的铁路道口
77
00:04:30.300 --> 00:04:34.250
こんなとこにいるはずもないのに
虽然明明知道你不可能在那里
78
00:04:34.300 --> 00:04:37.950
命(いのち)が缲(く)り返(かえ)すならば
如果生命能够重来
79
00:04:38.000 --> 00:04:41.050
何度(なんど)も君のもとへ
无论几次我都要去你身边
80
00:04:41.100 --> 00:04:45.150
欲(ほ)しいものなど もう何もない
那时我一定别无所求
81
00:04:45.200 --> 00:04:52.750
君のほかに大切なものなど
再也没有什么比你更加重要
82
00:04:52.800 --> 00:05:10.950
83
00:05:11.000 --> 00:05:15.450
84
00:05:15.500 --> 00:05:25.500
--终わり--
Binary file not shown.

After

Width:  |  Height:  |  Size: 753 KiB

Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large. Load diff
-1334
View File
File diff suppressed because it is too large. Load diff
-36
View File
@@ -1,36 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>ArtPlayer Document</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta name="keywords" content="artplayer,html5,video,player">
<meta name="description" content="ArtPlayer is a modern HTML5 video player">
<link rel="shortcut icon" href="./favicon.ico">
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css">
</head>
<body>
<div id="app"></div>
<script src="./runCode.js"></script>
<script>
window.$docsify = {
name: 'ArtPlayer',
repo: 'zhw2590582/ArtPlayer',
maxLevel: 4,
subMaxLevel: 2,
plugins: [window.runCode]
}
</script>
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?b6c9b8bafbf5fe7225160101dafbbc7d";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>
-23
View File
@@ -1,23 +0,0 @@
window.runCode = function(hook) {
hook.ready(function() {
Array.from(document.querySelectorAll('.markdown-section a'))
.filter(function(item) {
return item.innerHTML === 'Run Code';
})
.forEach(function(item) {
item.addEventListener('click', function(event) {
event.preventDefault();
var codeElement = item.parentElement.nextElementSibling;
if (
codeElement.tagName === 'PRE' &&
codeElement.dataset.lang === 'js'
) {
var libs = item.href.split('/lib=')[1] || '';
var code = encodeURIComponent(codeElement.innerText);
var url = 'https://artplayer.org/lab/?libs=' + libs + '&code=' + code;
window.open(url);
}
});
});
});
};
File renamed without changes.
+17
View File
@@ -0,0 +1,17 @@
<!doctype html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="generator" content="Docusaurus v2.0.0-beta.9">
<title data-react-helmet="true">Page Not Found | Artplayer.js</title><meta data-react-helmet="true" property="og:title" content="Page Not Found | Artplayer.js"><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:url" content="https://artplayer.org/document/404.html"><meta data-react-helmet="true" name="docusaurus_locale" content="en"><meta data-react-helmet="true" name="docusaurus_tag" content="default"><link data-react-helmet="true" rel="shortcut icon" href="/document/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://artplayer.org/document/404.html"><link data-react-helmet="true" rel="alternate" href="https://artplayer.org/document/404.html" hreflang="en"><link data-react-helmet="true" rel="alternate" href="https://artplayer.org/document/404.html" hreflang="x-default"><link rel="stylesheet" href="/document/assets/css/styles.f21e1cf1.css">
<link rel="preload" href="/document/assets/js/runtime~main.32512733.js" as="script">
<link rel="preload" href="/document/assets/js/main.57814af2.js" as="script">
</head>
<body>
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}()</script><div id="__docusaurus">
<div><a href="#" class="skipToContent_OuoZ">Skip to main content</a></div><nav class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Navigation bar toggle" class="navbar__toggle clean-btn" type="button" tabindex="0"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/document/"><b class="navbar__title">Artplayer.js</b></a><a href="https://artplayer.org" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Online Editor<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a><a href="https://artplayer.org/?libs=.%2Funcompiled%2Fartplayer-plugin-danmuku.js&amp;example=danmuku" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Danmuku Demo<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a><a href="https://github.com/zhw2590582/ArtPlayer" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Github<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a></div><div class="navbar__items navbar__items--right"><a href="#" class="navbar__item navbar__link">QQ群: 320881312</a><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a class="navbar__link">v 4.x.x</a><ul class="dropdown__menu"><li><a href="https://artplayer.org/document_v3/" target="_blank" rel="noopener noreferrer" class="dropdown__link"><span>v 3.x.x<svg width="12" height="12" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a></li></ul></div><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a class="navbar__link">English</a><ul class="dropdown__menu"><li><a class="dropdown__link" href="/document/">English</a></li><li><a class="dropdown__link" href="/document/zh-cn/">中文</a></li></ul></div><div class="toggle_iYfV toggle_2i4l toggleDisabled_xj38"><div class="toggleTrack_t-f2" role="button" tabindex="-1"><div class="toggleTrackCheck_mk7D"><span class="toggleIcon_pHJ9">🌜</span></div><div class="toggleTrackX_dm8H"><span class="toggleIcon_pHJ9">🌞</span></div><div class="toggleTrackThumb_W6To"></div></div><input type="checkbox" class="toggleScreenReader_h9qa" aria-label="Switch between dark and light mode"></div><div class="navbar__search"><span aria-label="expand searchbar" role="button" class="search-icon" tabindex="0"></span><input type="search" id="search_input_react" placeholder="Search" aria-label="Search" class="navbar__search-input search-bar"></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div class="main-wrapper"><main class="container margin-vert--xl"><div class="row"><div class="col col--6 col--offset-3"><h1 class="hero__title">Page Not Found</h1><p>We could not find what you were looking for.</p><p>Please contact the owner of the site that linked you to the original URL and let them know their link is broken.</p></div></div></main></div><footer class="footer footer--dark"><div class="container"><div class="footer__bottom text--center"><div class="footer__copyright">Copyright © 2021 Artplayer.js, Inc. Built with Docusaurus.</div></div></div></footer></div>
<script src="/document/assets/js/runtime~main.32512733.js"></script>
<script src="/document/assets/js/main.57814af2.js"></script>
</body>
</html>
+17
View File
@@ -0,0 +1,17 @@
<!doctype html>
<html class="docs-version-current" lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="generator" content="Docusaurus v2.0.0-beta.9">
<title data-react-helmet="true">Advanced propertys | Artplayer.js</title><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:url" content="https://artplayer.org/document/advance"><meta data-react-helmet="true" name="docusaurus_locale" content="en"><meta data-react-helmet="true" name="docusaurus_version" content="current"><meta data-react-helmet="true" name="docusaurus_tag" content="docs-default-current"><meta data-react-helmet="true" property="og:title" content="Advanced propertys | Artplayer.js"><meta data-react-helmet="true" name="description" content="This page is some additional supplements to the commonly used properties, you need to read in depth to develop custom functions."><meta data-react-helmet="true" property="og:description" content="This page is some additional supplements to the commonly used properties, you need to read in depth to develop custom functions."><link data-react-helmet="true" rel="shortcut icon" href="/document/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://artplayer.org/document/advance"><link data-react-helmet="true" rel="alternate" href="https://artplayer.org/document/advance" hreflang="en"><link data-react-helmet="true" rel="alternate" href="https://artplayer.org/document/advance" hreflang="x-default"><link rel="stylesheet" href="/document/assets/css/styles.f21e1cf1.css">
<link rel="preload" href="/document/assets/js/runtime~main.32512733.js" as="script">
<link rel="preload" href="/document/assets/js/main.57814af2.js" as="script">
</head>
<body>
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}()</script><div id="__docusaurus">
<div><a href="#" class="skipToContent_OuoZ">Skip to main content</a></div><nav class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Navigation bar toggle" class="navbar__toggle clean-btn" type="button" tabindex="0"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/document/"><b class="navbar__title">Artplayer.js</b></a><a href="https://artplayer.org" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Online Editor<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a><a href="https://artplayer.org/?libs=.%2Funcompiled%2Fartplayer-plugin-danmuku.js&amp;example=danmuku" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Danmuku Demo<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a><a href="https://github.com/zhw2590582/ArtPlayer" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Github<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a></div><div class="navbar__items navbar__items--right"><a href="#" class="navbar__item navbar__link">QQ群: 320881312</a><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a class="navbar__link">v 4.x.x</a><ul class="dropdown__menu"><li><a href="https://artplayer.org/document_v3/" target="_blank" rel="noopener noreferrer" class="dropdown__link"><span>v 3.x.x<svg width="12" height="12" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a></li></ul></div><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a class="navbar__link">English</a><ul class="dropdown__menu"><li><a class="dropdown__link" href="/document/">English</a></li><li><a class="dropdown__link" href="/document/zh-cn/">中文</a></li></ul></div><div class="toggle_iYfV toggle_2i4l toggleDisabled_xj38"><div class="toggleTrack_t-f2" role="button" tabindex="-1"><div class="toggleTrackCheck_mk7D"><span class="toggleIcon_pHJ9">🌜</span></div><div class="toggleTrackX_dm8H"><span class="toggleIcon_pHJ9">🌞</span></div><div class="toggleTrackThumb_W6To"></div></div><input type="checkbox" class="toggleScreenReader_h9qa" aria-label="Switch between dark and light mode"></div><div class="navbar__search"><span aria-label="expand searchbar" role="button" class="search-icon" tabindex="0"></span><input type="search" id="search_input_react" placeholder="Search" aria-label="Search" class="navbar__search-input search-bar"></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div class="main-wrapper docs-wrapper docs-doc-page"><div class="docPage_lDyR"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_i9tI" type="button"></button><aside class="docSidebarContainer_0YBq"><div class="sidebar_a3j0"><nav class="menu thin-scrollbar menu_cyFh"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/">Quick start</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/options">Basic options</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/propertie">Common properties</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" href="/document/advance">Advanced propertys</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/class">Static propertys</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/events">Common events</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__Line truncated
<script src="/document/assets/js/runtime~main.32512733.js"></script>
<script src="/document/assets/js/main.57814af2.js"></script>
</body>
</html>
@@ -0,0 +1 @@
.container,.row .col{padding:0 var(--ifm-spacing-horizontal);width:100%}.row .col,img{max-width:100%}.markdown>h2,.markdown>h3,.markdown>h4,.markdown>h5,.markdown>h6{margin-bottom:calc(var(--ifm-heading-vertical-rhythm-bottom)*var(--ifm-leading))}body,ol ol,ol ul,ul ol,ul ul{margin:0}blockquote,pre{margin:0 0 var(--ifm-spacing-vertical)}.breadcrumbs__link,.button{transition-timing-function:var(--ifm-transition-timing-default)}.button,.toggle_iYfV{-webkit-user-select:none;-ms-user-select:none}.button,code{vertical-align:middle}.button--outline.button--active,.button--outline:active,.button--outline:hover,:root{--ifm-button-color:var(--ifm-font-color-base-inverse)}.avatar__photo,.card,.text--truncate{overflow:hidden}.navbar__title,.text--truncate{text-overflow:ellipsis;white-space:nowrap}.navbar--dark,:root{--ifm-navbar-link-hover-color:var(--ifm-color-primary)}.menu,.navbar-sidebar{overflow-x:hidden}:root,html[data-theme=dark]{--ifm-color-emphasis-500:var(--ifm-color-gray-500)}.admonition-icon svg,.alert__icon svg{fill:var(--ifm-alert-foreground-color)}.toggle_iYfV,html{-webkit-tap-highlight-color:transparent}.button,.dropdown__link,.navbar__title,.searchbox,.text--truncate{white-space:nowrap}.searchbox__reset:focus,.searchbox__submit:focus,body:not(.navigation-with-keyboard) :not(input):focus{outline:0}pre,table{overflow:auto}.markdown li,body{word-wrap:break-word}:root{--ifm-color-scheme:light;--ifm-dark-value:10%;--ifm-darker-value:15%;--ifm-darkest-value:30%;--ifm-light-value:15%;--ifm-lighter-value:30%;--ifm-lightest-value:50%;--ifm-contrast-background-value:90%;--ifm-contrast-foreground-value:70%;--ifm-contrast-background-dark-value:70%;--ifm-contrast-foreground-dark-value:90%;--ifm-color-primary:#3578e5;--ifm-color-secondary:#ebedf0;--ifm-color-success:#00a400;--ifm-color-info:#54c7ec;--ifm-color-warning:#ffba00;--ifm-color-danger:#fa383e;--ifm-color-primary-dark:#306cce;--ifm-color-primary-darker:#2d66c3;--ifm-color-primary-darkest:#2554a0;--ifm-color-primary-light:#538ce9;--ifm-color-primary-lighter:#72a1ed;--ifm-color-primary-lightest:#9abcf2;--ifm-color-primary-contrast-background:#ebf2fc;--ifm-color-primary-contrast-foreground:#102445;--ifm-color-secondary-dark:#d4d5d8;--ifm-color-secondary-darker:#c8c9cc;--ifm-color-secondary-darkest:#a4a6a8;--ifm-color-secondary-light:#eef0f2;--ifm-color-secondary-lighter:#f1f2f5;--ifm-color-secondary-lightest:#f5f6f8;--ifm-color-secondary-contrast-background:#fdfdfe;--ifm-color-secondary-contrast-foreground:#474748;--ifm-color-success-dark:#009400;--ifm-color-success-darker:#008b00;--ifm-color-success-darkest:#007300;--ifm-color-success-light:#26b226;--ifm-color-success-lighter:#4dbf4d;--ifm-color-success-lightest:#80d280;--ifm-color-success-contrast-background:#e6f6e6;--ifm-color-success-contrast-foreground:#003100;--ifm-color-info-dark:#4cb3d4;--ifm-color-info-darker:#47a9c9;--ifm-color-info-darkest:#3b8ba5;--ifm-color-info-light:#6ecfef;--ifm-color-info-lighter:#87d8f2;--ifm-color-info-lightest:#aae3f6;--ifm-color-info-contrast-background:#eef9fd;--ifm-color-info-contrast-foreground:#193c47;--ifm-color-warning-dark:#e6a700;--ifm-color-warning-darker:#d99e00;--ifm-color-warning-darkest:#b38200;--ifm-color-warning-light:#ffc426;--ifm-color-warning-lighter:#ffcf4d;--ifm-color-warning-lightest:#ffdd80;--ifm-color-warning-contrast-background:#fff8e6;--ifm-color-warning-contrast-foreground:#4d3800;--ifm-color-danger-dark:#e13238;--ifm-color-danger-darker:#d53035;--ifm-color-danger-darkest:#af272b;--ifm-color-danger-light:#fb565b;--ifm-color-danger-lighter:#fb7478;--ifm-color-danger-lightest:#fd9c9f;--ifm-color-danger-contrast-background:#ffebec;--ifm-color-danger-contrast-foreground:#4b1113;--ifm-color-white:#fff;--ifm-color-black:#000;--ifm-color-gray-0:var(--ifm-color-white);--ifm-color-gray-100:#f5f6f7;--ifm-color-gray-200:#ebedf0;--ifm-color-gray-300:#dadde1;--ifm-color-gray-400:#ccd0d5;--ifm-color-gray-500:#bec3c9;--ifm-color-gray-600:#8d949e;--ifm-color-gray-700:#606770;--ifm-color-gray-800:#444950;--ifm-color-gray-900:#1c1e21;--ifm-color-gray-1000:var(--ifm-color-black);--ifm-color-emphasis-0:var(--ifm-color-gray-0);--ifm-color-emphasis-100:var(--ifm-color-gray-100);--ifm-color-emphasis-200:var(--ifm-color-gray-200);--ifm-color-emphasis-300:var(--ifm-color-gray-300);--ifm-color-emphasis-400:var(--ifm-color-gray-400);--ifm-color-emphasis-600:var(--ifm-color-gray-600);--ifm-color-emphasis-700:var(--ifm-color-gray-700);--ifm-color-emphasis-800:var(--ifm-color-gray-800);--ifm-color-emphasis-900:var(--ifm-color-gray-900);--ifm-color-emphasis-1000:var(--ifm-color-gray-1000);--ifm-color-content:var(--ifm-color-emphasis-900);--ifm-color-content-inverse:var(--ifm-color-emphasis-0);--ifm-color-content-secondary:#525860;--ifm-background-color:transparent;--ifm-background-surface-color:var(--ifm-color-content-inverse);--ifm-global-border-width:1px;--ifm-global-radius:0.4rem;--ifm-hover-overlay:rgba(0,0,0,.05);--ifm-font-color-base:var(--ifm-color-content);--ifm-font-Line truncated
@@ -0,0 +1 @@
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[176],{3905:function(e,n,t){t.d(n,{Zo:function(){return c},kt:function(){return u}});var a=t(7294);function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){r(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function o(e,n){if(null==e)return{};var t,a,r=function(e,n){if(null==e)return{};var t,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)t=i[a],n.indexOf(t)>=0||(r[t]=e[t]);return r}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)t=i[a],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}var s=a.createContext({}),p=function(e){var n=a.useContext(s),t=n;return e&&(t="function"==typeof e?e(n):l(l({},n),e)),t},c=function(e){var n=p(e.components);return a.createElement(s.Provider,{value:n},e.children)},d={inlineCode:"code",wrapper:function(e){var n=e.children;return a.createElement(a.Fragment,{},n)}},m=a.forwardRef((function(e,n){var t=e.components,r=e.mdxType,i=e.originalType,s=e.parentName,c=o(e,["components","mdxType","originalType","parentName"]),m=p(t),u=r,h=m["".concat(s,".").concat(u)]||m[u]||d[u]||i;return t?a.createElement(h,l(l({ref:n},c),{},{components:t})):a.createElement(h,l({ref:n},c))}));function u(e,n){var t=arguments,r=n&&n.mdxType;if("string"==typeof e||r){var i=t.length,l=new Array(i);l[0]=m;var o={};for(var s in n)hasOwnProperty.call(n,s)&&(o[s]=n[s]);o.originalType=e,o.mdxType="string"==typeof e?e:r,l[1]=o;for(var p=2;p<i;p++)l[p]=t[p];return a.createElement.apply(null,l)}return a.createElement.apply(null,t)}m.displayName="MDXCreateElement"},1418:function(e,n,t){t.r(n),t.d(n,{frontMatter:function(){return o},contentTitle:function(){return s},metadata:function(){return p},toc:function(){return c},default:function(){return m}});var a=t(7462),r=t(3366),i=(t(7294),t(3905)),l=["components"],o={title:"Quick start",sidebar_position:1,slug:"/"},s=void 0,p={unversionedId:"en/Overview",id:"en/Overview",isDocsHomePage:!1,title:"Quick start",description:"Install",source:"@site/docs/en/Overview.md",sourceDirName:"en",slug:"/",permalink:"/document/",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"Quick start",sidebar_position:1,slug:"/"},sidebar:"en",next:{title:"Basic options",permalink:"/document/options"}},c=[{value:"Install",id:"install",children:[{value:"Install by <code>npm</code>:",id:"install-by-npm",children:[],level:3},{value:"Install by <code>yarn</code>:",id:"install-by-yarn",children:[],level:3},{value:"Install by <code>script</code>:",id:"install-by-script",children:[],level:3}],level:2},{value:"Use",id:"use",children:[{value:"Use in <code>Html</code>",id:"use-in-html",children:[],level:3},{value:"Use in <code>Vue</code>",id:"use-in-vue",children:[],level:3},{value:"Use in <code>React</code>",id:"use-in-react",children:[],level:3}],level:2},{value:"Demo",id:"demo",children:[],level:2}],d={toc:c};function m(e){var n=e.components,t=(0,r.Z)(e,l);return(0,i.kt)("wrapper",(0,a.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,i.kt)("h2",{id:"install"},"Install"),(0,i.kt)("h3",{id:"install-by-npm"},"Install by ",(0,i.kt)("inlineCode",{parentName:"h3"},"npm"),":"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-bash"},"$ npm install artplayer\n")),(0,i.kt)("h3",{id:"install-by-yarn"},"Install by ",(0,i.kt)("inlineCode",{parentName:"h3"},"yarn"),":"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-bash"},"$ yarn add artplayer\n")),(0,i.kt)("p",null,"Then load the ",(0,i.kt)("inlineCode",{parentName:"p"},"Artplayer")," module:"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"// ES6\nimport Artplayer from 'artplayer';\n\n// CommonJS\nconst Artplayer = require('artplayer');\n")),(0,i.kt)("h3",{id:"install-by-script"},"Install by ",(0,i.kt)("inlineCode",{parentName:"h3"},"script"),":"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-html"},'\x3c!-- locally --\x3e\n<script src="path/to/artplayer.js"><\/script>\n\n\x3c!-- jsdelivr --\x3e\n<script src="https://cdn.jsdelivr.net/npm/artplayer/dist/artplayer.js"><\/script>\n\n\x3c!-- unpkg --\x3e\n<script src="https://unpkg.com/artplayer/dist/artplayer.js"><\/script>\n')),(0,i.kt)("p",null,"Then you can access the constructor via ",(0,i.kt)("inlineCode",{parentName:"p"},"window.Line truncated
@@ -0,0 +1 @@
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[941],{3905:function(e,t,n){n.d(t,{Zo:function(){return d},kt:function(){return c}});var a=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var p=a.createContext({}),s=function(e){var t=a.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},d=function(e){var t=s(e.components);return a.createElement(p.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},m=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,p=e.parentName,d=o(e,["components","mdxType","originalType","parentName"]),m=s(n),c=r,k=m["".concat(p,".").concat(c)]||m[c]||u[c]||l;return n?a.createElement(k,i(i({ref:t},d),{},{components:n})):a.createElement(k,i({ref:t},d))}));function c(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,i=new Array(l);i[0]=m;var o={};for(var p in t)hasOwnProperty.call(t,p)&&(o[p]=t[p]);o.originalType=e,o.mdxType="string"==typeof e?e:r,i[1]=o;for(var s=2;s<l;s++)i[s]=n[s];return a.createElement.apply(null,i)}return a.createElement.apply(null,n)}m.displayName="MDXCreateElement"},7498:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return o},contentTitle:function(){return p},metadata:function(){return s},toc:function(){return d},default:function(){return m}});var a=n(7462),r=n(3366),l=(n(7294),n(3905)),i=["components"],o={title:"Common properties",sidebar_position:3,slug:"/propertie"},p=void 0,s={unversionedId:"en/Properties",id:"en/Properties",isDocsHomePage:!1,title:"Common properties",description:"play",source:"@site/docs/en/Properties.md",sourceDirName:"en",slug:"/propertie",permalink:"/document/propertie",tags:[],version:"current",sidebarPosition:3,frontMatter:{title:"Common properties",sidebar_position:3,slug:"/propertie"},sidebar:"en",previous:{title:"Basic options",permalink:"/document/options"},next:{title:"Advanced propertys",permalink:"/document/advance"}},d=[{value:"play",id:"play",children:[],level:2},{value:"pause",id:"pause",children:[],level:2},{value:"toggle",id:"toggle",children:[],level:2},{value:"seek",id:"seek",children:[],level:2},{value:"forward",id:"forward",children:[],level:2},{value:"backward",id:"backward",children:[],level:2},{value:"volume",id:"volume",children:[],level:2},{value:"url",id:"url",children:[],level:2},{value:"switchUrl",id:"switchurl",children:[],level:2},{value:"switchQuality",id:"switchquality",children:[],level:2},{value:"muted",id:"muted",children:[],level:2},{value:"currentTime",id:"currenttime",children:[],level:2},{value:"duration",id:"duration",children:[],level:2},{value:"screenshot",id:"screenshot",children:[],level:2},{value:"getDataURL",id:"getdataurl",children:[],level:2},{value:"getBlobUrl",id:"getbloburl",children:[],level:2},{value:"fullscreen",id:"fullscreen",children:[],level:2},{value:"fullscreenWeb",id:"fullscreenweb",children:[],level:2},{value:"pip",id:"pip",children:[],level:2},{value:"poster",id:"poster",children:[],level:2},{value:"mini",id:"mini",children:[],level:2},{value:"playing",id:"playing",children:[],level:2},{value:"autoSize",id:"autosize",children:[],level:2},{value:"rect",id:"rect",children:[],level:2},{value:"flip",id:"flip",children:[],level:2},{value:"rotate",id:"rotate",children:[],level:2},{value:"playbackRate",id:"playbackrate",children:[],level:2},{value:"aspectRatio",id:"aspectratio",children:[],level:2},{value:"loop",id:"loop",children:[],level:2},{value:"destroy",id:"destroy",children:[],level:2}],u={toc:d};function m(e){var t=e.components,n=(0,r.Z)(e,i);return(0,l.kt)("wrapper",(0,a.Z)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("h2",{id:"play"},"play"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Type: ",(0,l.kt)("inlineCode",{parentName:"li"},"Function"))),(0,l.kt)("p",null,"Play video"),(0,l.kt)("div",{className:"run-code"},"\u25b6 Run Code"),(0,l.kt)("pre",nuLine truncated
@@ -0,0 +1 @@
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[918],{5732:function(e,t,a){a.r(t),a.d(t,{default:function(){return $}});var n=a(7294),l=a(6010),i=a(3783),r=a(9960),s=a(5999);var o=function(e){var t=e.metadata;return n.createElement("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,s.I)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages navigation",description:"The ARIA label for the docs pagination"})},n.createElement("div",{className:"pagination-nav__item"},t.previous&&n.createElement(r.Z,{className:"pagination-nav__link",to:t.previous.permalink},n.createElement("div",{className:"pagination-nav__sublabel"},n.createElement(s.Z,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc"},"Previous")),n.createElement("div",{className:"pagination-nav__label"},"\xab ",t.previous.title))),n.createElement("div",{className:"pagination-nav__item pagination-nav__item--next"},t.next&&n.createElement(r.Z,{className:"pagination-nav__link",to:t.next.permalink},n.createElement("div",{className:"pagination-nav__sublabel"},n.createElement(s.Z,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc"},"Next")),n.createElement("div",{className:"pagination-nav__label"},t.next.title," \xbb"))))},c=a(2263),d=a(907),m=a(2822);var u={unreleased:function(e){var t=e.siteTitle,a=e.versionMetadata;return n.createElement(s.Z,{id:"theme.docs.versions.unreleasedVersionLabel",description:"The label used to tell the user that he's browsing an unreleased doc version",values:{siteTitle:t,versionLabel:n.createElement("b",null,a.label)}},"This is unreleased documentation for {siteTitle} {versionLabel} version.")},unmaintained:function(e){var t=e.siteTitle,a=e.versionMetadata;return n.createElement(s.Z,{id:"theme.docs.versions.unmaintainedVersionLabel",description:"The label used to tell the user that he's browsing an unmaintained doc version",values:{siteTitle:t,versionLabel:n.createElement("b",null,a.label)}},"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.")}};function v(e){var t=u[e.versionMetadata.banner];return n.createElement(t,e)}function g(e){var t=e.versionLabel,a=e.to,l=e.onClick;return n.createElement(s.Z,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:n.createElement("b",null,n.createElement(r.Z,{to:a,onClick:l},n.createElement(s.Z,{id:"theme.docs.versions.latestVersionLinkLabel",description:"The label used for the latest version suggestion link label"},"latest version")))}},"For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).")}function p(e){var t,a=e.versionMetadata,i=(0,c.Z)().siteConfig.title,r=(0,d.gA)({failfast:!0}).pluginId,s=(0,m.J)(r).savePreferredVersionName,o=(0,d.Jo)(r),u=o.latestDocSuggestion,p=o.latestVersionSuggestion,h=null!=u?u:(t=p).docs.find((function(e){return e.id===t.mainDocId}));return n.createElement("div",{className:(0,l.Z)(m.kM.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert"},n.createElement("div",null,n.createElement(v,{siteTitle:i,versionMetadata:a})),n.createElement("div",{className:"margin-top--md"},n.createElement(g,{versionLabel:p.label,to:h.path,onClick:function(){return s(p.name)}})))}var h=function(e){var t=e.versionMetadata;return t.banner?n.createElement(p,{versionMetadata:t}):n.createElement(n.Fragment,null)},E=a(1217);function b(e){var t=e.lastUpdatedAt,a=e.formattedLastUpdatedAt;return n.createElement(s.Z,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:n.createElement("b",null,n.createElement("time",{dateTime:new Date(1e3*t).toISOString()},a))}}," on {date}")}function f(e){var t=e.lastUpdatedBy;return n.createElement(s.Z,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:n.createElement("b",null,t)}}," by {user}")}function N(e){var t=e.lastUpdatedAt,a=e.formattedLastUpdatedAt,l=e.lastUpdatedBy;return n.createElement("span",{className:m.kM.common.lastUpdated},n.createElement(s.Z,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:t&&a?n.createElement(b,{lastUpdatedAt:t,formattedLastUpdatedAt:a}):"",byUser:l?n.createElement(f,{lastUpdatedBy:l}):""}},"Last updated{atDate}{byUser}"),!1)}var k=a(7462),_=a(3366),L="iconEdit_mS5F",Z=["className"],U=function(e){var t=e.className,a=(0,_.Z)(e,Z);return n.createElement("svg",(0,k.Z)({fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,l.Z)(L,t),"aria-hidden":"true"},a),n.createElement("g",null,n.createElement("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 Line truncated
@@ -0,0 +1 @@
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[514,979],{6979:function(e,a,n){var r=n(7294),c=n(4184),t=n.n(c),s=n(6775),l=n(2263),u=n(8084);a.Z=function(e){var a=(0,r.useRef)(!1),c=(0,r.useRef)(null),h=(0,s.k6)(),o=(0,l.Z)().siteConfig,i=(void 0===o?{}:o).baseUrl,d=(0,u.usePluginData)("docusaurus-lunr-search"),f=function(){a.current||(Promise.all([fetch(""+i+d.fileNames.searchDoc).then((function(e){return e.json()})),fetch(""+i+d.fileNames.lunrIndex).then((function(e){return e.json()})),Promise.all([n.e(878),n.e(245)]).then(n.bind(n,4130)),Promise.all([n.e(532),n.e(343)]).then(n.bind(n,3343))]).then((function(e){var a=e[0],n=e[1],r=e[2].default;0!==a.length&&function(e,a,n){new n({searchDocs:e,searchIndex:a,inputSelector:"#search_input_react",handleSelected:function(e,a,n){var r=i+n.url;document.createElement("a").href=r,h.push(r)}})}(a,n,r)})),a.current=!0)},p=(0,r.useCallback)((function(a){c.current.contains(a.target)||c.current.focus(),e.handleSearchBarToggle&&e.handleSearchBarToggle(!e.isSearchBarExpanded)}),[e.isSearchBarExpanded]);return r.createElement("div",{className:"navbar__search",key:"search-box"},r.createElement("span",{"aria-label":"expand searchbar",role:"button",className:t()("search-icon",{"search-icon-hidden":e.isSearchBarExpanded}),onClick:p,onKeyDown:p,tabIndex:0}),r.createElement("input",{id:"search_input_react",type:"search",placeholder:"Search","aria-label":"Search",className:t()("navbar__search-input",{"search-bar-expanded":e.isSearchBarExpanded},{"search-bar":!e.isSearchBarExpanded}),onClick:f,onMouseOver:f,onFocus:p,onBlur:p,ref:c}))}}}]);
+1
View File
@@ -0,0 +1 @@
(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[245],{4130:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var i=n(5485),a=n.n(i),s=n(1336);s.tokenizer.separator=/[\s\-/]+/;var r=function(){function e(e,t){this.searchDocs=e,this.lunrIndex=s.Index.load(t)}var t=e.prototype;return t.getLunrResult=function(e){return this.lunrIndex.query((function(t){var n=s.tokenizer(e);t.term(n,{boost:10}),t.term(n,{wildcard:s.Query.wildcard.TRAILING})}))},t.getHit=function(e,t,n){return{hierarchy:{lvl0:e.pageTitle||e.title,lvl1:0===e.type?null:e.title},url:e.url,_snippetResult:n?{content:{value:n,matchLevel:"full"}}:null,_highlightResult:{hierarchy:{lvl0:{value:0===e.type?t||e.title:e.pageTitle},lvl1:0===e.type?null:{value:t||e.title}}}}},t.getTitleHit=function(e,t,n){var i=t[0],a=t[0]+n,s=e.title.substring(0,i)+'<span class="algolia-docsearch-suggestion--highlight">'+e.title.substring(i,a)+"</span>"+e.title.substring(a,e.title.length);return this.getHit(e,s)},t.getKeywordHit=function(e,t,n){var i=t[0],a=t[0]+n,s=e.title+"<br /><i>Keywords: "+e.keywords.substring(0,i)+'<span class="algolia-docsearch-suggestion--highlight">'+e.keywords.substring(i,a)+"</span>"+e.keywords.substring(a,e.keywords.length)+"</i>";return this.getHit(e,s)},t.getContentHit=function(e,t){for(var n=t[0],i=t[0]+t[1],a=n,s=i,r=!0,l=!0,o=0;o<3;o++){var u=e.content.lastIndexOf(" ",a-2),c=e.content.lastIndexOf(".",a-2);if(c>0&&c>u){a=c+1,r=!1;break}if(u<0){a=0,r=!1;break}a=u+1}for(var h=0;h<10;h++){var g=e.content.indexOf(" ",s+1),d=e.content.indexOf(".",s+1);if(d>0&&d<g){s=d,l=!1;break}if(g<0){s=e.content.length,l=!1;break}s=g}var p=e.content.substring(a,n);return r&&(p="... "+p),p+='<span class="algolia-docsearch-suggestion--highlight">'+e.content.substring(n,i)+"</span>",p+=e.content.substring(i,s),l&&(p+=" ..."),this.getHit(e,null,p)},t.search=function(e){var t=this;return new Promise((function(n,i){var a=t.getLunrResult(e),s=[];a.length>5&&(a.length=5),t.titleHitsRes=[],t.contentHitsRes=[],a.forEach((function(n){var i=t.searchDocs[n.ref],a=n.matchData.metadata;for(var r in a)if(a[r].title){if(!t.titleHitsRes.includes(n.ref)){var l=a[r].title.position[0];s.push(t.getTitleHit(i,l,e.length)),t.titleHitsRes.push(n.ref)}}else if(a[r].content){var o=a[r].content.position[0];s.push(t.getContentHit(i,o))}else if(a[r].keywords){var u=a[r].keywords.position[0];s.push(t.getKeywordHit(i,u,e.length)),t.titleHitsRes.push(n.ref)}})),s.length>5&&(s.length=5),n(s)}))},e}(),l=n(1639),o=n.n(l),u="algolia-docsearch",c=u+"-suggestion",h={suggestion:'\n <a class="'+c+"\n {{#isCategoryHeader}}"+c+"__main{{/isCategoryHeader}}\n {{#isSubCategoryHeader}}"+c+'__secondary{{/isSubCategoryHeader}}\n "\n aria-label="Link to the result"\n href="{{{url}}}"\n >\n <div class="'+c+'--category-header">\n <span class="'+c+'--category-header-lvl0">{{{category}}}</span>\n </div>\n <div class="'+c+'--wrapper">\n <div class="'+c+'--subcategory-column">\n <span class="'+c+'--subcategory-column-text">{{{subcategory}}}</span>\n </div>\n {{#isTextOrSubcategoryNonEmpty}}\n <div class="'+c+'--content">\n <div class="'+c+'--subcategory-inline">{{{subcategory}}}</div>\n <div class="'+c+'--title">{{{title}}}</div>\n {{#text}}<div class="'+c+'--text">{{{text}}}</div>{{/text}}\n </div>\n {{/isTextOrSubcategoryNonEmpty}}\n </div>\n </a>\n ',suggestionSimple:'\n <div class="'+c+"\n {{#isCategoryHeader}}"+c+"__main{{/isCategoryHeader}}\n {{#isSubCategoryHeader}}"+c+'__secondary{{/isSubCategoryHeader}}\n suggestion-layout-simple\n ">\n <div class="'+c+'--category-header">\n {{^isLvl0}}\n <span class="'+c+"--category-header-lvl0 "+c+'--category-header-item">{{{category}}}</span>\n {{^isLvl1}}\n {{^isLvl1EmptyOrDuplicate}}\n <span class="'+c+"--category-header-lvl1 "+c+'--category-header-item">\n {{{subcategory}}}\n </span>\n {{/isLvl1EmptyOrDuplicate}}\n {{/isLvl1}}\n {{/isLvl0}}\n <div class="'+c+"--title "+c+'--category-header-item">\n {{#isLvl2}}\n {{{title}}}\n {{/isLvl2}}\n {{#isLvl1}}\n {{{subcategory}}}\n {{/isLvl1}}\n {{#isLvl0}}\n {{{category}}}\n {{/isLvl0}}\n </div>\n </div>\n <div class="'+c+'--wrapper">\n {{#text}}\n <div class="'+c+'--content">\n <div class="'+c+'--text">{{{text}}}</div>\n </div>\n {{/text}}\n </div>\n </div>\n ',footer:'\n <div class="algolia-docsearch-footer">\n </div>\n ',empty:'\n <div class="'+c+'">\n <div class="'+c+'--wrapper">\n <div class="'+c+"--content "+c+'--no-results">\n <div class="'+c+'--title">\n <div class="'+c+'--text">\n No results found for query <b>"{{query}}"</b>\n Line truncated
@@ -0,0 +1 @@
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[270],{3905:function(e,t,n){n.d(t,{Zo:function(){return m},kt:function(){return k}});var a=n(7294);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t){if(null==e)return{};var n,a,l=function(e,t){if(null==e)return{};var n,a,l={},r=Object.keys(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}var p=a.createContext({}),d=function(e){var t=a.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},m=function(e){var t=d(e.components);return a.createElement(p.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},s=a.forwardRef((function(e,t){var n=e.components,l=e.mdxType,r=e.originalType,p=e.parentName,m=o(e,["components","mdxType","originalType","parentName"]),s=d(n),k=l,c=s["".concat(p,".").concat(k)]||s[k]||u[k]||r;return n?a.createElement(c,i(i({ref:t},m),{},{components:n})):a.createElement(c,i({ref:t},m))}));function k(e,t){var n=arguments,l=t&&t.mdxType;if("string"==typeof e||l){var r=n.length,i=new Array(r);i[0]=s;var o={};for(var p in t)hasOwnProperty.call(t,p)&&(o[p]=t[p]);o.originalType=e,o.mdxType="string"==typeof e?e:l,i[1]=o;for(var d=2;d<r;d++)i[d]=n[d];return a.createElement.apply(null,i)}return a.createElement.apply(null,n)}s.displayName="MDXCreateElement"},1940:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return o},contentTitle:function(){return p},metadata:function(){return d},toc:function(){return m},default:function(){return s}});var a=n(7462),l=n(3366),r=(n(7294),n(3905)),i=["components"],o={title:"Advanced propertys",sidebar_position:4,slug:"/advance"},p=void 0,d={unversionedId:"en/Advance",id:"en/Advance",isDocsHomePage:!1,title:"Advanced propertys",description:"This page is some additional supplements to the commonly used properties, you need to read in depth to develop custom functions.",source:"@site/docs/en/Advance.md",sourceDirName:"en",slug:"/advance",permalink:"/document/advance",tags:[],version:"current",sidebarPosition:4,frontMatter:{title:"Advanced propertys",sidebar_position:4,slug:"/advance"},sidebar:"en",previous:{title:"Common properties",permalink:"/document/propertie"},next:{title:"Static propertys",permalink:"/document/class"}},m=[{value:"id",id:"id",children:[],level:2},{value:"option",id:"option",children:[],level:2},{value:"isFocus",id:"isfocus",children:[],level:2},{value:"isDestroy",id:"isdestroy",children:[],level:2},{value:"userAgent",id:"useragent",children:[],level:2},{value:"isMobile",id:"ismobile",children:[],level:2},{value:"isWechat",id:"iswechat",children:[],level:2},{value:"whitelist",id:"whitelist",children:[],level:2},{value:"template",id:"template",children:[],level:2},{value:"query",id:"query",children:[],level:2},{value:"storage",id:"storage",children:[],level:2},{value:"icons",id:"icons",children:[],level:2},{value:"i18n",id:"i18n",children:[],level:2},{value:"player",id:"player",children:[],level:2},{value:"subtitle",id:"subtitle",children:[],level:2},{value:"info",id:"info",children:[],level:2},{value:"layers",id:"layers",children:[],level:2},{value:"notice",id:"notice",children:[],level:2},{value:"controls",id:"controls",children:[],level:2},{value:"contextmenu",id:"contextmenu",children:[],level:2},{value:"loading",id:"loading",children:[],level:2},{value:"mask",id:"mask",children:[],level:2},{value:"hotkey",id:"hotkey",children:[],level:2},{value:"setting",id:"setting",children:[],level:2},{value:"plugins",id:"plugins",children:[],level:2}],u={toc:m};function s(e){var t=e.components,n=(0,l.Z)(e,i);return(0,r.kt)("wrapper",(0,a.Z)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("div",{className:"admonition admonition-tip alert alert--success"},(0,r.kt)("div",{parentName:"div",className:"admonition-heading"},(0,r.kt)("h5",{parentName:"div"},(0,r.kt)("span",{parentName:"h5",className:"admonition-icon"},(0,r.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",viewBox:"0 0 12 16"},(0,r.kt)("path",{parentName:"svg",fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5Line truncated
+1
View File
@@ -0,0 +1 @@
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[343],{3343:function(e,t,u){u.r(t)}}]);
@@ -0,0 +1 @@
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[928],{3905:function(e,n,t){t.d(n,{Zo:function(){return u},kt:function(){return c}});var a=t(7294);function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function i(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(Object(t),!0).forEach((function(n){r(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function p(e,n){if(null==e)return{};var t,a,r=function(e,n){if(null==e)return{};var t,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)t=l[a],n.indexOf(t)>=0||(r[t]=e[t]);return r}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)t=l[a],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}var o=a.createContext({}),s=function(e){var n=a.useContext(o),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},u=function(e){var n=s(e.components);return a.createElement(o.Provider,{value:n},e.children)},d={inlineCode:"code",wrapper:function(e){var n=e.children;return a.createElement(a.Fragment,{},n)}},m=a.forwardRef((function(e,n){var t=e.components,r=e.mdxType,l=e.originalType,o=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),m=s(t),c=r,k=m["".concat(o,".").concat(c)]||m[c]||d[c]||l;return t?a.createElement(k,i(i({ref:n},u),{},{components:t})):a.createElement(k,i({ref:n},u))}));function c(e,n){var t=arguments,r=n&&n.mdxType;if("string"==typeof e||r){var l=t.length,i=new Array(l);i[0]=m;var p={};for(var o in n)hasOwnProperty.call(n,o)&&(p[o]=n[o]);p.originalType=e,p.mdxType="string"==typeof e?e:r,i[1]=p;for(var s=2;s<l;s++)i[s]=t[s];return a.createElement.apply(null,i)}return a.createElement.apply(null,t)}m.displayName="MDXCreateElement"},8265:function(e,n,t){t.r(n),t.d(n,{frontMatter:function(){return p},contentTitle:function(){return o},metadata:function(){return s},toc:function(){return u},default:function(){return m}});var a=t(7462),r=t(3366),l=(t(7294),t(3905)),i=["components"],p={title:"\u5e38\u7528\u5c5e\u6027",sidebar_position:3,slug:"/zh-cn/propertie"},o=void 0,s={unversionedId:"zh-cn/Properties",id:"zh-cn/Properties",isDocsHomePage:!1,title:"\u5e38\u7528\u5c5e\u6027",description:"play",source:"@site/docs/zh-cn/Properties.md",sourceDirName:"zh-cn",slug:"/zh-cn/propertie",permalink:"/document/zh-cn/propertie",tags:[],version:"current",sidebarPosition:3,frontMatter:{title:"\u5e38\u7528\u5c5e\u6027",sidebar_position:3,slug:"/zh-cn/propertie"},sidebar:"zh-cn",previous:{title:"\u57fa\u7840\u53c2\u6570",permalink:"/document/zh-cn/options"},next:{title:"\u9ad8\u7ea7\u5c5e\u6027",permalink:"/document/zh-cn/advance"}},u=[{value:"play",id:"play",children:[],level:2},{value:"pause",id:"pause",children:[],level:2},{value:"toggle",id:"toggle",children:[],level:2},{value:"seek",id:"seek",children:[],level:2},{value:"forward",id:"forward",children:[],level:2},{value:"backward",id:"backward",children:[],level:2},{value:"volume",id:"volume",children:[],level:2},{value:"url",id:"url",children:[],level:2},{value:"switchUrl",id:"switchurl",children:[],level:2},{value:"switchQuality",id:"switchquality",children:[],level:2},{value:"muted",id:"muted",children:[],level:2},{value:"currentTime",id:"currenttime",children:[],level:2},{value:"duration",id:"duration",children:[],level:2},{value:"screenshot",id:"screenshot",children:[],level:2},{value:"getDataURL",id:"getdataurl",children:[],level:2},{value:"getBlobUrl",id:"getbloburl",children:[],level:2},{value:"fullscreen",id:"fullscreen",children:[],level:2},{value:"fullscreenWeb",id:"fullscreenweb",children:[],level:2},{value:"pip",id:"pip",children:[],level:2},{value:"poster",id:"poster",children:[],level:2},{value:"mini",id:"mini",children:[],level:2},{value:"playing",id:"playing",children:[],level:2},{value:"autoSize",id:"autosize",children:[],level:2},{value:"rect",id:"rect",children:[],level:2},{value:"flip",id:"flip",children:[],level:2},{value:"rotate",id:"rotate",children:[],level:2},{value:"playbackRate",id:"playbackrate",children:[],level:2},{value:"aspectRatio",id:"aspectratio",children:[],level:2},{value:"loop",id:"loop",children:[],level:2},{value:"destroy",id:"destroy",children:[],level:2}],d={toc:u};function m(e){var n=e.components,t=(0,r.Z)(e,i);return(0,l.kt)("wrapper",(0,a.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,l.kt)("h2",{id:"play"},"play"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"\u7c7b\u578b: ",(0,l.kt)("inlineCode",{parentName:"li"},"Function"))),(0,l.kt)(Line truncated
+1
View File
@@ -0,0 +1 @@
(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[42],{3905:function(e,t,n){"use strict";n.d(t,{Zo:function(){return u},kt:function(){return m}});var r=n(7294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var i=r.createContext({}),s=function(e){var t=r.useContext(i),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},u=function(e){var t=s(e.components);return r.createElement(i.Provider,{value:t},e.children)},d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},p=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,i=e.parentName,u=c(e,["components","mdxType","originalType","parentName"]),p=s(n),m=a,f=p["".concat(i,".").concat(m)]||p[m]||d[m]||o;return n?r.createElement(f,l(l({ref:t},u),{},{components:n})):r.createElement(f,l({ref:t},u))}));function m(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,l=new Array(o);l[0]=p;var c={};for(var i in t)hasOwnProperty.call(t,i)&&(c[i]=t[i]);c.originalType=e,c.mdxType="string"==typeof e?e:a,l[1]=c;for(var s=2;s<o;s++)l[s]=n[s];return r.createElement.apply(null,l)}return r.createElement.apply(null,n)}p.displayName="MDXCreateElement"},3042:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Ie}});var r=n(7294),a=n(3905),o=n(6291),l=n(4814),c=n(6010),i=n(2822),s=n(3783),u=n(5537),d=n(7462),p=function(e){return r.createElement("svg",(0,d.Z)({width:"20",height:"20","aria-hidden":"true"},e),r.createElement("g",{fill:"#7a7a7a"},r.createElement("path",{d:"M9.992 10.023c0 .2-.062.399-.172.547l-4.996 7.492a.982.982 0 01-.828.454H1c-.55 0-1-.453-1-1 0-.2.059-.403.168-.551l4.629-6.942L.168 3.078A.939.939 0 010 2.528c0-.548.45-.997 1-.997h2.996c.352 0 .649.18.828.45L9.82 9.472c.11.148.172.347.172.55zm0 0"}),r.createElement("path",{d:"M19.98 10.023c0 .2-.058.399-.168.547l-4.996 7.492a.987.987 0 01-.828.454h-3c-.547 0-.996-.453-.996-1 0-.2.059-.403.168-.551l4.625-6.942-4.625-6.945a.939.939 0 01-.168-.55 1 1 0 01.996-.997h3c.348 0 .649.18.828.45l4.996 7.492c.11.148.168.347.168.55zm0 0"})))},m=n(5999),f=n(3366),h=n(9960),y=n(3919),v=n(541),b="menuLinkText_OKON",g=["items"],k=["item"],E=["item","onItemClick","activePath","level"],C=["item","onItemClick","activePath","level"],T=function e(t,n){return"link"===t.type?(0,i.Mg)(t.href,n):"category"===t.type&&t.items.some((function(t){return e(t,n)}))},Z=(0,r.memo)((function(e){var t=e.items,n=(0,f.Z)(e,g);return r.createElement(r.Fragment,null,t.map((function(e,t){return r.createElement(S,(0,d.Z)({key:t,item:e},n))})))}));function S(e){var t=e.item,n=(0,f.Z)(e,k);return"category"===t.type?0===t.items.length?null:r.createElement(_,(0,d.Z)({item:t},n)):r.createElement(N,(0,d.Z)({item:t},n))}function _(e){var t,n=e.item,a=e.onItemClick,o=e.activePath,l=e.level,s=(0,f.Z)(e,E),u=n.items,p=n.label,m=n.collapsible,h=n.className,y=T(n,o),v=(0,i.uR)({initialState:function(){return!!m&&(!y&&n.collapsed)}}),g=v.collapsed,k=v.setCollapsed,C=v.toggleCollapsed;return function(e){var t=e.isActive,n=e.collapsed,a=e.setCollapsed,o=(0,i.D9)(t);(0,r.useEffect)((function(){t&&!o&&n&&a(!1)}),[t,o,n,a])}({isActive:y,collapsed:g,setCollapsed:k}),r.createElement("li",{className:(0,c.Z)(i.kM.docs.docSidebarItemCategory,i.kM.docs.docSidebarItemCategoryLevel(l),"menu__list-item",{"menu__list-item--collapsed":g},h)},r.createElement("a",(0,d.Z)({className:(0,c.Z)("menu__link",(t={"menu__link--sublist":m,"menu__link--active":m&&y},t[b]=!m,t)),onClick:m?function(e){e.preventDefault(),C()}:void 0,href:m?"#":void 0},s),p),r.createElement(i.zF,{lazy:!0,as:"ul",className:"menu__list",collapsed:g},r.createElement(Z,{items:u,tabIndex:g?-1:0,onItemClick:a,activePath:o,level:l+1})))}function N(e){var t=e.item,n=e.onItemClick,a=e.activePath,o=e.level,l=(0,f.Z)(e,C),s=t.href,u=t.label,p=t.className,m=T(t,a);return r.createElement("li",{className:(0,c.Z)(i.kM.docs.docSidebarItemLink,i.kM.docs.docSidebarItemLinkLevel(o),"menLine truncated
+2
View File
@@ -0,0 +1,2 @@
/*! For license information please see 573.79c03de1.js.LICENSE.txt */
(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[573],{541:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var a=n(7294),r="iconExternalLink_wgqa",l=function(e){var t=e.width,n=void 0===t?13.5:t,l=e.height,o=void 0===l?13.5:l;return a.createElement("svg",{width:n,height:o,"aria-hidden":"true",viewBox:"0 0 24 24",className:r},a.createElement("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"}))}},4814:function(e,t,n){"use strict";n.d(t,{Z:function(){return ke}});var a=n(7294),r=n(6010),l=n(6775),o=n(5999),i=n(2822),c="skipToContent_OuoZ";function s(e){e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")}var u=function(){var e=(0,a.useRef)(null),t=(0,l.k6)().action;return(0,i.SL)((function(n){var a=n.location;e.current&&!a.hash&&"PUSH"===t&&s(e.current)})),a.createElement("div",{ref:e},a.createElement("a",{href:"#",className:c,onClick:function(e){e.preventDefault();var t=document.querySelector("main:first-of-type")||document.querySelector(".main-wrapper");t&&s(t)}},a.createElement(o.Z,{id:"theme.common.skipToMainContent",description:"The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation"},"Skip to main content")))},m=n(7462),d=n(3366),f=["width","height","color","strokeWidth","className"];function v(e){var t=e.width,n=void 0===t?21:t,r=e.height,l=void 0===r?21:r,o=e.color,i=void 0===o?"currentColor":o,c=e.strokeWidth,s=void 0===c?1.2:c,u=(e.className,(0,d.Z)(e,f));return a.createElement("svg",(0,m.Z)({viewBox:"0 0 15 15",width:n,height:l},u),a.createElement("g",{stroke:i,strokeWidth:s},a.createElement("path",{d:"M.75.75l13.5 13.5M14.25.75L.75 14.25"})))}var h="announcementBar_axC9",g="announcementBarPlaceholder_xYHE",b="announcementBarClose_A3A1",p="announcementBarContent_6uhP";var E=function(){var e=(0,i.nT)(),t=e.isActive,n=e.close,l=(0,i.LU)().announcementBar;if(!t)return null;var c=l.content,s=l.backgroundColor,u=l.textColor,m=l.isCloseable;return a.createElement("div",{className:h,style:{backgroundColor:s,color:u},role:"banner"},m&&a.createElement("div",{className:g}),a.createElement("div",{className:p,dangerouslySetInnerHTML:{__html:c}}),m?a.createElement("button",{type:"button",className:(0,r.Z)("clean-btn close",b),onClick:n,"aria-label":(0,o.I)({id:"theme.AnnouncementBar.closeButtonAriaLabel",message:"Close",description:"The ARIA label for close button of announcement bar"})},a.createElement(v,{width:14,height:14,strokeWidth:3.1})):null)},k=n(6979),Z=n(2389),_={toggle:"toggle_iYfV",toggleScreenReader:"toggleScreenReader_h9qa",toggleDisabled:"toggleDisabled_xj38",toggleTrack:"toggleTrack_t-f2",toggleTrackCheck:"toggleTrackCheck_mk7D",toggleChecked:"toggleChecked_a04y",toggleTrackX:"toggleTrackX_dm8H",toggleTrackThumb:"toggleTrackThumb_W6To",toggleFocused:"toggleFocused_pRSw",toggleIcon:"toggleIcon_pHJ9"},w=function(e){var t=e.icon,n=e.style;return a.createElement("span",{className:(0,r.Z)(_.toggleIcon,_.dark),style:n},t)},N=function(e){var t=e.icon,n=e.style;return a.createElement("span",{className:(0,r.Z)(_.toggleIcon,_.light),style:n},t)},y=(0,a.memo)((function(e){var t,n=e.className,l=e.icons,o=e.checked,i=e.disabled,c=e.onChange,s=(0,a.useState)(o),u=s[0],m=s[1],d=(0,a.useState)(!1),f=d[0],v=d[1],h=(0,a.useRef)(null);return a.createElement("div",{className:(0,r.Z)(_.toggle,n,(t={},t[_.toggleChecked]=u,t[_.toggleFocused]=f,t[_.toggleDisabled]=i,t))},a.createElement("div",{className:_.toggleTrack,role:"button",tabIndex:-1,onClick:function(){var e;return null==(e=h.current)?void 0:e.click()}},a.createElement("div",{className:_.toggleTrackCheck},l.checked),a.createElement("div",{className:_.toggleTrackX},l.unchecked),a.createElement("div",{className:_.toggleTrackThumb})),a.createElement("input",{ref:h,checked:u,type:"checkbox",className:_.toggleScreenReader,"aria-label":"Switch between dark and light mode",onChange:c,onClick:function(){return m(!u)},onFocus:function(){return v(!0)},onBlur:function(){return v(!1)},onKeyDown:function(e){var t;"Enter"===e.key&&(null==(t=h.current)||t.click())}}))}));function C(e){var t=(0,i.LU)().colorMode.switchConfig,n=t.darkIcon,r=t.darkIconStyle,l=t.lightIcon,o=t.lightIconStyle,c=(0,Z.Z)();return a.createElement(y,(0,m.Z)({disabled:!c,icons:{checked:a.createElement(w,{icon:n,style:r}),unchecked:a.createElement(N,{icon:l,style:o})}},e))}var T=n(5350),I=function(e){var t=(0,a.useState)(e),n=t[0],r=t[1],l=(0,a.useRef)(!1),o=(0,a.useRef)(0),c=(0,a.useCallback)((function(e){null!==e&&(o.current=e.getBoundingClientRect().height)}),[]);return(0,i.RF)((function(t,n){if(e){var a=t.scrollY;if(a<o.current)r(!0);else if(l.current)l.current=!1;else{var i=null==n?void 0:n.scrollY,c=document.documentElement.scrollHeight-o.current,s=window.innerHeight;i&&a>=i?r(!1):a+s<c&&r(!0)}}})),(0,i.SL)((function(t){if(e)return t.location.hash?(l.current=!0,voidLine truncated
@@ -0,0 +1,5 @@
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
@@ -0,0 +1 @@
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[220],{3905:function(e,t,n){n.d(t,{Zo:function(){return p},kt:function(){return c}});var a=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var d=a.createContext({}),s=function(e){var t=a.useContext(d),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},p=function(e){var t=s(e.components);return a.createElement(d.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},m=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,d=e.parentName,p=i(e,["components","mdxType","originalType","parentName"]),m=s(n),c=r,k=m["".concat(d,".").concat(c)]||m[c]||u[c]||l;return n?a.createElement(k,o(o({ref:t},p),{},{components:n})):a.createElement(k,o({ref:t},p))}));function c(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,o=new Array(l);o[0]=m;var i={};for(var d in t)hasOwnProperty.call(t,d)&&(i[d]=t[d]);i.originalType=e,i.mdxType="string"==typeof e?e:r,o[1]=i;for(var s=2;s<l;s++)o[s]=n[s];return a.createElement.apply(null,o)}return a.createElement.apply(null,n)}m.displayName="MDXCreateElement"},6641:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return i},contentTitle:function(){return d},metadata:function(){return s},toc:function(){return p},default:function(){return m}});var a=n(7462),r=n(3366),l=(n(7294),n(3905)),o=["components"],i={title:"\u5b9e\u4f8b\u4e8b\u4ef6",sidebar_position:6,slug:"/zh-cn/events"},d=void 0,s={unversionedId:"zh-cn/Events",id:"zh-cn/Events",isDocsHomePage:!1,title:"\u5b9e\u4f8b\u4e8b\u4ef6",description:"\u64ad\u653e\u5668\u7684\u4e8b\u4ef6\u5206\u4e3a\u4e24\u79cd\uff0c\u4e00\u79cd\u89c6\u9891\u7684\u539f\u751f\u4e8b\u4ef6\uff0c\u53e6\u5916\u4e00\u79cd\u662f\u81ea\u5b9a\u4e49\u7684\u4e8b\u4ef6\u3002\u539f\u751f\u4e8b\u4ef6\u6765\u81ea video \u5143\u7d20\uff0c\u662f\u76f4\u63a5\u76d1\u542cvideo\u5143\u7d20\u7684\u539f\u59cb\u4e8b\u4ef6\uff0c\u4e3a\u4e86\u8ba9\u5b83\u548c\u81ea\u5b9a\u4e49\u4e8b\u4ef6\u533a\u5206\uff0c\u539f\u751f\u4e8b\u4ef6\u6dfb\u52a0\u4e86\u524d\u7f00 video:",source:"@site/docs/zh-cn/Events.mdx",sourceDirName:"zh-cn",slug:"/zh-cn/events",permalink:"/document/zh-cn/events",tags:[],version:"current",sidebarPosition:6,frontMatter:{title:"\u5b9e\u4f8b\u4e8b\u4ef6",sidebar_position:6,slug:"/zh-cn/events"},sidebar:"zh-cn",previous:{title:"\u9759\u6001\u5c5e\u6027",permalink:"/document/zh-cn/class"},next:{title:"\u7b2c\u4e09\u65b9\u5e93",permalink:"/document/zh-cn/libraries"}},p=[{value:"\u539f\u751f\u4e8b\u4ef6",id:"\u539f\u751f\u4e8b\u4ef6",children:[],level:2},{value:"\u81ea\u5b9a\u4e49\u4e8b\u4ef6",id:"\u81ea\u5b9a\u4e49\u4e8b\u4ef6",children:[{value:"ready",id:"ready",children:[],level:3},{value:"play",id:"play",children:[],level:3},{value:"pause",id:"pause",children:[],level:3},{value:"seek",id:"seek",children:[],level:3},{value:"volume",id:"volume",children:[],level:3},{value:"destroy",id:"destroy",children:[],level:3},{value:"focus",id:"focus",children:[],level:3},{value:"blur",id:"blur",children:[],level:3},{value:"hover",id:"hover",children:[],level:3},{value:"resize",id:"resize",children:[],level:3},{value:"mousemove",id:"mousemove",children:[],level:3},{value:"url",id:"url",children:[],level:3},{value:"fullscreen",id:"fullscreen",children:[],level:3},{value:"fullscreenWeb",id:"fullscreenweb",children:[],level:3},{value:"hotkey",id:"hotkey",children:[],level:3}],level:2}],u={toc:p};function m(e){var t=e.components,n=(0,r.Z)(e,o);return(0,l.kt)("wrapper",(0,a.Z)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("p",null,"\u64ad\u653e\u5668\u7684\u4e8b\u4ef6\u5206\u4e3a\u4e24\u79cd\uff0c\u4e00\u79cd\u89c6\u9891\u7684\u539f\u751f\u4e8b\u4ef6\uff0c\u53e6\u5916\u4e00\u79cd\u662f\u81ea\u5b9a\u4e49\u7684\u4e8b\u4ef6\u3002\u539f\u751f\u4e8b\u4ef6\u6765\u81ea ",(0,l.kt)("inlineCode",{parentName:"p"},"video")," \u5143\u7d20\uff0c\u662f\u76f4\Line truncated
+2
View File
@@ -0,0 +1,2 @@
/*! For license information please see 667.36c9babf.js.LICENSE.txt */
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[667],{9960:function(e,n,t){t.d(n,{Z:function(){return v}});var r=t(3366),o=t(7294),u=t(3727),i=t(2263),a=t(3919),c=t(412),s=(0,o.createContext)({collectLink:function(){}}),l=t(4996),f=t(8780),d=["isNavLink","to","href","activeClassName","isActive","data-noBrokenLinkCheck","autoAddBaseUrl"];var v=function(e){var n,t,v=e.isNavLink,p=e.to,g=e.href,m=e.activeClassName,h=e.isActive,y=e["data-noBrokenLinkCheck"],b=e.autoAddBaseUrl,w=void 0===b||b,E=(0,r.Z)(e,d),_=(0,i.Z)().siteConfig,P=_.trailingSlash,S=_.baseUrl,O=(0,l.C)().withBaseUrl,L=(0,o.useContext)(s),C=p||g,x=(0,a.Z)(C),k=null==C?void 0:C.replace("pathname://",""),A=void 0!==k?(t=k,w&&function(e){return e.startsWith("/")}(t)?O(t):t):void 0;A&&x&&(A=(0,f.applyTrailingSlash)(A,{trailingSlash:P,baseUrl:S}));var j=(0,o.useRef)(!1),R=v?u.OL:u.rU,D=c.Z.canUseIntersectionObserver,T=(0,o.useRef)();(0,o.useEffect)((function(){return!D&&x&&null!=A&&window.docusaurus.prefetch(A),function(){D&&T.current&&T.current.disconnect()}}),[T,A,D,x]);var M=null!==(n=null==A?void 0:A.startsWith("#"))&&void 0!==n&&n,I=!A||!x||M;return A&&x&&!M&&!y&&L.collectLink(A),I?o.createElement("a",Object.assign({href:A},C&&!x&&{target:"_blank",rel:"noopener noreferrer"},E)):o.createElement(R,Object.assign({},E,{onMouseEnter:function(){j.current||null==A||(window.docusaurus.preload(A),j.current=!0)},innerRef:function(e){var n,t;D&&e&&x&&(n=e,t=function(){null!=A&&window.docusaurus.prefetch(A)},T.current=new window.IntersectionObserver((function(e){e.forEach((function(e){n===e.target&&(e.isIntersecting||e.intersectionRatio>0)&&(T.current.unobserve(n),T.current.disconnect(),t())}))})),T.current.observe(n))},to:A||""},v&&{isActive:h,activeClassName:m}))}},5999:function(e,n,t){t.d(n,{Z:function(){return l},I:function(){return s}});var r=t(7294),o=/{\w+}/g,u="{}";function i(e,n){var t=[],i=e.replace(o,(function(e){var o=e.substr(1,e.length-2),i=null==n?void 0:n[o];if(void 0!==i){var a=r.isValidElement(i)?i:String(i);return t.push(a),u}return e}));return 0===t.length?e:t.every((function(e){return"string"==typeof e}))?i.split(u).reduce((function(e,n,r){var o;return e.concat(n).concat(null!==(o=t[r])&&void 0!==o?o:"")}),""):i.split(u).reduce((function(e,n,o){return[].concat(e,[r.createElement(r.Fragment,{key:o},n,t[o])])}),[])}var a=t(7529);function c(e){var n,t,r=e.id,o=e.message;if(void 0===r&&void 0===o)throw new Error("Docusaurus translation declarations must have at least a translation id or a default translation message");return null!==(t=null!==(n=a[null!=r?r:o])&&void 0!==n?n:o)&&void 0!==t?t:r}function s(e,n){return i(c({message:e.message,id:e.id}),n)}function l(e){var n=e.children,t=e.id,r=e.values;if(n&&"string"!=typeof n)throw console.warn("Illegal <Translate> children",n),new Error("The Docusaurus <Translate> component only accept simple string values");return i(c({message:n,id:t}),r)}},9935:function(e,n,t){t.d(n,{m:function(){return r}});var r="default"},3919:function(e,n,t){function r(e){return!0===/^(\w*:|\/\/)/.test(e)}function o(e){return void 0!==e&&!r(e)}t.d(n,{b:function(){return r},Z:function(){return o}})},8143:function(e,n,t){t.r(n),t.d(n,{BrowserRouter:function(){return r.VK},HashRouter:function(){return r.UT},Link:function(){return r.rU},MemoryRouter:function(){return r.VA},NavLink:function(){return r.OL},Prompt:function(){return r.NL},Redirect:function(){return r.l_},Route:function(){return r.AW},Router:function(){return r.F0},StaticRouter:function(){return r.gx},Switch:function(){return r.rs},generatePath:function(){return r.Gn},matchPath:function(){return r.LX},useHistory:function(){return r.k6},useLocation:function(){return r.TH},useParams:function(){return r.UO},useRouteMatch:function(){return r.$B},withRouter:function(){return r.EN}});var r=t(3727)},4996:function(e,n,t){t.d(n,{C:function(){return u},Z:function(){return i}});var r=t(2263),o=t(3919);function u(){var e=(0,r.Z)().siteConfig,n=(e=void 0===e?{}:e).baseUrl,t=void 0===n?"/":n,u=e.url;return{withBaseUrl:function(e,n){return function(e,n,t,r){var u=void 0===r?{}:r,i=u.forcePrependBaseUrl,a=void 0!==i&&i,c=u.absolute,s=void 0!==c&&c;if(!t)return t;if(t.startsWith("#"))return t;if((0,o.b)(t))return t;if(a)return n+t;var l=t.startsWith(n)?t:n+t.replace(/^\//,"");return s?e+l:l}(u,t,e,n)}}}function i(e,n){return void 0===n&&(n={}),(0,u().withBaseUrl)(e,n)}},8084:function(e,n,t){t.r(n),t.d(n,{default:function(){return u},useAllPluginInstancesData:function(){return i},usePluginData:function(){return a}});var r=t(2263),o=t(9935);function u(){var e=(0,r.Z)().globalData;if(!e)throw new Error("Docusaurus global data not found.");return e}function i(e){var n=u()[e];if(!n)throw new Error('Docusaurus plugin global data not found for "'+e+'" plugin.');return n}function a(e,n){void 0===n&&(n=o.m);var t=i(e)[n];if(!t)throw new Error('Docusaurus plugin global data not found for "'+e+'" plugin with id "'+n+'".');return t}},2389:fuLine truncated
@@ -0,0 +1,14 @@
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
@@ -0,0 +1 @@
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[576],{3905:function(e,n,t){t.d(n,{Zo:function(){return c},kt:function(){return u}});var r=t(7294);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function p(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function o(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var l=r.createContext({}),s=function(e){var n=r.useContext(l),t=n;return e&&(t="function"==typeof e?e(n):p(p({},n),e)),t},c=function(e){var n=s(e.components);return r.createElement(l.Provider,{value:n},e.children)},d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},m=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,i=e.originalType,l=e.parentName,c=o(e,["components","mdxType","originalType","parentName"]),m=s(t),u=a,h=m["".concat(l,".").concat(u)]||m[u]||d[u]||i;return t?r.createElement(h,p(p({ref:n},c),{},{components:t})):r.createElement(h,p({ref:n},c))}));function u(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var i=t.length,p=new Array(i);p[0]=m;var o={};for(var l in n)hasOwnProperty.call(n,l)&&(o[l]=n[l]);o.originalType=e,o.mdxType="string"==typeof e?e:a,p[1]=o;for(var s=2;s<i;s++)p[s]=t[s];return r.createElement.apply(null,p)}return r.createElement.apply(null,t)}m.displayName="MDXCreateElement"},5918:function(e,n,t){t.r(n),t.d(n,{frontMatter:function(){return o},contentTitle:function(){return l},metadata:function(){return s},toc:function(){return c},default:function(){return m}});var r=t(7462),a=t(3366),i=(t(7294),t(3905)),p=["components"],o={title:"\u5feb\u901f\u4e0a\u624b",sidebar_position:1,slug:"/zh-cn"},l=void 0,s={unversionedId:"zh-cn/Overview",id:"zh-cn/Overview",isDocsHomePage:!1,title:"\u5feb\u901f\u4e0a\u624b",description:"\u5b89\u88c5",source:"@site/docs/zh-cn/Overview.md",sourceDirName:"zh-cn",slug:"/zh-cn",permalink:"/document/zh-cn",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"\u5feb\u901f\u4e0a\u624b",sidebar_position:1,slug:"/zh-cn"},sidebar:"zh-cn",next:{title:"\u57fa\u7840\u53c2\u6570",permalink:"/document/zh-cn/options"}},c=[{value:"\u5b89\u88c5",id:"\u5b89\u88c5",children:[{value:"\u901a\u8fc7 <code>npm</code> \u5b89\u88c5\uff1a",id:"\u901a\u8fc7-npm-\u5b89\u88c5",children:[],level:3},{value:"\u901a\u8fc7 <code>yarn</code> \u5b89\u88c5\uff1a",id:"\u901a\u8fc7-yarn-\u5b89\u88c5",children:[],level:3},{value:"\u901a\u8fc7 <code>script</code> \u5b89\u88c5\uff1a",id:"\u901a\u8fc7-script-\u5b89\u88c5",children:[],level:3}],level:2},{value:"\u4f7f\u7528",id:"\u4f7f\u7528",children:[{value:"\u5728 <code>Html</code> \u4f7f\u7528",id:"\u5728-html-\u4f7f\u7528",children:[],level:3},{value:"\u4e0e <code>Vue</code> \u4f7f\u7528",id:"\u4e0e-vue-\u4f7f\u7528",children:[],level:3},{value:"\u4e0e <code>React</code> \u4f7f\u7528",id:"\u4e0e-react-\u4f7f\u7528",children:[],level:3}],level:2},{value:"\u6f14\u793a",id:"\u6f14\u793a",children:[],level:2}],d={toc:c};function m(e){var n=e.components,t=(0,a.Z)(e,p);return(0,i.kt)("wrapper",(0,r.Z)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,i.kt)("h2",{id:"\u5b89\u88c5"},"\u5b89\u88c5"),(0,i.kt)("h3",{id:"\u901a\u8fc7-npm-\u5b89\u88c5"},"\u901a\u8fc7 ",(0,i.kt)("inlineCode",{parentName:"h3"},"npm")," \u5b89\u88c5\uff1a"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-bash"},"$ npm install artplayer\n")),(0,i.kt)("h3",{id:"\u901a\u8fc7-yarn-\u5b89\u88c5"},"\u901a\u8fc7 ",(0,i.kt)("inlineCode",{parentName:"h3"},"yarn")," \u5b89\u88c5\uff1a"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-bash"},"$ yarn add artplayer\n")),(0,i.kt)("p",null,"\u7136\u540e\u52a0\u8f7d ",(0,i.kt)("inlineCode",{parentName:"p"},"artplayer")," \u6a21\u5757\uff1a"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"// ES6\nimport Artplayer from 'artplayer';\n\n// CommonJS\nconst Artplayer = require('artplayer');\n")),(0,i.kt)("h3",{id:"\u901a\u8fc7-script-\u5b89\u88c5"},"\u901a\u8fc7 ",(0,i.kt)("inlineCode",{parentName:"h3"},"script")," \u5b89\u88c5\uff1a"),(0,i.kt)("pLine truncated
@@ -0,0 +1 @@
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[873],{3905:function(e,t,n){n.d(t,{Zo:function(){return l},kt:function(){return m}});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=r.createContext({}),s=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},l=function(e){var t=s(e.components);return r.createElement(u.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},f=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,u=e.parentName,l=a(e,["components","mdxType","originalType","parentName"]),f=s(n),m=o,d=f["".concat(u,".").concat(m)]||f[m]||p[m]||i;return n?r.createElement(d,c(c({ref:t},l),{},{components:n})):r.createElement(d,c({ref:t},l))}));function m(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,c=new Array(i);c[0]=f;var a={};for(var u in t)hasOwnProperty.call(t,u)&&(a[u]=t[u]);a.originalType=e,a.mdxType="string"==typeof e?e:o,c[1]=a;for(var s=2;s<i;s++)c[s]=n[s];return r.createElement.apply(null,c)}return r.createElement.apply(null,n)}f.displayName="MDXCreateElement"},4230:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return a},contentTitle:function(){return u},metadata:function(){return s},toc:function(){return l},default:function(){return f}});var r=n(7462),o=n(3366),i=(n(7294),n(3905)),c=["components"],a={title:"\u5728\u63a7\u5236\u680f\u6dfb\u52a0\u6309\u94ae",sidebar_position:2},u=void 0,s={unversionedId:"zh-cn/Questions/Create button in the controls",id:"zh-cn/Questions/Create button in the controls",isDocsHomePage:!1,title:"\u5728\u63a7\u5236\u680f\u6dfb\u52a0\u6309\u94ae",description:"\u6709\u65f6\u4f60\u9700\u8981\u5728\u63a7\u5236\u680f\u6dfb\u52a0\u6309\u94ae\uff0c\u5982\u5f00\u5173\u6309\u94ae\u6216\u8005\u5355\u9009\u6309\u94ae\u7b49\u7b49\uff0c\u4f60\u751a\u81f3\u53ef\u4ee5\u4f7f\u7528\u7b2c\u4e09\u65b9\u7684\u6837\u5f0f\u5e93\u5982 bootstrap",source:"@site/docs/zh-cn/Questions/Create button in the controls.md",sourceDirName:"zh-cn/Questions",slug:"/zh-cn/Questions/Create button in the controls",permalink:"/document/zh-cn/Questions/Create button in the controls",tags:[],version:"current",sidebarPosition:2,frontMatter:{title:"\u5728\u63a7\u5236\u680f\u6dfb\u52a0\u6309\u94ae",sidebar_position:2},sidebar:"zh-cn",previous:{title:"\u5728\u63a7\u5236\u680f\u6dfb\u52a0\u5217\u8868",permalink:"/document/zh-cn/Questions/Create selector in the controls"}},l=[],p={toc:l};function f(e){var t=e.components,n=(0,o.Z)(e,c);return(0,i.kt)("wrapper",(0,r.Z)({},p,n,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("p",null,"\u6709\u65f6\u4f60\u9700\u8981\u5728\u63a7\u5236\u680f\u6dfb\u52a0\u6309\u94ae\uff0c\u5982\u5f00\u5173\u6309\u94ae\u6216\u8005\u5355\u9009\u6309\u94ae\u7b49\u7b49\uff0c\u4f60\u751a\u81f3\u53ef\u4ee5\u4f7f\u7528\u7b2c\u4e09\u65b9\u7684\u6837\u5f0f\u5e93\u5982 ",(0,i.kt)("inlineCode",{parentName:"p"},"bootstrap")),(0,i.kt)("div",{className:"run-code"},"\u25b6 Run Code"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"var time = 0;\nvar art = new Artplayer({\n container: '.artplayer-app',\n url: '/assets/sample/video.mp4',\n controls: [\n {\n position: 'right',\n html: '<button type=\"button\">Click Me!</button>',\n click: function (_, event) {\n // \u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u4e8b\u4ef6\u5bf9\u8c61\n time += 1;\n event.target.innerText = 'You Click ' + time;\n },\n },\n ],\n});\n")))}f.isMDXComponent=!0}}]);
@@ -0,0 +1 @@
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[575],{3905:function(e,t,n){n.d(t,{Zo:function(){return c},kt:function(){return m}});var r=n(7294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var i=r.createContext({}),u=function(e){var t=r.useContext(i),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},c=function(e){var t=u(e.components);return r.createElement(i.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),d=u(n),m=a,h=d["".concat(i,".").concat(m)]||d[m]||p[m]||l;return n?r.createElement(h,o(o({ref:t},c),{},{components:n})):r.createElement(h,o({ref:t},c))}));function m(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=n.length,o=new Array(l);o[0]=d;var s={};for(var i in t)hasOwnProperty.call(t,i)&&(s[i]=t[i]);s.originalType=e,s.mdxType="string"==typeof e?e:a,o[1]=s;for(var u=2;u<l;u++)o[u]=n[u];return r.createElement.apply(null,o)}return r.createElement.apply(null,n)}d.displayName="MDXCreateElement"},2948:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return s},contentTitle:function(){return i},metadata:function(){return u},toc:function(){return c},default:function(){return d}});var r=n(7462),a=n(3366),l=(n(7294),n(3905)),o=["components"],s={title:"\u7b2c\u4e09\u65b9\u5e93",sidebar_position:7,slug:"/zh-cn/libraries"},i=void 0,u={unversionedId:"zh-cn/Libraries",id:"zh-cn/Libraries",isDocsHomePage:!1,title:"\u7b2c\u4e09\u65b9\u5e93",description:"flv.js",source:"@site/docs/zh-cn/Libraries.md",sourceDirName:"zh-cn",slug:"/zh-cn/libraries",permalink:"/document/zh-cn/libraries",tags:[],version:"current",sidebarPosition:7,frontMatter:{title:"\u7b2c\u4e09\u65b9\u5e93",sidebar_position:7,slug:"/zh-cn/libraries"},sidebar:"zh-cn",previous:{title:"\u5b9e\u4f8b\u4e8b\u4ef6",permalink:"/document/zh-cn/events"},next:{title:"\u5728\u63a7\u5236\u680f\u6dfb\u52a0\u5217\u8868",permalink:"/document/zh-cn/Questions/Create selector in the controls"}},c=[{value:"flv.js",id:"flvjs",children:[],level:2},{value:"hls.js",id:"hlsjs",children:[],level:2},{value:"dash.js",id:"dashjs",children:[],level:2},{value:"shaka-player",id:"shaka-player",children:[],level:2},{value:"webtorrent",id:"webtorrent",children:[],level:2}],p={toc:c};function d(e){var t=e.components,n=(0,a.Z)(e,o);return(0,l.kt)("wrapper",(0,r.Z)({},p,n,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("h2",{id:"flvjs"},"flv.js"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"\u4e3b\u9875: ",(0,l.kt)("a",{parentName:"li",href:"https://github.com/Bilibili/flv.js"},"https://github.com/Bilibili/flv.js"))),(0,l.kt)("div",{className:"run-code","data-libs":"https://cdn.jsdelivr.net/npm/flv.js@1.6.2/dist/flv.min.js"},"\u25b6 Run Code"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-js"},"var art = new Artplayer({\n container: '.artplayer-app',\n autoplay: true,\n url: '/assets/sample/video.flv',\n customType: {\n flv: function (video, url) {\n const flvPlayer = flvjs.createPlayer({\n type: 'flv',\n url: url,\n });\n flvPlayer.attachMediaElement(video);\n flvPlayer.load();\n },\n },\n});\n")),(0,l.kt)("h2",{id:"hlsjs"},"hls.js"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"\u4e3b\u9875: ",(0,l.kt)("a",{parentName:"li",href:"https://github.com/video-dev/hls.js"},"https://github.com/video-dev/hls.js"))),(0,l.kt)("div",{className:"run-code","data-libs":"https://cdn.jsdelivr.net/npm/hls.js@1.1.1/dist/hls.min.js"},"\u25b6 Run Code"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-js"},"var art = new Artplayer({\n container: '.artplayer-app',\n autoplay: true,\n url: 'https://test-streams.mux.dev/x Line truncated
+2
View File
@@ -0,0 +1,2 @@
/*! For license information please see 878.f94e2fc9.js.LICENSE.txt */
(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[878],{1639:function(e,t,n){"use strict";e.exports=n(9281)},7114:function(e,t,n){"use strict";var i=n(5670),r={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:"0"},defaultClasses:{root:"algolia-autocomplete",prefix:"aa",noPrefix:!1,dropdownMenu:"dropdown-menu",input:"input",hint:"hint",suggestions:"suggestions",suggestion:"suggestion",cursor:"cursor",dataset:"dataset",empty:"empty"},appendTo:{wrapper:{position:"absolute",zIndex:"100",display:"none"},input:{},inputWithNoHint:{},dropdown:{display:"block"}}};i.isMsie()&&i.mixin(r.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),i.isMsie()&&i.isMsie()<=7&&i.mixin(r.input,{marginTop:"-1px"}),e.exports=r},3312:function(e,t,n){"use strict";var i="aaDataset",r="aaValue",s="aaDatum",o=n(5670),a=n(3855),u=n(6619),c=n(7114),l=n(6823);function h(e){var t;(e=e||{}).templates=e.templates||{},e.source||o.error("missing source"),e.name&&(t=e.name,!/^[_a-zA-Z0-9-]+$/.test(t))&&o.error("invalid dataset name: "+e.name),this.query=null,this._isEmpty=!0,this.highlight=!!e.highlight,this.name=void 0===e.name||null===e.name?o.getUniqueId():e.name,this.source=e.source,this.displayFn=function(e){return e=e||"value",o.isFunction(e)?e:t;function t(t){return t[e]}}(e.display||e.displayKey),this.debounce=e.debounce,this.cache=!1!==e.cache,this.templates=function(e,t){return{empty:e.empty&&o.templatify(e.empty),header:e.header&&o.templatify(e.header),footer:e.footer&&o.templatify(e.footer),suggestion:e.suggestion||n};function n(e){return"<p>"+t(e)+"</p>"}}(e.templates,this.displayFn),this.css=o.mixin({},c,e.appendTo?c.appendTo:{}),this.cssClasses=e.cssClasses=o.mixin({},c.defaultClasses,e.cssClasses||{}),this.cssClasses.prefix=e.cssClasses.formattedPrefix||o.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix);var n=o.className(this.cssClasses.prefix,this.cssClasses.dataset);this.$el=e.$menu&&e.$menu.find(n+"-"+this.name).length>0?a.element(e.$menu.find(n+"-"+this.name)[0]):a.element(u.dataset.replace("%CLASS%",this.name).replace("%PREFIX%",this.cssClasses.prefix).replace("%DATASET%",this.cssClasses.dataset)),this.$menu=e.$menu,this.clearCachedSuggestions()}h.extractDatasetName=function(e){return a.element(e).data(i)},h.extractValue=function(e){return a.element(e).data(r)},h.extractDatum=function(e){var t=a.element(e).data(s);return"string"==typeof t&&(t=JSON.parse(t)),t},o.mixin(h.prototype,l,{_render:function(e,t){if(this.$el){var n,c=this,l=[].slice.call(arguments,2);if(this.$el.empty(),n=t&&t.length,this._isEmpty=!n,!n&&this.templates.empty)this.$el.html(h.apply(this,l)).prepend(c.templates.header?f.apply(this,l):null).append(c.templates.footer?d.apply(this,l):null);else if(n)this.$el.html(p.apply(this,l)).prepend(c.templates.header?f.apply(this,l):null).append(c.templates.footer?d.apply(this,l):null);else if(t&&!Array.isArray(t))throw new TypeError("suggestions must be an array");this.$menu&&this.$menu.addClass(this.cssClasses.prefix+(n?"with":"without")+"-"+this.name).removeClass(this.cssClasses.prefix+(n?"without":"with")+"-"+this.name),this.trigger("rendered",e)}function h(){var t=[].slice.call(arguments,0);return t=[{query:e,isEmpty:!0}].concat(t),c.templates.empty.apply(this,t)}function p(){var e,n,l=[].slice.call(arguments,0),h=this,p=u.suggestions.replace("%PREFIX%",this.cssClasses.prefix).replace("%SUGGESTIONS%",this.cssClasses.suggestions);return e=a.element(p).css(this.css.suggestions),n=o.map(t,f),e.append.apply(e,n),e;function f(e){var t,n=u.suggestion.replace("%PREFIX%",h.cssClasses.prefix).replace("%SUGGESTION%",h.cssClasses.suggestion);return(t=a.element(n).attr({role:"option",id:["option",Math.floor(1e8*Math.random())].join("-")}).append(c.templates.suggestion.apply(this,[e].concat(l)))).data(i,c.name),t.data(r,c.displayFn(e)||void 0),t.data(s,JSON.stringify(e)),t.children().each((function(){a.element(this).css(h.css.suggestionChild)})),t}}function f(){var t=[].slice.call(arguments,0);return t=[{query:e,isEmpty:!n}].concat(t),c.templates.header.apply(this,t)}function d(){var t=[].slice.call(arguments,0);return t=[{query:e,isEmpty:!n}].concat(t),c.templates.footer.apply(this,t)}},getRoot:function(){return this.$el},update:function(e){function t(t){if(!this.canceled&&e===this.query){var n=[].slice.call(arguments,1);this.cacheSuggestions(e,t,n),this._render.apply(this,[e,t].concat(n))}}if(this.query=e,this.canceled=!1,this.shouldFetchFroLine truncated
@@ -0,0 +1,61 @@
/*!
* lunr.Builder
* Copyright (C) 2020 Oliver Nightingale
*/
/*!
* lunr.Index
* Copyright (C) 2020 Oliver Nightingale
*/
/*!
* lunr.Pipeline
* Copyright (C) 2020 Oliver Nightingale
*/
/*!
* lunr.Set
* Copyright (C) 2020 Oliver Nightingale
*/
/*!
* lunr.TokenSet
* Copyright (C) 2020 Oliver Nightingale
*/
/*!
* lunr.Vector
* Copyright (C) 2020 Oliver Nightingale
*/
/*!
* lunr.stemmer
* Copyright (C) 2020 Oliver Nightingale
* Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt
*/
/*!
* lunr.stopWordFilter
* Copyright (C) 2020 Oliver Nightingale
*/
/*!
* lunr.tokenizer
* Copyright (C) 2020 Oliver Nightingale
*/
/*!
* lunr.trimmer
* Copyright (C) 2020 Oliver Nightingale
*/
/*!
* lunr.utils
* Copyright (C) 2020 Oliver Nightingale
*/
/**
* lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9
* Copyright (C) 2020 Oliver Nightingale
* @license MIT
*/
@@ -0,0 +1 @@
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[53],{1109:function(e){e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"en":[{"type":"link","label":"Quick start","href":"/document/"},{"type":"link","label":"Basic options","href":"/document/options"},{"type":"link","label":"Common properties","href":"/document/propertie"},{"type":"link","label":"Advanced propertys","href":"/document/advance"},{"type":"link","label":"Static propertys","href":"/document/class"},{"type":"link","label":"Common events","href":"/document/events"},{"type":"link","label":"Third party librarys","href":"/document/libraries"},{"type":"category","label":"Common problems","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Add select in the controls","href":"/document/en/Questions/Create selector in the controls"},{"type":"link","label":"Add button to the controls","href":"/document/en/Questions/Create button in the controls"}]}],"zh-cn":[{"type":"link","label":"\u5feb\u901f\u4e0a\u624b","href":"/document/zh-cn"},{"type":"link","label":"\u57fa\u7840\u53c2\u6570","href":"/document/zh-cn/options"},{"type":"link","label":"\u5e38\u7528\u5c5e\u6027","href":"/document/zh-cn/propertie"},{"type":"link","label":"\u9ad8\u7ea7\u5c5e\u6027","href":"/document/zh-cn/advance"},{"type":"link","label":"\u9759\u6001\u5c5e\u6027","href":"/document/zh-cn/class"},{"type":"link","label":"\u5b9e\u4f8b\u4e8b\u4ef6","href":"/document/zh-cn/events"},{"type":"link","label":"\u7b2c\u4e09\u65b9\u5e93","href":"/document/zh-cn/libraries"},{"type":"category","label":"\u5e38\u89c1\u95ee\u9898","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"\u5728\u63a7\u5236\u680f\u6dfb\u52a0\u5217\u8868","href":"/document/zh-cn/Questions/Create selector in the controls"},{"type":"link","label":"\u5728\u63a7\u5236\u680f\u6dfb\u52a0\u6309\u94ae","href":"/document/zh-cn/Questions/Create button in the controls"}]}]}}')}}]);
@@ -0,0 +1 @@
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[811],{3905:function(e,t,n){n.d(t,{Zo:function(){return u},kt:function(){return k}});var a=n(7294);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){if(null==e)return{};var n,a,l=function(e,t){if(null==e)return{};var n,a,l={},r=Object.keys(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}var o=a.createContext({}),d=function(e){var t=a.useContext(o),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},u=function(e){var t=d(e.components);return a.createElement(o.Provider,{value:t},e.children)},m={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},s=a.forwardRef((function(e,t){var n=e.components,l=e.mdxType,r=e.originalType,o=e.parentName,u=p(e,["components","mdxType","originalType","parentName"]),s=d(n),k=l,c=s["".concat(o,".").concat(k)]||s[k]||m[k]||r;return n?a.createElement(c,i(i({ref:t},u),{},{components:n})):a.createElement(c,i({ref:t},u))}));function k(e,t){var n=arguments,l=t&&t.mdxType;if("string"==typeof e||l){var r=n.length,i=new Array(r);i[0]=s;var p={};for(var o in t)hasOwnProperty.call(t,o)&&(p[o]=t[o]);p.originalType=e,p.mdxType="string"==typeof e?e:l,i[1]=p;for(var d=2;d<r;d++)i[d]=n[d];return a.createElement.apply(null,i)}return a.createElement.apply(null,n)}s.displayName="MDXCreateElement"},5003:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return p},contentTitle:function(){return o},metadata:function(){return d},toc:function(){return u},default:function(){return s}});var a=n(7462),l=n(3366),r=(n(7294),n(3905)),i=["components"],p={title:"Basic options",sidebar_position:2,slug:"/options"},o=void 0,d={unversionedId:"en/Options",id:"en/Options",isDocsHomePage:!1,title:"Basic options",description:"container",source:"@site/docs/en/Options.md",sourceDirName:"en",slug:"/options",permalink:"/document/options",tags:[],version:"current",sidebarPosition:2,frontMatter:{title:"Basic options",sidebar_position:2,slug:"/options"},sidebar:"en",previous:{title:"Quick start",permalink:"/document/"},next:{title:"Common properties",permalink:"/document/propertie"}},u=[{value:"container",id:"container",children:[],level:2},{value:"url",id:"url",children:[],level:2},{value:"poster",id:"poster",children:[],level:2},{value:"title",id:"title",children:[],level:2},{value:"theme",id:"theme",children:[],level:2},{value:"volume",id:"volume",children:[],level:2},{value:"isLive",id:"islive",children:[],level:2},{value:"muted",id:"muted",children:[],level:2},{value:"autoplay",id:"autoplay",children:[],level:2},{value:"autoSize",id:"autosize",children:[],level:2},{value:"autoMini",id:"automini",children:[],level:2},{value:"loop",id:"loop",children:[],level:2},{value:"flip",id:"flip",children:[],level:2},{value:"rotate",id:"rotate",children:[],level:2},{value:"playbackRate",id:"playbackrate",children:[],level:2},{value:"aspectRatio",id:"aspectratio",children:[],level:2},{value:"screenshot",id:"screenshot",children:[],level:2},{value:"setting",id:"setting",children:[],level:2},{value:"hotkey",id:"hotkey",children:[],level:2},{value:"pip",id:"pip",children:[],level:2},{value:"mutex",id:"mutex",children:[],level:2},{value:"fullscreen",id:"fullscreen",children:[],level:2},{value:"fullscreenWeb",id:"fullscreenweb",children:[],level:2},{value:"subtitleOffset",id:"subtitleoffset",children:[],level:2},{value:"miniProgressBar",id:"miniprogressbar",children:[],level:2},{value:"localVideo",id:"localvideo",children:[],level:2},{value:"localSubtitle",id:"localsubtitle",children:[],level:2},{value:"useSSR",id:"usessr",children:[],level:2},{value:"layers",id:"layers",children:[],level:2},{value:"contextmenu",id:"contextmenu",children:[],level:2},{value:"controls",id:"controls",children:[],level:2},{value:"quality",id:"quality",children:[],level:2},{value:"highlight",id:"highlight",children:[],level:2},{value:"plugins",id:"plugins",children:[],level:2},{value:"whitelist",id:"whitelist",children:[],level:2},{value:"thumbnails",id:"thumbnails",children:[],level:2},{value:"subtitle",id:"subtitle",children:[],level:2},{value:"moreLine truncated
+1
View File
@@ -0,0 +1 @@
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[979,514],{6979:function(e,a,n){var r=n(7294),c=n(4184),t=n.n(c),s=n(6775),l=n(2263),u=n(8084);a.Z=function(e){var a=(0,r.useRef)(!1),c=(0,r.useRef)(null),h=(0,s.k6)(),o=(0,l.Z)().siteConfig,i=(void 0===o?{}:o).baseUrl,d=(0,u.usePluginData)("docusaurus-lunr-search"),f=function(){a.current||(Promise.all([fetch(""+i+d.fileNames.searchDoc).then((function(e){return e.json()})),fetch(""+i+d.fileNames.lunrIndex).then((function(e){return e.json()})),Promise.all([n.e(878),n.e(245)]).then(n.bind(n,4130)),Promise.all([n.e(532),n.e(343)]).then(n.bind(n,3343))]).then((function(e){var a=e[0],n=e[1],r=e[2].default;0!==a.length&&function(e,a,n){new n({searchDocs:e,searchIndex:a,inputSelector:"#search_input_react",handleSelected:function(e,a,n){var r=i+n.url;document.createElement("a").href=r,h.push(r)}})}(a,n,r)})),a.current=!0)},p=(0,r.useCallback)((function(a){c.current.contains(a.target)||c.current.focus(),e.handleSearchBarToggle&&e.handleSearchBarToggle(!e.isSearchBarExpanded)}),[e.isSearchBarExpanded]);return r.createElement("div",{className:"navbar__search",key:"search-box"},r.createElement("span",{"aria-label":"expand searchbar",role:"button",className:t()("search-icon",{"search-icon-hidden":e.isSearchBarExpanded}),onClick:p,onKeyDown:p,tabIndex:0}),r.createElement("input",{id:"search_input_react",type:"search",placeholder:"Search","aria-label":"Search",className:t()("navbar__search-input",{"search-bar-expanded":e.isSearchBarExpanded},{"search-bar":!e.isSearchBarExpanded}),onClick:f,onMouseOver:f,onFocus:p,onBlur:p,ref:c}))}}}]);
@@ -0,0 +1 @@
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[182],{3905:function(e,n,t){t.d(n,{Zo:function(){return p},kt:function(){return m}});var r=t(7294);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function i(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function o(e,n){if(null==e)return{};var t,r,a=function(e,n){if(null==e)return{};var t,r,a={},l=Object.keys(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)t=l[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var c=r.createContext({}),s=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},p=function(e){var n=s(e.components);return r.createElement(c.Provider,{value:n},e.children)},u={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},d=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,l=e.originalType,c=e.parentName,p=o(e,["components","mdxType","originalType","parentName"]),d=s(t),m=a,k=d["".concat(c,".").concat(m)]||d[m]||u[m]||l;return t?r.createElement(k,i(i({ref:n},p),{},{components:t})):r.createElement(k,i({ref:n},p))}));function m(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var l=t.length,i=new Array(l);i[0]=d;var o={};for(var c in n)hasOwnProperty.call(n,c)&&(o[c]=n[c]);o.originalType=e,o.mdxType="string"==typeof e?e:a,i[1]=o;for(var s=2;s<l;s++)i[s]=t[s];return r.createElement.apply(null,i)}return r.createElement.apply(null,t)}d.displayName="MDXCreateElement"},4981:function(e,n,t){t.r(n),t.d(n,{frontMatter:function(){return o},contentTitle:function(){return c},metadata:function(){return s},toc:function(){return p},default:function(){return d}});var r=t(7462),a=t(3366),l=(t(7294),t(3905)),i=["components"],o={title:"Static propertys",sidebar_position:5,slug:"/class"},c=void 0,s={unversionedId:"en/Class",id:"en/Class",isDocsHomePage:!1,title:"Static propertys",description:"Static attributes exist in the constructor artplayer, and the player instance is not directly associated",source:"@site/docs/en/Class.md",sourceDirName:"en",slug:"/class",permalink:"/document/class",tags:[],version:"current",sidebarPosition:5,frontMatter:{title:"Static propertys",sidebar_position:5,slug:"/class"},sidebar:"en",previous:{title:"Advanced propertys",permalink:"/document/advance"},next:{title:"Common events",permalink:"/document/events"}},p=[{value:"instances",id:"instances",children:[],level:2},{value:"version",id:"version",children:[],level:2},{value:"env",id:"env",children:[],level:2},{value:"utils",id:"utils",children:[],level:2},{value:"config",id:"config",children:[],level:2},{value:"scheme",id:"scheme",children:[],level:2},{value:"validator",id:"validator",children:[],level:2},{value:"option",id:"option",children:[],level:2},{value:"html",id:"html",children:[],level:2},{value:"kindOf",id:"kindof",children:[],level:2}],u={toc:p};function d(e){var n=e.components,t=(0,a.Z)(e,i);return(0,l.kt)("wrapper",(0,r.Z)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,l.kt)("div",{className:"admonition admonition-tip alert alert--success"},(0,l.kt)("div",{parentName:"div",className:"admonition-heading"},(0,l.kt)("h5",{parentName:"div"},(0,l.kt)("span",{parentName:"h5",className:"admonition-icon"},(0,l.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",viewBox:"0 0 12 16"},(0,l.kt)("path",{parentName:"svg",fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"}))),"Tip")),(0,l.kt)("div",{parentName:"div",className:"admonition-content"},(0,l.kt)("p",{parentName:"div"},"Static attributes exist in the constructor artplayer, and the player instance is not directly associated"))),(0,l.kt)("h2",{id:"instances"},"instances"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Type: ",(0,l.kt)("inlineCode",{parentName:"li"},"Array"))),(0,l.kt)("p"Line truncated
@@ -0,0 +1 @@
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[96],{3905:function(e,t,n){n.d(t,{Zo:function(){return m},kt:function(){return s}});var a=n(7294);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){if(null==e)return{};var n,a,l=function(e,t){if(null==e)return{};var n,a,l={},r=Object.keys(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}var d=a.createContext({}),o=function(e){var t=a.useContext(d),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},m=function(e){var t=o(e.components);return a.createElement(d.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},k=a.forwardRef((function(e,t){var n=e.components,l=e.mdxType,r=e.originalType,d=e.parentName,m=p(e,["components","mdxType","originalType","parentName"]),k=o(n),s=l,N=k["".concat(d,".").concat(s)]||k[s]||u[s]||r;return n?a.createElement(N,i(i({ref:t},m),{},{components:n})):a.createElement(N,i({ref:t},m))}));function s(e,t){var n=arguments,l=t&&t.mdxType;if("string"==typeof e||l){var r=n.length,i=new Array(r);i[0]=k;var p={};for(var d in t)hasOwnProperty.call(t,d)&&(p[d]=t[d]);p.originalType=e,p.mdxType="string"==typeof e?e:l,i[1]=p;for(var o=2;o<r;o++)i[o]=n[o];return a.createElement.apply(null,i)}return a.createElement.apply(null,n)}k.displayName="MDXCreateElement"},831:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return p},contentTitle:function(){return d},metadata:function(){return o},toc:function(){return m},default:function(){return k}});var a=n(7462),l=n(3366),r=(n(7294),n(3905)),i=["components"],p={title:"\u9ad8\u7ea7\u5c5e\u6027",sidebar_position:4,slug:"/zh-cn/advance"},d=void 0,o={unversionedId:"zh-cn/Advance",id:"zh-cn/Advance",isDocsHomePage:!1,title:"\u9ad8\u7ea7\u5c5e\u6027",description:"\u8fd9\u9875\u9762\u662f\u5bf9\u5e38\u7528\u5c5e\u6027\u7684\u4e00\u4e9b\u989d\u5916\u8865\u5145\uff0c\u9700\u8981\u6df1\u5165\u5f00\u53d1\u81ea\u5b9a\u4e49\u529f\u80fd\u65f6\u624d\u9700\u8981\u9605\u8bfb",source:"@site/docs/zh-cn/Advance.md",sourceDirName:"zh-cn",slug:"/zh-cn/advance",permalink:"/document/zh-cn/advance",tags:[],version:"current",sidebarPosition:4,frontMatter:{title:"\u9ad8\u7ea7\u5c5e\u6027",sidebar_position:4,slug:"/zh-cn/advance"},sidebar:"zh-cn",previous:{title:"\u5e38\u7528\u5c5e\u6027",permalink:"/document/zh-cn/propertie"},next:{title:"\u9759\u6001\u5c5e\u6027",permalink:"/document/zh-cn/class"}},m=[{value:"id",id:"id",children:[],level:2},{value:"option",id:"option",children:[],level:2},{value:"isFocus",id:"isfocus",children:[],level:2},{value:"isDestroy",id:"isdestroy",children:[],level:2},{value:"userAgent",id:"useragent",children:[],level:2},{value:"isMobile",id:"ismobile",children:[],level:2},{value:"isWechat",id:"iswechat",children:[],level:2},{value:"whitelist",id:"whitelist",children:[],level:2},{value:"template",id:"template",children:[],level:2},{value:"query",id:"query",children:[],level:2},{value:"storage",id:"storage",children:[],level:2},{value:"icons",id:"icons",children:[],level:2},{value:"i18n",id:"i18n",children:[],level:2},{value:"player",id:"player",children:[],level:2},{value:"subtitle",id:"subtitle",children:[],level:2},{value:"info",id:"info",children:[],level:2},{value:"layers",id:"layers",children:[],level:2},{value:"notice",id:"notice",children:[],level:2},{value:"controls",id:"controls",children:[],level:2},{value:"contextmenu",id:"contextmenu",children:[],level:2},{value:"loading",id:"loading",children:[],level:2},{value:"mask",id:"mask",children:[],level:2},{value:"hotkey",id:"hotkey",children:[],level:2},{value:"setting",id:"setting",children:[],level:2},{value:"plugins",id:"plugins",children:[],level:2}],u={toc:m};function k(e){var t=e.components,n=(0,l.Z)(e,i);return(0,r.kt)("wrapper",(0,a.Z)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("div",{className:"admonition admonition-tip alert alert--success"},(0,r.kt)("div",{parentName:"div",className:"admonition-heading"},(0,r.kt)("h5",{parentName:"div"},(0,r.kt)("span",{parentName:"h5",className:"admonition-icon"},(0,r.kt)("svg",{parentName:"span",xLine truncated
@@ -0,0 +1 @@
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[612],{3905:function(e,t,n){n.d(t,{Zo:function(){return u},kt:function(){return m}});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s=r.createContext({}),c=function(e){var t=r.useContext(s),n=t;return e&&(n="function"==typeof e?e(t):a(a({},t),e)),n},u=function(e){var t=c(e.components);return r.createElement(s.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},d=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,s=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),d=c(n),m=o,f=d["".concat(s,".").concat(m)]||d[m]||p[m]||i;return n?r.createElement(f,a(a({ref:t},u),{},{components:n})):r.createElement(f,a({ref:t},u))}));function m(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,a=new Array(i);a[0]=d;var l={};for(var s in t)hasOwnProperty.call(t,s)&&(l[s]=t[s]);l.originalType=e,l.mdxType="string"==typeof e?e:o,a[1]=l;for(var c=2;c<i;c++)a[c]=n[c];return r.createElement.apply(null,a)}return r.createElement.apply(null,n)}d.displayName="MDXCreateElement"},4087:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return l},contentTitle:function(){return s},metadata:function(){return c},toc:function(){return u},default:function(){return d}});var r=n(7462),o=n(3366),i=(n(7294),n(3905)),a=["components"],l={title:"Add select in the controls",sidebar_position:1},s=void 0,c={unversionedId:"en/Questions/Create selector in the controls",id:"en/Questions/Create selector in the controls",isDocsHomePage:!1,title:"Add select in the controls",description:"Sometimes you need to add a list in the controls, then you can use the selector and onSelect attribute when adding controls",source:"@site/docs/en/Questions/Create selector in the controls.md",sourceDirName:"en/Questions",slug:"/en/Questions/Create selector in the controls",permalink:"/document/en/Questions/Create selector in the controls",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"Add select in the controls",sidebar_position:1},sidebar:"en",previous:{title:"Third party librarys",permalink:"/document/libraries"},next:{title:"Add button to the controls",permalink:"/document/en/Questions/Create button in the controls"}},u=[],p={toc:u};function d(e){var t=e.components,n=(0,o.Z)(e,a);return(0,i.kt)("wrapper",(0,r.Z)({},p,n,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("p",null,"Sometimes you need to add a list in the controls, then you can use the ",(0,i.kt)("inlineCode",{parentName:"p"},"selector")," and ",(0,i.kt)("inlineCode",{parentName:"p"},"onSelect")," attribute when adding controls"),(0,i.kt)("div",{className:"run-code"},"\u25b6 Run Code"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"var art = new Artplayer({\n container: '.artplayer-app',\n url: '/assets/sample/video.mp4',\n controls: [\n {\n position: 'right',\n html: 'Subtitle 01',\n selector: [\n {\n default: true,\n html: '<span style=\"color:red\">Subtitle 01</span>',\n url: '/assets/sample/subtitle.srt?id=1',\n },\n {\n html: '<span style=\"color:yellow\">Subtitle 02</span>',\n url: '/assets/sample/subtitle.srt?id=2',\n },\n ],\n onSelect: function (item, $dom) {\n art.subtitle.switch(item.url, {\n name: $dom.innerText,\n });\n\n return 'You click ' + item.html;\n },\n },\n ],\n});\n")))}d.isMDXComponent=!0}}]);
@@ -0,0 +1 @@
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[757],{3905:function(e,t,r){r.d(t,{Zo:function(){return p},kt:function(){return m}});var n=r(7294);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},l=Object.keys(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var i=n.createContext({}),u=function(e){var t=n.useContext(i),r=t;return e&&(r="function"==typeof e?e(t):o(o({},t),e)),r},p=function(e){var t=u(e.components);return n.createElement(i.Provider,{value:t},e.children)},c={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},d=n.forwardRef((function(e,t){var r=e.components,a=e.mdxType,l=e.originalType,i=e.parentName,p=s(e,["components","mdxType","originalType","parentName"]),d=u(r),m=a,h=d["".concat(i,".").concat(m)]||d[m]||c[m]||l;return r?n.createElement(h,o(o({ref:t},p),{},{components:r})):n.createElement(h,o({ref:t},p))}));function m(e,t){var r=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var l=r.length,o=new Array(l);o[0]=d;var s={};for(var i in t)hasOwnProperty.call(t,i)&&(s[i]=t[i]);s.originalType=e,s.mdxType="string"==typeof e?e:a,o[1]=s;for(var u=2;u<l;u++)o[u]=r[u];return n.createElement.apply(null,o)}return n.createElement.apply(null,r)}d.displayName="MDXCreateElement"},9340:function(e,t,r){r.r(t),r.d(t,{frontMatter:function(){return s},contentTitle:function(){return i},metadata:function(){return u},toc:function(){return p},default:function(){return d}});var n=r(7462),a=r(3366),l=(r(7294),r(3905)),o=["components"],s={title:"Third party librarys",sidebar_position:7,slug:"/libraries"},i=void 0,u={unversionedId:"en/Libraries",id:"en/Libraries",isDocsHomePage:!1,title:"Third party librarys",description:"flv.js",source:"@site/docs/en/Libraries.md",sourceDirName:"en",slug:"/libraries",permalink:"/document/libraries",tags:[],version:"current",sidebarPosition:7,frontMatter:{title:"Third party librarys",sidebar_position:7,slug:"/libraries"},sidebar:"en",previous:{title:"Common events",permalink:"/document/events"},next:{title:"Add select in the controls",permalink:"/document/en/Questions/Create selector in the controls"}},p=[{value:"flv.js",id:"flvjs",children:[],level:2},{value:"hls.js",id:"hlsjs",children:[],level:2},{value:"dash.js",id:"dashjs",children:[],level:2},{value:"shaka-player",id:"shaka-player",children:[],level:2},{value:"webtorrent",id:"webtorrent",children:[],level:2}],c={toc:p};function d(e){var t=e.components,r=(0,a.Z)(e,o);return(0,l.kt)("wrapper",(0,n.Z)({},c,r,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("h2",{id:"flvjs"},"flv.js"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Homepage: ",(0,l.kt)("a",{parentName:"li",href:"https://github.com/Bilibili/flv.js"},"https://github.com/Bilibili/flv.js"))),(0,l.kt)("div",{className:"run-code","data-libs":"https://cdn.jsdelivr.net/npm/flv.js@1.6.2/dist/flv.min.js"},"\u25b6 Run Code"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-js"},"var art = new Artplayer({\n container: '.artplayer-app',\n autoplay: true,\n url: '/assets/sample/video.flv',\n customType: {\n flv: function (video, url) {\n const flvPlayer = flvjs.createPlayer({\n type: 'flv',\n url: url,\n });\n flvPlayer.attachMediaElement(video);\n flvPlayer.load();\n },\n },\n});\n")),(0,l.kt)("h2",{id:"hlsjs"},"hls.js"),(0,l.kt)("ul",null,(0,l.kt)("li",{parentName:"ul"},"Homepage: ",(0,l.kt)("a",{parentName:"li",href:"https://github.com/video-dev/hls.js"},"https://github.com/video-dev/hls.js"))),(0,l.kt)("div",{className:"run-code","data-libs":"https://cdn.jsdelivr.net/npm/hls.js@1.1.1/dist/hls.min.js"},"\u25b6 Run Code"),(0,l.kt)("pre",null,(0,l.kt)("code",{parentName:"pre",className:"language-js"},"var art = new Artplayer({\n container: '.artplayer-app',\n autoplay: true,\n url: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8',\n customType: {\n m3u8: function (video, url) {\n var hls Line truncated
@@ -0,0 +1 @@
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[410],{3905:function(e,t,n){n.d(t,{Zo:function(){return l},kt:function(){return d}});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var u=r.createContext({}),s=function(e){var t=r.useContext(u),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},l=function(e){var t=s(e.components);return r.createElement(u.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},f=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,u=e.parentName,l=a(e,["components","mdxType","originalType","parentName"]),f=s(n),d=o,m=f["".concat(u,".").concat(d)]||f[d]||p[d]||i;return n?r.createElement(m,c(c({ref:t},l),{},{components:n})):r.createElement(m,c({ref:t},l))}));function d(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,c=new Array(i);c[0]=f;var a={};for(var u in t)hasOwnProperty.call(t,u)&&(a[u]=t[u]);a.originalType=e,a.mdxType="string"==typeof e?e:o,c[1]=a;for(var s=2;s<i;s++)c[s]=n[s];return r.createElement.apply(null,c)}return r.createElement.apply(null,n)}f.displayName="MDXCreateElement"},1736:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return a},contentTitle:function(){return u},metadata:function(){return s},toc:function(){return l},default:function(){return f}});var r=n(7462),o=n(3366),i=(n(7294),n(3905)),c=["components"],a={title:"Add button to the controls",sidebar_position:2},u=void 0,s={unversionedId:"en/Questions/Create button in the controls",id:"en/Questions/Create button in the controls",isDocsHomePage:!1,title:"Add button to the controls",description:"\u25b6 Run Code",source:"@site/docs/en/Questions/Create button in the controls.md",sourceDirName:"en/Questions",slug:"/en/Questions/Create button in the controls",permalink:"/document/en/Questions/Create button in the controls",tags:[],version:"current",sidebarPosition:2,frontMatter:{title:"Add button to the controls",sidebar_position:2},sidebar:"en",previous:{title:"Add select in the controls",permalink:"/document/en/Questions/Create selector in the controls"}},l=[],p={toc:l};function f(e){var t=e.components,n=(0,o.Z)(e,c);return(0,i.kt)("wrapper",(0,r.Z)({},p,n,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("div",{className:"run-code"},"\u25b6 Run Code"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"var time = 0;\nvar art = new Artplayer({\n container: '.artplayer-app',\n url: '/assets/sample/video.mp4',\n controls: [\n {\n position: 'right',\n html: '<button type=\"button\">Click Me!</button>',\n click: function (_, event) {\n // The second parameter is an event object\n time += 1;\n event.target.innerText = 'You Click ' + time;\n },\n },\n ],\n});\n")))}f.isMDXComponent=!0}}]);
@@ -0,0 +1 @@
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[922],{3905:function(e,t,n){n.d(t,{Zo:function(){return u},kt:function(){return f}});var r=n(7294);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=r.createContext({}),s=function(e){var t=r.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},u=function(e){var t=s(e.components);return r.createElement(l.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,o=e.mdxType,i=e.originalType,l=e.parentName,u=a(e,["components","mdxType","originalType","parentName"]),m=s(n),f=o,d=m["".concat(l,".").concat(f)]||m[f]||p[f]||i;return n?r.createElement(d,c(c({ref:t},u),{},{components:n})):r.createElement(d,c({ref:t},u))}));function f(e,t){var n=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var i=n.length,c=new Array(i);c[0]=m;var a={};for(var l in t)hasOwnProperty.call(t,l)&&(a[l]=t[l]);a.originalType=e,a.mdxType="string"==typeof e?e:o,c[1]=a;for(var s=2;s<i;s++)c[s]=n[s];return r.createElement.apply(null,c)}return r.createElement.apply(null,n)}m.displayName="MDXCreateElement"},5933:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return a},contentTitle:function(){return l},metadata:function(){return s},toc:function(){return u},default:function(){return m}});var r=n(7462),o=n(3366),i=(n(7294),n(3905)),c=["components"],a={title:"\u5728\u63a7\u5236\u680f\u6dfb\u52a0\u5217\u8868",sidebar_position:1},l=void 0,s={unversionedId:"zh-cn/Questions/Create selector in the controls",id:"zh-cn/Questions/Create selector in the controls",isDocsHomePage:!1,title:"\u5728\u63a7\u5236\u680f\u6dfb\u52a0\u5217\u8868",description:"\u6709\u65f6\u4f60\u9700\u8981\u5728\u63a7\u5236\u680f\u6dfb\u52a0\u5217\u8868\uff0c\u90a3\u4e48\u4f60\u53ef\u4ee5\u5728\u6dfb\u52a0\u63a7\u4ef6\u7684\u65f6\u5019\u4f7f\u7528 selector \u548c onSelect \u5c5e\u6027",source:"@site/docs/zh-cn/Questions/Create selector in the controls.md",sourceDirName:"zh-cn/Questions",slug:"/zh-cn/Questions/Create selector in the controls",permalink:"/document/zh-cn/Questions/Create selector in the controls",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"\u5728\u63a7\u5236\u680f\u6dfb\u52a0\u5217\u8868",sidebar_position:1},sidebar:"zh-cn",previous:{title:"\u7b2c\u4e09\u65b9\u5e93",permalink:"/document/zh-cn/libraries"},next:{title:"\u5728\u63a7\u5236\u680f\u6dfb\u52a0\u6309\u94ae",permalink:"/document/zh-cn/Questions/Create button in the controls"}},u=[],p={toc:u};function m(e){var t=e.components,n=(0,o.Z)(e,c);return(0,i.kt)("wrapper",(0,r.Z)({},p,n,{components:t,mdxType:"MDXLayout"}),(0,i.kt)("p",null,"\u6709\u65f6\u4f60\u9700\u8981\u5728\u63a7\u5236\u680f\u6dfb\u52a0\u5217\u8868\uff0c\u90a3\u4e48\u4f60\u53ef\u4ee5\u5728\u6dfb\u52a0\u63a7\u4ef6\u7684\u65f6\u5019\u4f7f\u7528 ",(0,i.kt)("inlineCode",{parentName:"p"},"selector")," \u548c ",(0,i.kt)("inlineCode",{parentName:"p"},"onSelect")," \u5c5e\u6027"),(0,i.kt)("div",{className:"run-code"},"\u25b6 Run Code"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre",className:"language-js"},"var art = new Artplayer({\n container: '.artplayer-app',\n url: '/assets/sample/video.mp4',\n controls: [\n {\n position: 'right',\n html: 'Subtitle 01',\n selector: [\n {\n default: true,\n html: '<span style=\"color:red\">Subtitle 01</span>',\n url: '/assets/sample/subtitle.srt?id=1',\n },\n {\n html: '<span style=\"color:yellow\">Subtitle 02</span>',\n url: '/assets/sample/subtitle.srt?id=2',\n },\n ],\n onSelect: function (item, $dom) {\n art.subtitle.switch(item.url, {\n name: $dom.innerText,\n });\n\n Line truncated
@@ -0,0 +1 @@
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[721],{3905:function(e,n,t){t.d(n,{Zo:function(){return u},kt:function(){return m}});var l=t(7294);function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);n&&(l=l.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,l)}return t}function i(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){r(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function o(e,n){if(null==e)return{};var t,l,r=function(e,n){if(null==e)return{};var t,l,r={},a=Object.keys(e);for(l=0;l<a.length;l++)t=a[l],n.indexOf(t)>=0||(r[t]=e[t]);return r}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)t=a[l],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}var c=l.createContext({}),s=function(e){var n=l.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):i(i({},n),e)),t},u=function(e){var n=s(e.components);return l.createElement(c.Provider,{value:n},e.children)},p={inlineCode:"code",wrapper:function(e){var n=e.children;return l.createElement(l.Fragment,{},n)}},d=l.forwardRef((function(e,n){var t=e.components,r=e.mdxType,a=e.originalType,c=e.parentName,u=o(e,["components","mdxType","originalType","parentName"]),d=s(t),m=r,k=d["".concat(c,".").concat(m)]||d[m]||p[m]||a;return t?l.createElement(k,i(i({ref:n},u),{},{components:t})):l.createElement(k,i({ref:n},u))}));function m(e,n){var t=arguments,r=n&&n.mdxType;if("string"==typeof e||r){var a=t.length,i=new Array(a);i[0]=d;var o={};for(var c in n)hasOwnProperty.call(n,c)&&(o[c]=n[c]);o.originalType=e,o.mdxType="string"==typeof e?e:r,i[1]=o;for(var s=2;s<a;s++)i[s]=t[s];return l.createElement.apply(null,i)}return l.createElement.apply(null,t)}d.displayName="MDXCreateElement"},3722:function(e,n,t){t.r(n),t.d(n,{frontMatter:function(){return o},contentTitle:function(){return c},metadata:function(){return s},toc:function(){return u},default:function(){return d}});var l=t(7462),r=t(3366),a=(t(7294),t(3905)),i=["components"],o={title:"\u9759\u6001\u5c5e\u6027",sidebar_position:5,slug:"/zh-cn/class"},c=void 0,s={unversionedId:"zh-cn/Class",id:"zh-cn/Class",isDocsHomePage:!1,title:"\u9759\u6001\u5c5e\u6027",description:"\u9759\u6001\u5c5e\u6027\u5b58\u5728\u4e8e\u6784\u9020\u51fd\u6570 Artplayer \u4e0a\uff0c\u548c\u64ad\u653e\u5668\u5b9e\u4f8b\u6ca1\u6709\u76f4\u63a5\u5173\u8054",source:"@site/docs/zh-cn/Class.md",sourceDirName:"zh-cn",slug:"/zh-cn/class",permalink:"/document/zh-cn/class",tags:[],version:"current",sidebarPosition:5,frontMatter:{title:"\u9759\u6001\u5c5e\u6027",sidebar_position:5,slug:"/zh-cn/class"},sidebar:"zh-cn",previous:{title:"\u9ad8\u7ea7\u5c5e\u6027",permalink:"/document/zh-cn/advance"},next:{title:"\u5b9e\u4f8b\u4e8b\u4ef6",permalink:"/document/zh-cn/events"}},u=[{value:"instances",id:"instances",children:[],level:2},{value:"version",id:"version",children:[],level:2},{value:"env",id:"env",children:[],level:2},{value:"utils",id:"utils",children:[],level:2},{value:"config",id:"config",children:[],level:2},{value:"scheme",id:"scheme",children:[],level:2},{value:"validator",id:"validator",children:[],level:2},{value:"option",id:"option",children:[],level:2},{value:"html",id:"html",children:[],level:2},{value:"kindOf",id:"kindof",children:[],level:2}],p={toc:u};function d(e){var n=e.components,t=(0,r.Z)(e,i);return(0,a.kt)("wrapper",(0,l.Z)({},p,t,{components:n,mdxType:"MDXLayout"}),(0,a.kt)("div",{className:"admonition admonition-tip alert alert--success"},(0,a.kt)("div",{parentName:"div",className:"admonition-heading"},(0,a.kt)("h5",{parentName:"div"},(0,a.kt)("span",{parentName:"h5",className:"admonition-icon"},(0,a.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"16",viewBox:"0 0 12 16"},(0,a.kt)("path",{parentName:"svg",fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"}))),"\u63d0\u793a")),(0,a.kt)("div",{parentName:"div",className:"admonition-content"},(0,a.kt)("p",{parentName:"div"},"\u9759\u6001\u5c5e\u6027\u5b58\u5728\u4e8e\u6784\u9020\u51fd\u6570 ",(0,a.kt)("inlineCode",{parentName:"p"},"ArtplayerLine truncated
@@ -0,0 +1 @@
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[14],{3905:function(e,t,n){n.d(t,{Zo:function(){return p},kt:function(){return c}});var a=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},l=Object.keys(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var d=a.createContext({}),s=function(e){var t=a.useContext(d),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},p=function(e){var t=s(e.components);return a.createElement(d.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},m=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,l=e.originalType,d=e.parentName,p=i(e,["components","mdxType","originalType","parentName"]),m=s(n),c=r,v=m["".concat(d,".").concat(c)]||m[c]||u[c]||l;return n?a.createElement(v,o(o({ref:t},p),{},{components:n})):a.createElement(v,o({ref:t},p))}));function c(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=n.length,o=new Array(l);o[0]=m;var i={};for(var d in t)hasOwnProperty.call(t,d)&&(i[d]=t[d]);i.originalType=e,i.mdxType="string"==typeof e?e:r,o[1]=i;for(var s=2;s<l;s++)o[s]=n[s];return a.createElement.apply(null,o)}return a.createElement.apply(null,n)}m.displayName="MDXCreateElement"},7733:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return i},contentTitle:function(){return d},metadata:function(){return s},toc:function(){return p},default:function(){return m}});var a=n(7462),r=n(3366),l=(n(7294),n(3905)),o=["components"],i={title:"Common events",sidebar_position:6,slug:"/events"},d=void 0,s={unversionedId:"en/Events",id:"en/Events",isDocsHomePage:!1,title:"Common events",description:"The event of the player is divided into two, a native event of a video, and another is a custom event. The native event comes from Video Elements, is the original event of the Video Element, in order to distinguish it and custom events, the native event adds a prefix video:",source:"@site/docs/en/Events.mdx",sourceDirName:"en",slug:"/events",permalink:"/document/events",tags:[],version:"current",sidebarPosition:6,frontMatter:{title:"Common events",sidebar_position:6,slug:"/events"},sidebar:"en",previous:{title:"Static propertys",permalink:"/document/class"},next:{title:"Third party librarys",permalink:"/document/libraries"}},p=[{value:"Native event",id:"native-event",children:[],level:2},{value:"Custom event",id:"custom-event",children:[{value:"ready",id:"ready",children:[],level:3},{value:"play",id:"play",children:[],level:3},{value:"pause",id:"pause",children:[],level:3},{value:"seek",id:"seek",children:[],level:3},{value:"volume",id:"volume",children:[],level:3},{value:"destroy",id:"destroy",children:[],level:3},{value:"focus",id:"focus",children:[],level:3},{value:"blur",id:"blur",children:[],level:3},{value:"hover",id:"hover",children:[],level:3},{value:"resize",id:"resize",children:[],level:3},{value:"mousemove",id:"mousemove",children:[],level:3},{value:"url",id:"url",children:[],level:3},{value:"fullscreen",id:"fullscreen",children:[],level:3},{value:"fullscreenWeb",id:"fullscreenweb",children:[],level:3},{value:"hotkey",id:"hotkey",children:[],level:3}],level:2}],u={toc:p};function m(e){var t=e.components,n=(0,r.Z)(e,o);return(0,l.kt)("wrapper",(0,a.Z)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,l.kt)("p",null,"The event of the player is divided into two, a ",(0,l.kt)("inlineCode",{parentName:"p"},"native event")," of a video, and another is a ",(0,l.kt)("inlineCode",{parentName:"p"},"custom event"),". The ",(0,l.kt)("inlineCode",{parentName:"p"},"native event")," comes from ",(0,l.kt)("inlineCode",{parentName:"p"},"Video Elements"),", is the original event of the ",(0,l.kt)("inlineCode",{parentName:"p"},"Video Element"),", in order to distinguish it and ",(0,l.kt)("inlineCode",{parentName:"p"},"custom events"),", the native event adds a prefix ",(0,l.kt)("inlineCode",{parentName:"p"},"video:")),(0,l.kt)("h2",{id:"native-event"},"Native event"),(0,l.kt)("p",null,"For more informatLine truncated
@@ -0,0 +1 @@
"use strict";(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[303],{3905:function(e,t,n){n.d(t,{Zo:function(){return m},kt:function(){return s}});var a=n(7294);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){if(null==e)return{};var n,a,l=function(e,t){if(null==e)return{};var n,a,l={},r=Object.keys(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||(l[n]=e[n]);return l}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}var d=a.createContext({}),o=function(e){var t=a.useContext(d),n=t;return e&&(n="function"==typeof e?e(t):i(i({},t),e)),n},m=function(e){var t=o(e.components);return a.createElement(d.Provider,{value:t},e.children)},u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},k=a.forwardRef((function(e,t){var n=e.components,l=e.mdxType,r=e.originalType,d=e.parentName,m=p(e,["components","mdxType","originalType","parentName"]),k=o(n),s=l,N=k["".concat(d,".").concat(s)]||k[s]||u[s]||r;return n?a.createElement(N,i(i({ref:t},m),{},{components:n})):a.createElement(N,i({ref:t},m))}));function s(e,t){var n=arguments,l=t&&t.mdxType;if("string"==typeof e||l){var r=n.length,i=new Array(r);i[0]=k;var p={};for(var d in t)hasOwnProperty.call(t,d)&&(p[d]=t[d]);p.originalType=e,p.mdxType="string"==typeof e?e:l,i[1]=p;for(var o=2;o<r;o++)i[o]=n[o];return a.createElement.apply(null,i)}return a.createElement.apply(null,n)}k.displayName="MDXCreateElement"},3117:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return p},contentTitle:function(){return d},metadata:function(){return o},toc:function(){return m},default:function(){return k}});var a=n(7462),l=n(3366),r=(n(7294),n(3905)),i=["components"],p={title:"\u57fa\u7840\u53c2\u6570",sidebar_position:2,slug:"/zh-cn/options"},d=void 0,o={unversionedId:"zh-cn/Options",id:"zh-cn/Options",isDocsHomePage:!1,title:"\u57fa\u7840\u53c2\u6570",description:"container",source:"@site/docs/zh-cn/Options.md",sourceDirName:"zh-cn",slug:"/zh-cn/options",permalink:"/document/zh-cn/options",tags:[],version:"current",sidebarPosition:2,frontMatter:{title:"\u57fa\u7840\u53c2\u6570",sidebar_position:2,slug:"/zh-cn/options"},sidebar:"zh-cn",previous:{title:"\u5feb\u901f\u4e0a\u624b",permalink:"/document/zh-cn"},next:{title:"\u5e38\u7528\u5c5e\u6027",permalink:"/document/zh-cn/propertie"}},m=[{value:"container",id:"container",children:[],level:2},{value:"url",id:"url",children:[],level:2},{value:"poster",id:"poster",children:[],level:2},{value:"title",id:"title",children:[],level:2},{value:"theme",id:"theme",children:[],level:2},{value:"volume",id:"volume",children:[],level:2},{value:"isLive",id:"islive",children:[],level:2},{value:"muted",id:"muted",children:[],level:2},{value:"autoplay",id:"autoplay",children:[],level:2},{value:"autoSize",id:"autosize",children:[],level:2},{value:"autoMini",id:"automini",children:[],level:2},{value:"loop",id:"loop",children:[],level:2},{value:"flip",id:"flip",children:[],level:2},{value:"rotate",id:"rotate",children:[],level:2},{value:"playbackRate",id:"playbackrate",children:[],level:2},{value:"aspectRatio",id:"aspectratio",children:[],level:2},{value:"screenshot",id:"screenshot",children:[],level:2},{value:"setting",id:"setting",children:[],level:2},{value:"hotkey",id:"hotkey",children:[],level:2},{value:"pip",id:"pip",children:[],level:2},{value:"mutex",id:"mutex",children:[],level:2},{value:"fullscreen",id:"fullscreen",children:[],level:2},{value:"fullscreenWeb",id:"fullscreenweb",children:[],level:2},{value:"subtitleOffset",id:"subtitleoffset",children:[],level:2},{value:"miniProgressBar",id:"miniprogressbar",children:[],level:2},{value:"localVideo",id:"localvideo",children:[],level:2},{value:"localSubtitle",id:"localsubtitle",children:[],level:2},{value:"useSSR",id:"usessr",children:[],level:2},{value:"layers",id:"layers",children:[],level:2},{value:"contextmenu",id:"contextmenu",children:[],level:2},{value:"controls",id:"controls",children:[],level:2},{value:"quality",id:"quality",children:[],level:2},{value:"highlight",id:"highlight",children:[],level:2},{value:"plugins",id:"plugins",children:[],level:2},{value:"whitelist",id:"whitelist",children:[],level:2},{value:"thumbnails"Line truncated
+2
View File
@@ -0,0 +1,2 @@
/*! For license information please see main.57814af2.js.LICENSE.txt */
(self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[]).push([[179],{9782:function(e,t){"use strict";t.Z={title:"Artplayer.js",tagline:"Public Product Api Document",url:"https://artplayer.org",baseUrl:"/document/",onBrokenLinks:"ignore",onBrokenMarkdownLinks:"ignore",organizationName:"zhw2590582",projectName:"Artplayer",favicon:"img/favicon.ico",clientModules:["/Users/zhaohaiwei/Desktop/github/ArtPlayer/packages/artplayer-document/src/script/main.js"],themeConfig:{hideableSidebar:!0,navbar:{title:"Artplayer.js",items:[{href:"https://artplayer.org",position:"left",label:"Online Editor"},{href:"https://artplayer.org/?libs=.%2Funcompiled%2Fartplayer-plugin-danmuku.js&example=danmuku",position:"left",label:"Danmuku Demo"},{href:"https://github.com/zhw2590582/ArtPlayer",position:"left",label:"Github"},{href:"#",label:"QQ\u7fa4: 320881312",position:"right"},{label:"v 4.x.x",position:"right",items:[{label:"v 3.x.x",href:"https://artplayer.org/document_v3/"}]},{label:"English",position:"right",items:[{label:"English",href:"/"},{label:"\u4e2d\u6587",href:"/zh-cn/"}]}],hideOnScroll:!1},footer:{style:"dark",copyright:"Copyright \xa9 2021 Artplayer.js, Inc. Built with Docusaurus.",links:[]},prism:{theme:{plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},darkTheme:{plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},additionalLanguages:[]},colorMode:{defaultMode:"light",disableSwitch:!1,respectPrefersColorScheme:!1,switchConfig:{darkIcon:"\ud83c\udf1c",darkIconStyle:{},lightIcon:"\ud83c\udf1e",lightIconStyle:{}}},docs:{versionPersistence:"localStorage"},metadatas:[],tableOfContents:{minHeadingLevel:2,maxHeadingLevel:3}},plugins:["/Users/zhaohaiwei/Desktop/github/ArtPlayer/packages/artplayer-document/node_modules/docusaurus-lunr-search/src/index.js"],presets:[["@docusaurus/preset-classic",{docs:{path:"./docs",routeBasePath:"/",sidebarPath:"/Users/zhaohaiwei/Desktop/github/ArtPlayer/packages/artplayer-document/sidebars.js"},blog:!1,theme:{customCss:"/Users/zhaohaiwei/Desktop/github/ArtPlayer/packages/artplayer-document/src/css/custom.css"}}]],baseUrlIssueBanner:!0,i18n:{defaultLocale:"en",locales:["en"],localeConfigs:{}},onDuplicateRoutes:"warn",customFields:{},themes:[],titleDelimiter:"|",noIndex:!1}},2067:function(e,t,n){"use strict";var r=n(7294),a=n(3935),o=n(3727),i=n(8356),l=n.n(i),u=function(e){var t=e.error,n=e.retry,a=e.pastDelay;return t?r.createElement("div",{style:{align:"center",color:"#fff",backgroundColor:"#fa383e",borderColor:"#fa383e",borderStyle:"solid",borderRadius:"0.25rem",borderWidth:"1px",boxSizing:"border-box",display:"block",padding:"1rem",flex:"0 0 50%",marginLeft:"25%",marginRight:"25%",marginTop:"5rem",maxWidth:"50%",width:"100%"}},r.createElement("p",null,t.message),r.createElement("div",null,r.createElement("button",{type:"button",onClick:n},"Retry"))):a?r.createElement("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"}},r.createElement("svg",{id:"loader",style:{width:128,height:110,position:"absolute",top:"calc(100vh - 64%)"},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb"},r.createElement("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2"},r.createElement("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0"},r.createElement("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),r.createElement("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})),r.createElement("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0"},r.cLine truncated
@@ -0,0 +1,44 @@
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
* @license MIT */
/** @license React v0.20.2
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v17.0.2
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/** @license React v17.0.2
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
@@ -0,0 +1 @@
!function(){"use strict";var e,t,n,r,o,a={},c={};function f(e){var t=c[e];if(void 0!==t)return t.exports;var n=c[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,f),n.loaded=!0,n.exports}f.m=a,f.c=c,e=[],f.O=function(t,n,r,o){if(!n){var a=1/0;for(i=0;i<e.length;i++){n=e[i][0],r=e[i][1],o=e[i][2];for(var c=!0,u=0;u<n.length;u++)(!1&o||a>=o)&&Object.keys(f.O).every((function(e){return f.O[e](n[u])}))?n.splice(u--,1):(c=!1,o<a&&(a=o));if(c){e.splice(i--,1);var d=r();void 0!==d&&(t=d)}}return t}o=o||0;for(var i=e.length;i>0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[n,r,o]},f.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},f.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var o=Object.create(null);f.r(o);var a={};t=t||[null,n({}),n([]),n(n)];for(var c=2&r&&e;"object"==typeof c&&!~t.indexOf(c);c=n(c))Object.getOwnPropertyNames(c).forEach((function(t){a[t]=function(){return e[t]}}));return a.default=function(){return e},f.d(o,a),o},f.d=function(e,t){for(var n in t)f.o(t,n)&&!f.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},f.f={},f.e=function(e){return Promise.all(Object.keys(f.f).reduce((function(t,n){return f.f[n](e,t),t}),[]))},f.u=function(e){return"assets/js/"+({14:"faf6497a",53:"935f2afb",96:"cc0122d1",176:"0a29ddce",182:"9e17caf1",220:"5d64abea",270:"246dbf43",303:"fb30adf9",410:"e2c628ea",514:"1be78505",575:"7d40ea66",576:"7086e348",612:"dabd5ce5",721:"f68770c9",757:"dd094eca",811:"95803a7a",873:"724d0398",918:"17896441",922:"f2d412ac",928:"385d9f37",941:"0fa62a73"}[e]||e)+"."+{14:"42cb83c0",42:"b3ee4f67",53:"c0c58923",96:"f8b13b0a",176:"1fed6dca",182:"e35d50a3",220:"8eff1c1f",245:"58da7dca",270:"dd96cd1b",303:"c9093d3e",343:"e9b08a58",410:"d8cda147",514:"8a6f2a07",573:"79c03de1",575:"19a2c96f",576:"5d7cac0a",612:"e6fccc43",667:"36c9babf",721:"41095c8d",757:"c267be40",811:"4096822d",873:"2fcf097f",878:"f94e2fc9",918:"97de5859",922:"67787f1c",928:"355ab0c3",941:"b9646fa0",979:"bcfe14ba"}[e]+".js"},f.miniCssF=function(e){return"assets/css/styles.f21e1cf1.css"},f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),f.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},o="artplayer-document:",f.l=function(e,t,n,a){if(r[e])r[e].push(t);else{var c,u;if(void 0!==n)for(var d=document.getElementsByTagName("script"),i=0;i<d.length;i++){var l=d[i];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==o+n){c=l;break}}c||(u=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,f.nc&&c.setAttribute("nonce",f.nc),c.setAttribute("data-webpack",o+n),c.src=e),r[e]=[t];var s=function(t,n){c.onerror=c.onload=null,clearTimeout(b);var o=r[e];if(delete r[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((function(e){return e(n)})),t)return t(n)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=s.bind(null,c.onerror),c.onload=s.bind(null,c.onload),u&&document.head.appendChild(c)}},f.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.p="/document/",f.gca=function(e){return e={17896441:"918",faf6497a:"14","935f2afb":"53",cc0122d1:"96","0a29ddce":"176","9e17caf1":"182","5d64abea":"220","246dbf43":"270",fb30adf9:"303",e2c628ea:"410","1be78505":"514","7d40ea66":"575","7086e348":"576",dabd5ce5:"612",f68770c9:"721",dd094eca:"757","95803a7a":"811","724d0398":"873",f2d412ac:"922","385d9f37":"928","0fa62a73":"941"}[e]||e,f.p+f.u(e)},function(){var e={552:0,532:0};f.f.j=function(t,n){var r=f.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else if(/^5[35]2$/.test(t))e[t]=0;else{var o=new Promise((function(n,o){r=e[t]=[n,o]}));n.push(r[2]=o);var a=f.p+f.u(t),c=new Error;f.l(a,(function(n){if(f.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;c.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",c.name="ChunkLoadError",c.type=o,c.request=a,r[1](c)}}),"chunk-"+t,t)}},f.O.j=function(t){return 0===e[t]};var t=function(t,n){var r,o,a=n[0],c=n[1],u=n[2],d=0;if(a.some((function(t){return 0!==e[t]}))){for(r in c)f.o(c,r)&&(f.m[r]=c[r]);if(u)var i=u(f)}for(t&&t(n);d<a.length;d++)o=a[d],f.o(e,o)&&e[o]&&e[o][0](),e[a[d]]=0;return f.O(i)},n=self.webpackChunkartplayer_document=self.webpackChunkartplayer_document||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}()}();
+17
View File
@@ -0,0 +1,17 @@
<!doctype html>
<html class="docs-version-current" lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="generator" content="Docusaurus v2.0.0-beta.9">
<title data-react-helmet="true">Static propertys | Artplayer.js</title><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:url" content="https://artplayer.org/document/class"><meta data-react-helmet="true" name="docusaurus_locale" content="en"><meta data-react-helmet="true" name="docusaurus_version" content="current"><meta data-react-helmet="true" name="docusaurus_tag" content="docs-default-current"><meta data-react-helmet="true" property="og:title" content="Static propertys | Artplayer.js"><meta data-react-helmet="true" name="description" content="Static attributes exist in the constructor artplayer, and the player instance is not directly associated"><meta data-react-helmet="true" property="og:description" content="Static attributes exist in the constructor artplayer, and the player instance is not directly associated"><link data-react-helmet="true" rel="shortcut icon" href="/document/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://artplayer.org/document/class"><link data-react-helmet="true" rel="alternate" href="https://artplayer.org/document/class" hreflang="en"><link data-react-helmet="true" rel="alternate" href="https://artplayer.org/document/class" hreflang="x-default"><link rel="stylesheet" href="/document/assets/css/styles.f21e1cf1.css">
<link rel="preload" href="/document/assets/js/runtime~main.32512733.js" as="script">
<link rel="preload" href="/document/assets/js/main.57814af2.js" as="script">
</head>
<body>
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}()</script><div id="__docusaurus">
<div><a href="#" class="skipToContent_OuoZ">Skip to main content</a></div><nav class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Navigation bar toggle" class="navbar__toggle clean-btn" type="button" tabindex="0"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/document/"><b class="navbar__title">Artplayer.js</b></a><a href="https://artplayer.org" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Online Editor<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a><a href="https://artplayer.org/?libs=.%2Funcompiled%2Fartplayer-plugin-danmuku.js&amp;example=danmuku" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Danmuku Demo<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a><a href="https://github.com/zhw2590582/ArtPlayer" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Github<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a></div><div class="navbar__items navbar__items--right"><a href="#" class="navbar__item navbar__link">QQ群: 320881312</a><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a class="navbar__link">v 4.x.x</a><ul class="dropdown__menu"><li><a href="https://artplayer.org/document_v3/" target="_blank" rel="noopener noreferrer" class="dropdown__link"><span>v 3.x.x<svg width="12" height="12" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a></li></ul></div><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a class="navbar__link">English</a><ul class="dropdown__menu"><li><a class="dropdown__link" href="/document/">English</a></li><li><a class="dropdown__link" href="/document/zh-cn/">中文</a></li></ul></div><div class="toggle_iYfV toggle_2i4l toggleDisabled_xj38"><div class="toggleTrack_t-f2" role="button" tabindex="-1"><div class="toggleTrackCheck_mk7D"><span class="toggleIcon_pHJ9">🌜</span></div><div class="toggleTrackX_dm8H"><span class="toggleIcon_pHJ9">🌞</span></div><div class="toggleTrackThumb_W6To"></div></div><input type="checkbox" class="toggleScreenReader_h9qa" aria-label="Switch between dark and light mode"></div><div class="navbar__search"><span aria-label="expand searchbar" role="button" class="search-icon" tabindex="0"></span><input type="search" id="search_input_react" placeholder="Search" aria-label="Search" class="navbar__search-input search-bar"></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div class="main-wrapper docs-wrapper docs-doc-page"><div class="docPage_lDyR"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_i9tI" type="button"></button><aside class="docSidebarContainer_0YBq"><div class="sidebar_a3j0"><nav class="menu thin-scrollbar menu_cyFh"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/">Quick start</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/options">Basic options</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/propertie">Common properties</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/advance">Advanced propertys</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" href="/document/class">Static propertys</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/events">Common events</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__Line truncated
<script src="/document/assets/js/runtime~main.32512733.js"></script>
<script src="/document/assets/js/main.57814af2.js"></script>
</body>
</html>
@@ -0,0 +1,17 @@
<!doctype html>
<html class="docs-version-current" lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="generator" content="Docusaurus v2.0.0-beta.9">
<title data-react-helmet="true">Add button to the controls | Artplayer.js</title><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:url" content="https://artplayer.org/document/en/Questions/Create button in the controls"><meta data-react-helmet="true" name="docusaurus_locale" content="en"><meta data-react-helmet="true" name="docusaurus_version" content="current"><meta data-react-helmet="true" name="docusaurus_tag" content="docs-default-current"><meta data-react-helmet="true" property="og:title" content="Add button to the controls | Artplayer.js"><meta data-react-helmet="true" name="description" content="▶ Run Code"><meta data-react-helmet="true" property="og:description" content="▶ Run Code"><link data-react-helmet="true" rel="shortcut icon" href="/document/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://artplayer.org/document/en/Questions/Create button in the controls"><link data-react-helmet="true" rel="alternate" href="https://artplayer.org/document/en/Questions/Create button in the controls" hreflang="en"><link data-react-helmet="true" rel="alternate" href="https://artplayer.org/document/en/Questions/Create button in the controls" hreflang="x-default"><link rel="stylesheet" href="/document/assets/css/styles.f21e1cf1.css">
<link rel="preload" href="/document/assets/js/runtime~main.32512733.js" as="script">
<link rel="preload" href="/document/assets/js/main.57814af2.js" as="script">
</head>
<body>
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}()</script><div id="__docusaurus">
<div><a href="#" class="skipToContent_OuoZ">Skip to main content</a></div><nav class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Navigation bar toggle" class="navbar__toggle clean-btn" type="button" tabindex="0"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/document/"><b class="navbar__title">Artplayer.js</b></a><a href="https://artplayer.org" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Online Editor<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a><a href="https://artplayer.org/?libs=.%2Funcompiled%2Fartplayer-plugin-danmuku.js&amp;example=danmuku" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Danmuku Demo<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a><a href="https://github.com/zhw2590582/ArtPlayer" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Github<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a></div><div class="navbar__items navbar__items--right"><a href="#" class="navbar__item navbar__link">QQ群: 320881312</a><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a class="navbar__link">v 4.x.x</a><ul class="dropdown__menu"><li><a href="https://artplayer.org/document_v3/" target="_blank" rel="noopener noreferrer" class="dropdown__link"><span>v 3.x.x<svg width="12" height="12" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a></li></ul></div><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a class="navbar__link">English</a><ul class="dropdown__menu"><li><a class="dropdown__link" href="/document/">English</a></li><li><a class="dropdown__link" href="/document/zh-cn/">中文</a></li></ul></div><div class="toggle_iYfV toggle_2i4l toggleDisabled_xj38"><div class="toggleTrack_t-f2" role="button" tabindex="-1"><div class="toggleTrackCheck_mk7D"><span class="toggleIcon_pHJ9">🌜</span></div><div class="toggleTrackX_dm8H"><span class="toggleIcon_pHJ9">🌞</span></div><div class="toggleTrackThumb_W6To"></div></div><input type="checkbox" class="toggleScreenReader_h9qa" aria-label="Switch between dark and light mode"></div><div class="navbar__search"><span aria-label="expand searchbar" role="button" class="search-icon" tabindex="0"></span><input type="search" id="search_input_react" placeholder="Search" aria-label="Search" class="navbar__search-input search-bar"></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div class="main-wrapper docs-wrapper docs-doc-page"><div class="docPage_lDyR"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_i9tI" type="button"></button><aside class="docSidebarContainer_0YBq"><div class="sidebar_a3j0"><nav class="menu thin-scrollbar menu_cyFh"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/">Quick start</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/options">Basic options</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/propertie">Common properties</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/advance">Advanced propertys</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/class">Static propertys</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/events">Common events</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/libraries">Third Line truncated
<script src="/document/assets/js/runtime~main.32512733.js"></script>
<script src="/document/assets/js/main.57814af2.js"></script>
</body>
</html>
@@ -0,0 +1,17 @@
<!doctype html>
<html class="docs-version-current" lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="generator" content="Docusaurus v2.0.0-beta.9">
<title data-react-helmet="true">Add select in the controls | Artplayer.js</title><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:url" content="https://artplayer.org/document/en/Questions/Create selector in the controls"><meta data-react-helmet="true" name="docusaurus_locale" content="en"><meta data-react-helmet="true" name="docusaurus_version" content="current"><meta data-react-helmet="true" name="docusaurus_tag" content="docs-default-current"><meta data-react-helmet="true" property="og:title" content="Add select in the controls | Artplayer.js"><meta data-react-helmet="true" name="description" content="Sometimes you need to add a list in the controls, then you can use the selector and onSelect attribute when adding controls"><meta data-react-helmet="true" property="og:description" content="Sometimes you need to add a list in the controls, then you can use the selector and onSelect attribute when adding controls"><link data-react-helmet="true" rel="shortcut icon" href="/document/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://artplayer.org/document/en/Questions/Create selector in the controls"><link data-react-helmet="true" rel="alternate" href="https://artplayer.org/document/en/Questions/Create selector in the controls" hreflang="en"><link data-react-helmet="true" rel="alternate" href="https://artplayer.org/document/en/Questions/Create selector in the controls" hreflang="x-default"><link rel="stylesheet" href="/document/assets/css/styles.f21e1cf1.css">
<link rel="preload" href="/document/assets/js/runtime~main.32512733.js" as="script">
<link rel="preload" href="/document/assets/js/main.57814af2.js" as="script">
</head>
<body>
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}()</script><div id="__docusaurus">
<div><a href="#" class="skipToContent_OuoZ">Skip to main content</a></div><nav class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Navigation bar toggle" class="navbar__toggle clean-btn" type="button" tabindex="0"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/document/"><b class="navbar__title">Artplayer.js</b></a><a href="https://artplayer.org" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Online Editor<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a><a href="https://artplayer.org/?libs=.%2Funcompiled%2Fartplayer-plugin-danmuku.js&amp;example=danmuku" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Danmuku Demo<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a><a href="https://github.com/zhw2590582/ArtPlayer" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Github<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a></div><div class="navbar__items navbar__items--right"><a href="#" class="navbar__item navbar__link">QQ群: 320881312</a><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a class="navbar__link">v 4.x.x</a><ul class="dropdown__menu"><li><a href="https://artplayer.org/document_v3/" target="_blank" rel="noopener noreferrer" class="dropdown__link"><span>v 3.x.x<svg width="12" height="12" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a></li></ul></div><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a class="navbar__link">English</a><ul class="dropdown__menu"><li><a class="dropdown__link" href="/document/">English</a></li><li><a class="dropdown__link" href="/document/zh-cn/">中文</a></li></ul></div><div class="toggle_iYfV toggle_2i4l toggleDisabled_xj38"><div class="toggleTrack_t-f2" role="button" tabindex="-1"><div class="toggleTrackCheck_mk7D"><span class="toggleIcon_pHJ9">🌜</span></div><div class="toggleTrackX_dm8H"><span class="toggleIcon_pHJ9">🌞</span></div><div class="toggleTrackThumb_W6To"></div></div><input type="checkbox" class="toggleScreenReader_h9qa" aria-label="Switch between dark and light mode"></div><div class="navbar__search"><span aria-label="expand searchbar" role="button" class="search-icon" tabindex="0"></span><input type="search" id="search_input_react" placeholder="Search" aria-label="Search" class="navbar__search-input search-bar"></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div class="main-wrapper docs-wrapper docs-doc-page"><div class="docPage_lDyR"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_i9tI" type="button"></button><aside class="docSidebarContainer_0YBq"><div class="sidebar_a3j0"><nav class="menu thin-scrollbar menu_cyFh"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/">Quick start</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/options">Basic options</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/propertie">Common properties</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/advance">Advanced propertys</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/class">Static propertys</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/events">Common events</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/libraries">Third Line truncated
<script src="/document/assets/js/runtime~main.32512733.js"></script>
<script src="/document/assets/js/main.57814af2.js"></script>
</body>
</html>
+17
View File
@@ -0,0 +1,17 @@
<!doctype html>
<html class="docs-version-current" lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="generator" content="Docusaurus v2.0.0-beta.9">
<title data-react-helmet="true">Common events | Artplayer.js</title><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:url" content="https://artplayer.org/document/events"><meta data-react-helmet="true" name="docusaurus_locale" content="en"><meta data-react-helmet="true" name="docusaurus_version" content="current"><meta data-react-helmet="true" name="docusaurus_tag" content="docs-default-current"><meta data-react-helmet="true" property="og:title" content="Common events | Artplayer.js"><meta data-react-helmet="true" name="description" content="The event of the player is divided into two, a native event of a video, and another is a custom event. The native event comes from Video Elements, is the original event of the Video Element, in order to distinguish it and custom events, the native event adds a prefix video:"><meta data-react-helmet="true" property="og:description" content="The event of the player is divided into two, a native event of a video, and another is a custom event. The native event comes from Video Elements, is the original event of the Video Element, in order to distinguish it and custom events, the native event adds a prefix video:"><link data-react-helmet="true" rel="shortcut icon" href="/document/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://artplayer.org/document/events"><link data-react-helmet="true" rel="alternate" href="https://artplayer.org/document/events" hreflang="en"><link data-react-helmet="true" rel="alternate" href="https://artplayer.org/document/events" hreflang="x-default"><link rel="stylesheet" href="/document/assets/css/styles.f21e1cf1.css">
<link rel="preload" href="/document/assets/js/runtime~main.32512733.js" as="script">
<link rel="preload" href="/document/assets/js/main.57814af2.js" as="script">
</head>
<body>
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}()</script><div id="__docusaurus">
<div><a href="#" class="skipToContent_OuoZ">Skip to main content</a></div><nav class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Navigation bar toggle" class="navbar__toggle clean-btn" type="button" tabindex="0"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/document/"><b class="navbar__title">Artplayer.js</b></a><a href="https://artplayer.org" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Online Editor<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a><a href="https://artplayer.org/?libs=.%2Funcompiled%2Fartplayer-plugin-danmuku.js&amp;example=danmuku" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Danmuku Demo<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a><a href="https://github.com/zhw2590582/ArtPlayer" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Github<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a></div><div class="navbar__items navbar__items--right"><a href="#" class="navbar__item navbar__link">QQ群: 320881312</a><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a class="navbar__link">v 4.x.x</a><ul class="dropdown__menu"><li><a href="https://artplayer.org/document_v3/" target="_blank" rel="noopener noreferrer" class="dropdown__link"><span>v 3.x.x<svg width="12" height="12" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a></li></ul></div><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a class="navbar__link">English</a><ul class="dropdown__menu"><li><a class="dropdown__link" href="/document/">English</a></li><li><a class="dropdown__link" href="/document/zh-cn/">中文</a></li></ul></div><div class="toggle_iYfV toggle_2i4l toggleDisabled_xj38"><div class="toggleTrack_t-f2" role="button" tabindex="-1"><div class="toggleTrackCheck_mk7D"><span class="toggleIcon_pHJ9">🌜</span></div><div class="toggleTrackX_dm8H"><span class="toggleIcon_pHJ9">🌞</span></div><div class="toggleTrackThumb_W6To"></div></div><input type="checkbox" class="toggleScreenReader_h9qa" aria-label="Switch between dark and light mode"></div><div class="navbar__search"><span aria-label="expand searchbar" role="button" class="search-icon" tabindex="0"></span><input type="search" id="search_input_react" placeholder="Search" aria-label="Search" class="navbar__search-input search-bar"></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div class="main-wrapper docs-wrapper docs-doc-page"><div class="docPage_lDyR"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_i9tI" type="button"></button><aside class="docSidebarContainer_0YBq"><div class="sidebar_a3j0"><nav class="menu thin-scrollbar menu_cyFh"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/">Quick start</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/options">Basic options</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/propertie">Common properties</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/advance">Advanced propertys</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/class">Static propertys</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" href="/document/events">Common events</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__Line truncated
<script src="/document/assets/js/runtime~main.32512733.js"></script>
<script src="/document/assets/js/main.57814af2.js"></script>
</body>
</html>
File renamed without changes.
+17
View File
@@ -0,0 +1,17 @@
<!doctype html>
<html class="docs-version-current" lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="generator" content="Docusaurus v2.0.0-beta.9">
<title data-react-helmet="true">Quick start | Artplayer.js</title><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:url" content="https://artplayer.org/document/"><meta data-react-helmet="true" name="docusaurus_locale" content="en"><meta data-react-helmet="true" name="docusaurus_version" content="current"><meta data-react-helmet="true" name="docusaurus_tag" content="docs-default-current"><meta data-react-helmet="true" property="og:title" content="Quick start | Artplayer.js"><meta data-react-helmet="true" name="description" content="Install"><meta data-react-helmet="true" property="og:description" content="Install"><link data-react-helmet="true" rel="shortcut icon" href="/document/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://artplayer.org/document/"><link data-react-helmet="true" rel="alternate" href="https://artplayer.org/document/" hreflang="en"><link data-react-helmet="true" rel="alternate" href="https://artplayer.org/document/" hreflang="x-default"><script data-react-helmet="true">function maybeInsertBanner(){window.__DOCUSAURUS_INSERT_BASEURL_BANNER&&insertBanner()}function insertBanner(){var n=document.getElementById("docusaurus-base-url-issue-banner-container");if(n){n.innerHTML='\n<div id="docusaurus-base-url-issue-banner" style="border: thick solid red; background-color: rgb(255, 230, 179); margin: 20px; padding: 20px; font-size: 20px;">\n <p style="font-weight: bold; font-size: 30px;">Your Docusaurus site did not load properly.</p>\n <p>A very common reason is a wrong site <a href="https://docusaurus.io/docs/docusaurus.config.js/#baseurl" style="font-weight: bold;">baseUrl configuration</a>.</p>\n <p>Current configured baseUrl = <span style="font-weight: bold; color: red;">/document/</span> </p>\n <p>We suggest trying baseUrl = <span id="docusaurus-base-url-issue-banner-suggestion-container" style="font-weight: bold; color: green;"></span></p>\n</div>\n';var e=document.getElementById("docusaurus-base-url-issue-banner-suggestion-container"),s=window.location.pathname,r="/"===s.substr(-1)?s:s+"/";e.innerHTML=r}}window.__DOCUSAURUS_INSERT_BASEURL_BANNER=!0,document.addEventListener("DOMContentLoaded",maybeInsertBanner)</script><link rel="stylesheet" href="/document/assets/css/styles.f21e1cf1.css">
<link rel="preload" href="/document/assets/js/runtime~main.32512733.js" as="script">
<link rel="preload" href="/document/assets/js/main.57814af2.js" as="script">
</head>
<body>
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}()</script><div id="__docusaurus">
<div id="docusaurus-base-url-issue-banner-container"></div><div><a href="#" class="skipToContent_OuoZ">Skip to main content</a></div><nav class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Navigation bar toggle" class="navbar__toggle clean-btn" type="button" tabindex="0"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/document/"><b class="navbar__title">Artplayer.js</b></a><a href="https://artplayer.org" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Online Editor<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a><a href="https://artplayer.org/?libs=.%2Funcompiled%2Fartplayer-plugin-danmuku.js&amp;example=danmuku" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Danmuku Demo<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a><a href="https://github.com/zhw2590582/ArtPlayer" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Github<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a></div><div class="navbar__items navbar__items--right"><a href="#" class="navbar__item navbar__link">QQ群: 320881312</a><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a class="navbar__link">v 4.x.x</a><ul class="dropdown__menu"><li><a href="https://artplayer.org/document_v3/" target="_blank" rel="noopener noreferrer" class="dropdown__link"><span>v 3.x.x<svg width="12" height="12" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a></li></ul></div><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a class="navbar__link">English</a><ul class="dropdown__menu"><li><a class="dropdown__link" href="/document/">English</a></li><li><a class="dropdown__link" href="/document/zh-cn/">中文</a></li></ul></div><div class="toggle_iYfV toggle_2i4l toggleDisabled_xj38"><div class="toggleTrack_t-f2" role="button" tabindex="-1"><div class="toggleTrackCheck_mk7D"><span class="toggleIcon_pHJ9">🌜</span></div><div class="toggleTrackX_dm8H"><span class="toggleIcon_pHJ9">🌞</span></div><div class="toggleTrackThumb_W6To"></div></div><input type="checkbox" class="toggleScreenReader_h9qa" aria-label="Switch between dark and light mode"></div><div class="navbar__search"><span aria-label="expand searchbar" role="button" class="search-icon" tabindex="0"></span><input type="search" id="search_input_react" placeholder="Search" aria-label="Search" class="navbar__search-input search-bar"></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div class="main-wrapper docs-wrapper docs-doc-page"><div class="docPage_lDyR"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_i9tI" type="button"></button><aside class="docSidebarContainer_0YBq"><div class="sidebar_a3j0"><nav class="menu thin-scrollbar menu_cyFh"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" href="/document/">Quick start</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/options">Basic options</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/propertie">Common properties</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/advance">Advanced propertys</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/class">Static propertys</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/events">Common events</a></li><li class="theme-doc-sidebar-item-link theme-doc-Line truncated
<script src="/document/assets/js/runtime~main.32512733.js"></script>
<script src="/document/assets/js/main.57814af2.js"></script>
</body>
</html>
+17
View File
@@ -0,0 +1,17 @@
<!doctype html>
<html class="docs-version-current" lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="generator" content="Docusaurus v2.0.0-beta.9">
<title data-react-helmet="true">Third party librarys | Artplayer.js</title><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:url" content="https://artplayer.org/document/libraries"><meta data-react-helmet="true" name="docusaurus_locale" content="en"><meta data-react-helmet="true" name="docusaurus_version" content="current"><meta data-react-helmet="true" name="docusaurus_tag" content="docs-default-current"><meta data-react-helmet="true" property="og:title" content="Third party librarys | Artplayer.js"><meta data-react-helmet="true" name="description" content="flv.js"><meta data-react-helmet="true" property="og:description" content="flv.js"><link data-react-helmet="true" rel="shortcut icon" href="/document/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://artplayer.org/document/libraries"><link data-react-helmet="true" rel="alternate" href="https://artplayer.org/document/libraries" hreflang="en"><link data-react-helmet="true" rel="alternate" href="https://artplayer.org/document/libraries" hreflang="x-default"><link rel="stylesheet" href="/document/assets/css/styles.f21e1cf1.css">
<link rel="preload" href="/document/assets/js/runtime~main.32512733.js" as="script">
<link rel="preload" href="/document/assets/js/main.57814af2.js" as="script">
</head>
<body>
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}()</script><div id="__docusaurus">
<div><a href="#" class="skipToContent_OuoZ">Skip to main content</a></div><nav class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Navigation bar toggle" class="navbar__toggle clean-btn" type="button" tabindex="0"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/document/"><b class="navbar__title">Artplayer.js</b></a><a href="https://artplayer.org" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Online Editor<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a><a href="https://artplayer.org/?libs=.%2Funcompiled%2Fartplayer-plugin-danmuku.js&amp;example=danmuku" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Danmuku Demo<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a><a href="https://github.com/zhw2590582/ArtPlayer" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Github<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a></div><div class="navbar__items navbar__items--right"><a href="#" class="navbar__item navbar__link">QQ群: 320881312</a><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a class="navbar__link">v 4.x.x</a><ul class="dropdown__menu"><li><a href="https://artplayer.org/document_v3/" target="_blank" rel="noopener noreferrer" class="dropdown__link"><span>v 3.x.x<svg width="12" height="12" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a></li></ul></div><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a class="navbar__link">English</a><ul class="dropdown__menu"><li><a class="dropdown__link" href="/document/">English</a></li><li><a class="dropdown__link" href="/document/zh-cn/">中文</a></li></ul></div><div class="toggle_iYfV toggle_2i4l toggleDisabled_xj38"><div class="toggleTrack_t-f2" role="button" tabindex="-1"><div class="toggleTrackCheck_mk7D"><span class="toggleIcon_pHJ9">🌜</span></div><div class="toggleTrackX_dm8H"><span class="toggleIcon_pHJ9">🌞</span></div><div class="toggleTrackThumb_W6To"></div></div><input type="checkbox" class="toggleScreenReader_h9qa" aria-label="Switch between dark and light mode"></div><div class="navbar__search"><span aria-label="expand searchbar" role="button" class="search-icon" tabindex="0"></span><input type="search" id="search_input_react" placeholder="Search" aria-label="Search" class="navbar__search-input search-bar"></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div class="main-wrapper docs-wrapper docs-doc-page"><div class="docPage_lDyR"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_i9tI" type="button"></button><aside class="docSidebarContainer_0YBq"><div class="sidebar_a3j0"><nav class="menu thin-scrollbar menu_cyFh"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/">Quick start</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/options">Basic options</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/propertie">Common properties</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/advance">Advanced propertys</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/class">Static propertys</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/events">Common events</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link menu__link--active" aria-current="Line truncated
<script src="/document/assets/js/runtime~main.32512733.js"></script>
<script src="/document/assets/js/main.57814af2.js"></script>
</body>
</html>
@@ -0,0 +1 @@
{"version":"2.3.9","fields":["title","content","keywords"],"fieldVectors":[["title/0",[0,313.393,1,375.097,2,261.126]],["content/0",[0,4.495,1,5.38,2,5.425,3,0.12,4,0.306,5,0.306,6,0.601,7,7.963,8,6.097,9,0.415,10,0.4,11,0.558,12,0.378,13,0.407,14,0.356,15,0.524,16,4.775,17,4.775,18,3.445,19,7.938,20,7.938,21,7.938,22,6.163,23,2.414,24,7.938,25,6.916,26,5.38,27,6.953,28,2.654,29,5.38,30,7.938,31,0.264]],["keywords/0",[]],["title/1",[0,313.393,2,261.126,32,514.097]],["content/1",[0,5.619,2,6.343,3,0.119,4,0.251,5,0.251,6,0.34,9,0.34,10,0.328,11,0.481,12,0.31,13,0.334,14,0.539,15,0.43,16,3.917,17,3.917,18,5.217,22,3.491,23,1.98,31,0.216,32,6.049,33,6.512,34,4.676,35,6.049,36,3.76,37,9.923,38,9.923,39,5.001,40,7.214,41,4.003,42,6.512,43,3.687,44,1.328,45,9.923,46,6.512,47,6.512,48,6.512,49,6.512,50,6.512,51,6.512,52,5.703,53,3.491,54,6.512,55,3.118,56,6.512,57,4.413,58,6.512]],["keywords/1",[]],["title/2",[59,784.274,60,386.296]],["content/2",[]],["keywords/2",[]],["title/3",[61,648.38]],["content/3",[3,0.111,4,0.361,5,0.361,6,0.49,7,5.517,9,0.49,10,0.472,11,0.627,12,0.446,13,0.481,14,0.42,15,0.618,31,0.311,60,5.11,61,8.531,62,1.786,63,8.531,64,10.375,65,4.368,66,5.408,67,12.005,68,9.365,69,10.375,70,9.365,71,1.984,72,1.456,73,9.365]],["keywords/3",[]],["title/4",[74,912.348]],["content/4",[3,0.085,4,0.509,5,0.509,31,0.44,62,2.523,65,4.472,74,12.291,75,4.947,76,8.32,77,5.666,78,13.231]],["keywords/4",[]],["title/5",[79,982.121]],["content/5",[3,0.085,4,0.509,5,0.509,31,0.44,62,2.523,65,4.472,75,4.947,76,8.32,80,12.291,81,14.658,82,13.231]],["keywords/5",[]],["title/6",[83,912.348]],["content/6",[3,0.086,4,0.518,5,0.518,28,4.495,31,0.447,62,2.564,65,4.544,83,12.489,84,12.489,85,13.444]],["keywords/6",[]],["title/7",[86,982.121]],["content/7",[3,0.083,4,0.501,5,0.501,28,4.354,31,0.433,60,7.107,62,2.484,87,14.429,88,13.024,89,7.835,90,4.308,91,13.024]],["keywords/7",[]],["title/8",[92,912.348]],["content/8",[3,0.085,4,0.509,5,0.509,28,4.423,31,0.44,62,2.523,65,4.472,92,12.291,93,14.658,94,8.52,95,13.231]],["keywords/8",[]],["title/9",[96,912.348]],["content/9",[23,4.447,62,2.789,65,4.942,94,9.417,96,13.585]],["keywords/9",[]],["title/10",[94,632.421]],["content/10",[3,0.086,4,0.518,5,0.518,28,4.495,31,0.447,43,7.613,62,2.564,65,4.544,94,8.657,97,13.444]],["keywords/10",[]],["title/11",[18,426.171]],["content/11",[3,0.081,4,0.486,5,0.486,18,5.48,31,0.42,36,7.292,43,7.152,62,2.408,65,4.268,75,5.881,98,13.991,99,11.062,100,12.629]],["keywords/11",[]],["title/12",[101,982.121]],["content/12",[3,0.081,4,0.486,5,0.486,23,4.783,31,0.42,62,2.999,102,12.629,103,13.991,104,12.629,105,12.629,106,15.727]],["keywords/12",[]],["title/13",[107,553.413,108,553.413,109,514.097]],["content/13",[]],["keywords/13",[]],["title/14",[110,982.121]],["content/14",[3,0.117,4,0.353,5,0.353,6,0.479,9,0.479,10,0.461,11,0.617,12,0.436,13,0.47,14,0.708,23,2.786,31,0.304,44,1.868,62,1.747,90,3.029,111,7.635,112,9.159,113,5.76,114,7.311,115,5.51,116,10.158,117,8.023,118,9.159,119,9.159,120,9.159,121,9.159]],["keywords/14",[]],["title/15",[122,982.121]],["content/15",[3,0.116,4,0.361,5,0.361,6,0.675,9,0.49,10,0.651,11,0.627,12,0.446,13,0.481,14,0.579,23,2.848,31,0.311,44,1.91,90,3.098,111,7.806,113,5.889,115,5.634,123,9.365,124,9.365,125,9.365,126,9.365,127,9.365,128,12.923,129,9.365,130,9.365]],["keywords/15",[]],["title/16",[131,982.121]],["content/16",[3,0.116,4,0.361,5,0.361,6,0.675,9,0.49,10,0.472,11,0.627,12,0.446,13,0.481,14,0.663,23,2.848,31,0.311,44,2.635,65,3.165,90,3.098,111,7.806,113,5.889,115,5.634,132,9.365,133,9.365,134,9.365,135,9.365,136,8.203,137,9.365,138,9.365]],["keywords/16",[]],["title/17",[65,239.258,139,707.921]],["content/17",[3,0.115,4,0.353,5,0.353,6,0.665,9,0.479,10,0.641,11,0.617,12,0.436,13,0.47,14,0.57,23,2.786,31,0.304,44,1.868,65,4.301,90,3.029,111,7.635,113,5.76,115,5.51,136,8.023,140,9.159,141,9.159,142,9.159,143,9.159,144,9.159,145,9.159,146,9.159,147,9.159]],["keywords/17",[]],["title/18",[148,860.234]],["content/18",[3,0.121,4,0.279,5,0.279,6,0.67,9,0.562,10,0.542,11,0.522,12,0.345,13,0.372,14,0.482,23,3.271,31,0.241,44,2.615,62,1.382,71,1.535,72,1.127,90,2.397,111,6.041,113,6.763,115,4.36,148,6.348,149,7.248,150,7.248,151,7.248,152,7.248,153,12.823,154,7.248,155,6.348,156,7.248,157,6.733,158,7.248,159,7.248,160,7.248,161,2.138]],["keywords/18",[]],["title/19",[3,6.279]],["content/19",[]],["keywords/19",[]],["title/20",[61,648.38]],["content/20",[3,0.12,4,0.422,5,0.422,6,0.573,9,0.573,10,0.553,11,0.697,12,0.522,13,0.563,14,0.491,15,0.724,31,0.364,63,7.24,71,2.323,72,1.705,73,10.967]],["keywords/20",[]],["title/21",[74,912.348]],["content/21",[3,0.114,4,0.535,5,0.535,31,0.462,75,5.195,78,13.892]],["keywords/21",[]],["title/22",[79,982.121]],["content/22",[3,0.114,4,0.535,5,0.535,31,0.462,75,5.195,82,13.892]],["keywords/22",[]],["title/23",[83,912.348]],["content/23",[3,0.114,4,0.535,5,0.535,28,4.645,31,0.462,85,13.892]],["keywords/23",[]],["title/24",[86,982.121]],["content/24",[3,0.114,4,0.535,5,0.535,28,4.Line truncated
+1
View File
@@ -0,0 +1 @@
{"version":"2.3.9","fields":["title","content","keywords"],"fieldVectors":[["title/0",[0,313.393,1,375.097,2,261.126]],["content/0",[0,4.495,1,5.38,2,5.425,3,0.12,4,0.306,5,0.306,6,0.601,7,7.963,8,6.097,9,0.415,10,0.4,11,0.558,12,0.378,13,0.407,14,0.356,15,0.524,16,4.775,17,4.775,18,3.445,19,7.938,20,7.938,21,7.938,22,6.163,23,2.414,24,7.938,25,6.916,26,5.38,27,6.953,28,2.654,29,5.38,30,7.938,31,0.264]],["keywords/0",[]],["title/1",[0,313.393,2,261.126,32,514.097]],["content/1",[0,5.619,2,6.343,3,0.119,4,0.251,5,0.251,6,0.34,9,0.34,10,0.328,11,0.481,12,0.31,13,0.334,14,0.539,15,0.43,16,3.917,17,3.917,18,5.217,22,3.491,23,1.98,31,0.216,32,6.049,33,6.512,34,4.676,35,6.049,36,3.76,37,9.923,38,9.923,39,5.001,40,7.214,41,4.003,42,6.512,43,3.687,44,1.328,45,9.923,46,6.512,47,6.512,48,6.512,49,6.512,50,6.512,51,6.512,52,5.703,53,3.491,54,6.512,55,3.118,56,6.512,57,4.413,58,6.512]],["keywords/1",[]],["title/2",[59,784.274,60,386.296]],["content/2",[]],["keywords/2",[]],["title/3",[61,648.38]],["content/3",[3,0.111,4,0.361,5,0.361,6,0.49,7,5.517,9,0.49,10,0.472,11,0.627,12,0.446,13,0.481,14,0.42,15,0.618,31,0.311,60,5.11,61,8.531,62,1.786,63,8.531,64,10.375,65,4.368,66,5.408,67,12.005,68,9.365,69,10.375,70,9.365,71,1.984,72,1.456,73,9.365]],["keywords/3",[]],["title/4",[74,912.348]],["content/4",[3,0.085,4,0.509,5,0.509,31,0.44,62,2.523,65,4.472,74,12.291,75,4.947,76,8.32,77,5.666,78,13.231]],["keywords/4",[]],["title/5",[79,982.121]],["content/5",[3,0.085,4,0.509,5,0.509,31,0.44,62,2.523,65,4.472,75,4.947,76,8.32,80,12.291,81,14.658,82,13.231]],["keywords/5",[]],["title/6",[83,912.348]],["content/6",[3,0.086,4,0.518,5,0.518,28,4.495,31,0.447,62,2.564,65,4.544,83,12.489,84,12.489,85,13.444]],["keywords/6",[]],["title/7",[86,982.121]],["content/7",[3,0.083,4,0.501,5,0.501,28,4.354,31,0.433,60,7.107,62,2.484,87,14.429,88,13.024,89,7.835,90,4.308,91,13.024]],["keywords/7",[]],["title/8",[92,912.348]],["content/8",[3,0.085,4,0.509,5,0.509,28,4.423,31,0.44,62,2.523,65,4.472,92,12.291,93,14.658,94,8.52,95,13.231]],["keywords/8",[]],["title/9",[96,912.348]],["content/9",[23,4.447,62,2.789,65,4.942,94,9.417,96,13.585]],["keywords/9",[]],["title/10",[94,632.421]],["content/10",[3,0.086,4,0.518,5,0.518,28,4.495,31,0.447,43,7.613,62,2.564,65,4.544,94,8.657,97,13.444]],["keywords/10",[]],["title/11",[18,426.171]],["content/11",[3,0.081,4,0.486,5,0.486,18,5.48,31,0.42,36,7.292,43,7.152,62,2.408,65,4.268,75,5.881,98,13.991,99,11.062,100,12.629]],["keywords/11",[]],["title/12",[101,982.121]],["content/12",[3,0.081,4,0.486,5,0.486,23,4.783,31,0.42,62,2.999,102,12.629,103,13.991,104,12.629,105,12.629,106,15.727]],["keywords/12",[]],["title/13",[107,553.413,108,553.413,109,514.097]],["content/13",[]],["keywords/13",[]],["title/14",[110,982.121]],["content/14",[3,0.117,4,0.353,5,0.353,6,0.479,9,0.479,10,0.461,11,0.617,12,0.436,13,0.47,14,0.708,23,2.786,31,0.304,44,1.868,62,1.747,90,3.029,111,7.635,112,9.159,113,5.76,114,7.311,115,5.51,116,10.158,117,8.023,118,9.159,119,9.159,120,9.159,121,9.159]],["keywords/14",[]],["title/15",[122,982.121]],["content/15",[3,0.116,4,0.361,5,0.361,6,0.675,9,0.49,10,0.651,11,0.627,12,0.446,13,0.481,14,0.579,23,2.848,31,0.311,44,1.91,90,3.098,111,7.806,113,5.889,115,5.634,123,9.365,124,9.365,125,9.365,126,9.365,127,9.365,128,12.923,129,9.365,130,9.365]],["keywords/15",[]],["title/16",[131,982.121]],["content/16",[3,0.116,4,0.361,5,0.361,6,0.675,9,0.49,10,0.472,11,0.627,12,0.446,13,0.481,14,0.663,23,2.848,31,0.311,44,2.635,65,3.165,90,3.098,111,7.806,113,5.889,115,5.634,132,9.365,133,9.365,134,9.365,135,9.365,136,8.203,137,9.365,138,9.365]],["keywords/16",[]],["title/17",[65,239.258,139,707.921]],["content/17",[3,0.115,4,0.353,5,0.353,6,0.665,9,0.479,10,0.641,11,0.617,12,0.436,13,0.47,14,0.57,23,2.786,31,0.304,44,1.868,65,4.301,90,3.029,111,7.635,113,5.76,115,5.51,136,8.023,140,9.159,141,9.159,142,9.159,143,9.159,144,9.159,145,9.159,146,9.159,147,9.159]],["keywords/17",[]],["title/18",[148,860.234]],["content/18",[3,0.121,4,0.279,5,0.279,6,0.67,9,0.562,10,0.542,11,0.522,12,0.345,13,0.372,14,0.482,23,3.271,31,0.241,44,2.615,62,1.382,71,1.535,72,1.127,90,2.397,111,6.041,113,6.763,115,4.36,148,6.348,149,7.248,150,7.248,151,7.248,152,7.248,153,12.823,154,7.248,155,6.348,156,7.248,157,6.733,158,7.248,159,7.248,160,7.248,161,2.138]],["keywords/18",[]],["title/19",[3,6.279]],["content/19",[]],["keywords/19",[]],["title/20",[61,648.38]],["content/20",[3,0.12,4,0.422,5,0.422,6,0.573,9,0.573,10,0.553,11,0.697,12,0.522,13,0.563,14,0.491,15,0.724,31,0.364,63,7.24,71,2.323,72,1.705,73,10.967]],["keywords/20",[]],["title/21",[74,912.348]],["content/21",[3,0.114,4,0.535,5,0.535,31,0.462,75,5.195,78,13.892]],["keywords/21",[]],["title/22",[79,982.121]],["content/22",[3,0.114,4,0.535,5,0.535,31,0.462,75,5.195,82,13.892]],["keywords/22",[]],["title/23",[83,912.348]],["content/23",[3,0.114,4,0.535,5,0.535,28,4.645,31,0.462,85,13.892]],["keywords/23",[]],["title/24",[86,982.121]],["content/24",[3,0.114,4,0.535,5,0.535,28,4.Line truncated
+17
View File
@@ -0,0 +1,17 @@
<!doctype html>
<html class="docs-version-current" lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="generator" content="Docusaurus v2.0.0-beta.9">
<title data-react-helmet="true">Basic options | Artplayer.js</title><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:url" content="https://artplayer.org/document/options"><meta data-react-helmet="true" name="docusaurus_locale" content="en"><meta data-react-helmet="true" name="docusaurus_version" content="current"><meta data-react-helmet="true" name="docusaurus_tag" content="docs-default-current"><meta data-react-helmet="true" property="og:title" content="Basic options | Artplayer.js"><meta data-react-helmet="true" name="description" content="container"><meta data-react-helmet="true" property="og:description" content="container"><link data-react-helmet="true" rel="shortcut icon" href="/document/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://artplayer.org/document/options"><link data-react-helmet="true" rel="alternate" href="https://artplayer.org/document/options" hreflang="en"><link data-react-helmet="true" rel="alternate" href="https://artplayer.org/document/options" hreflang="x-default"><link rel="stylesheet" href="/document/assets/css/styles.f21e1cf1.css">
<link rel="preload" href="/document/assets/js/runtime~main.32512733.js" as="script">
<link rel="preload" href="/document/assets/js/main.57814af2.js" as="script">
</head>
<body>
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}()</script><div id="__docusaurus">
<div><a href="#" class="skipToContent_OuoZ">Skip to main content</a></div><nav class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Navigation bar toggle" class="navbar__toggle clean-btn" type="button" tabindex="0"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/document/"><b class="navbar__title">Artplayer.js</b></a><a href="https://artplayer.org" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Online Editor<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a><a href="https://artplayer.org/?libs=.%2Funcompiled%2Fartplayer-plugin-danmuku.js&amp;example=danmuku" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Danmuku Demo<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a><a href="https://github.com/zhw2590582/ArtPlayer" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Github<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a></div><div class="navbar__items navbar__items--right"><a href="#" class="navbar__item navbar__link">QQ群: 320881312</a><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a class="navbar__link">v 4.x.x</a><ul class="dropdown__menu"><li><a href="https://artplayer.org/document_v3/" target="_blank" rel="noopener noreferrer" class="dropdown__link"><span>v 3.x.x<svg width="12" height="12" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a></li></ul></div><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a class="navbar__link">English</a><ul class="dropdown__menu"><li><a class="dropdown__link" href="/document/">English</a></li><li><a class="dropdown__link" href="/document/zh-cn/">中文</a></li></ul></div><div class="toggle_iYfV toggle_2i4l toggleDisabled_xj38"><div class="toggleTrack_t-f2" role="button" tabindex="-1"><div class="toggleTrackCheck_mk7D"><span class="toggleIcon_pHJ9">🌜</span></div><div class="toggleTrackX_dm8H"><span class="toggleIcon_pHJ9">🌞</span></div><div class="toggleTrackThumb_W6To"></div></div><input type="checkbox" class="toggleScreenReader_h9qa" aria-label="Switch between dark and light mode"></div><div class="navbar__search"><span aria-label="expand searchbar" role="button" class="search-icon" tabindex="0"></span><input type="search" id="search_input_react" placeholder="Search" aria-label="Search" class="navbar__search-input search-bar"></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div class="main-wrapper docs-wrapper docs-doc-page"><div class="docPage_lDyR"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_i9tI" type="button"></button><aside class="docSidebarContainer_0YBq"><div class="sidebar_a3j0"><nav class="menu thin-scrollbar menu_cyFh"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/">Quick start</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" href="/document/options">Basic options</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/propertie">Common properties</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/advance">Advanced propertys</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/class">Static propertys</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/events">Common events</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__Line truncated
<script src="/document/assets/js/runtime~main.32512733.js"></script>
<script src="/document/assets/js/main.57814af2.js"></script>
</body>
</html>
+17
View File
@@ -0,0 +1,17 @@
<!doctype html>
<html class="docs-version-current" lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="generator" content="Docusaurus v2.0.0-beta.9">
<title data-react-helmet="true">Common properties | Artplayer.js</title><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:url" content="https://artplayer.org/document/propertie"><meta data-react-helmet="true" name="docusaurus_locale" content="en"><meta data-react-helmet="true" name="docusaurus_version" content="current"><meta data-react-helmet="true" name="docusaurus_tag" content="docs-default-current"><meta data-react-helmet="true" property="og:title" content="Common properties | Artplayer.js"><meta data-react-helmet="true" name="description" content="play"><meta data-react-helmet="true" property="og:description" content="play"><link data-react-helmet="true" rel="shortcut icon" href="/document/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://artplayer.org/document/propertie"><link data-react-helmet="true" rel="alternate" href="https://artplayer.org/document/propertie" hreflang="en"><link data-react-helmet="true" rel="alternate" href="https://artplayer.org/document/propertie" hreflang="x-default"><link rel="stylesheet" href="/document/assets/css/styles.f21e1cf1.css">
<link rel="preload" href="/document/assets/js/runtime~main.32512733.js" as="script">
<link rel="preload" href="/document/assets/js/main.57814af2.js" as="script">
</head>
<body>
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}()</script><div id="__docusaurus">
<div><a href="#" class="skipToContent_OuoZ">Skip to main content</a></div><nav class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Navigation bar toggle" class="navbar__toggle clean-btn" type="button" tabindex="0"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/document/"><b class="navbar__title">Artplayer.js</b></a><a href="https://artplayer.org" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Online Editor<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a><a href="https://artplayer.org/?libs=.%2Funcompiled%2Fartplayer-plugin-danmuku.js&amp;example=danmuku" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Danmuku Demo<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a><a href="https://github.com/zhw2590582/ArtPlayer" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link"><span>Github<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a></div><div class="navbar__items navbar__items--right"><a href="#" class="navbar__item navbar__link">QQ群: 320881312</a><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a class="navbar__link">v 4.x.x</a><ul class="dropdown__menu"><li><a href="https://artplayer.org/document_v3/" target="_blank" rel="noopener noreferrer" class="dropdown__link"><span>v 3.x.x<svg width="12" height="12" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_wgqa"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a></li></ul></div><div class="navbar__item dropdown dropdown--hoverable dropdown--right"><a class="navbar__link">English</a><ul class="dropdown__menu"><li><a class="dropdown__link" href="/document/">English</a></li><li><a class="dropdown__link" href="/document/zh-cn/">中文</a></li></ul></div><div class="toggle_iYfV toggle_2i4l toggleDisabled_xj38"><div class="toggleTrack_t-f2" role="button" tabindex="-1"><div class="toggleTrackCheck_mk7D"><span class="toggleIcon_pHJ9">🌜</span></div><div class="toggleTrackX_dm8H"><span class="toggleIcon_pHJ9">🌞</span></div><div class="toggleTrackThumb_W6To"></div></div><input type="checkbox" class="toggleScreenReader_h9qa" aria-label="Switch between dark and light mode"></div><div class="navbar__search"><span aria-label="expand searchbar" role="button" class="search-icon" tabindex="0"></span><input type="search" id="search_input_react" placeholder="Search" aria-label="Search" class="navbar__search-input search-bar"></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div class="main-wrapper docs-wrapper docs-doc-page"><div class="docPage_lDyR"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_i9tI" type="button"></button><aside class="docSidebarContainer_0YBq"><div class="sidebar_a3j0"><nav class="menu thin-scrollbar menu_cyFh"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/">Quick start</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/options">Basic options</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" href="/document/propertie">Common properties</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/advance">Advanced propertys</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/class">Static propertys</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/document/events">Common events</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__Line truncated
<script src="/document/assets/js/runtime~main.32512733.js"></script>
<script src="/document/assets/js/main.57814af2.js"></script>
</body>
</html>
@@ -0,0 +1 @@
[{"title":"Add button to the controls","type":0,"sectionRef":"#","url":"en/Questions/Create button in the controls","content":"Add button to the controls ▶ Run Code var time = 0; var art = new Artplayer({ container: '.artplayer-app', url: '/assets/sample/video.mp4', controls: [ { position: 'right', html: '&lt;button type=&quot;button&quot;&gt;Click Me!&lt;/button&gt;', click: function (_, event) { // The second parameter is an event object time += 1; event.target.innerText = 'You Click ' + time; }, }, ], }); Copy","keywords":""},{"title":"Add select in the controls","type":0,"sectionRef":"#","url":"en/Questions/Create selector in the controls","content":"Add select in the controls Sometimes you need to add a list in the controls, then you can use the selector and onSelect attribute when adding controls ▶ Run Code var art = new Artplayer({ container: '.artplayer-app', url: '/assets/sample/video.mp4', controls: [ { position: 'right', html: 'Subtitle 01', selector: [ { default: true, html: '&lt;span style=&quot;color:red&quot;&gt;Subtitle 01&lt;/span&gt;', url: '/assets/sample/subtitle.srt?id=1', }, { html: '&lt;span style=&quot;color:yellow&quot;&gt;Subtitle 02&lt;/span&gt;', url: '/assets/sample/subtitle.srt?id=2', }, ], onSelect: function (item, $dom) { art.subtitle.switch(item.url, { name: $dom.innerText, }); return 'You click ' + item.html; }, }, ], }); Copy","keywords":""},{"title":"Static propertys","type":0,"sectionRef":"#","url":"class","content":"","keywords":""},{"title":"instances​","type":1,"pageTitle":"Static propertys","url":"class#instances","content":"Type: Array A array that saves all player instances, and can manage multiple instances through this property when multiple players exist at the same time. ▶ Run Code var art = new Artplayer({ container: '.artplayer-app', url: '/assets/sample/video.mp4', }); art.on('ready', () =&gt; { console.info(Artplayer.instances.length); }); Copy "},{"title":"version​","type":1,"pageTitle":"Static propertys","url":"class#version","content":"Type: String Current player version number ▶ Run Code console.info(Artplayer.version); Copy "},{"title":"env​","type":1,"pageTitle":"Static propertys","url":"class#env","content":"Type: String Current player environment variable ▶ Run Code console.info(Artplayer.env); Copy "},{"title":"utils​","type":1,"pageTitle":"Static propertys","url":"class#utils","content":"Type: Object Common utils for player ▶ Run Code console.info(Object.keys(Artplayer.utils)); Copy "},{"title":"config​","type":1,"pageTitle":"Static propertys","url":"class#config","content":"Type: Object Store native properties and methods of video ▶ Run Code console.info(Artplayer.config); Copy "},{"title":"scheme​","type":1,"pageTitle":"Static propertys","url":"class#scheme","content":"Type: Object Verification scheme for player option ▶ Run Code console.info(Artplayer.scheme); Copy "},{"title":"validator​","type":1,"pageTitle":"Static propertys","url":"class#validator","content":"Type: Function Validator for player option "},{"title":"option​","type":1,"pageTitle":"Static propertys","url":"class#option","content":"Type: Object Player default option ▶ Run Code console.info(Artplayer.option); Copy "},{"title":"html​","type":1,"pageTitle":"Static propertys","url":"class#html","content":"Type: String Player defaults HTML String, usually used for SSR ▶ Run Code console.info(Artplayer.html); Copy "},{"title":"kindOf​","type":1,"pageTitle":"Static propertys","url":"class#kindof","content":"Type: Function JS type identification function ▶ Run Code console.info(Artplayer.kindOf('0')); console.info(Artplayer.kindOf(0)); console.info(Artplayer.kindOf({})); console.info(Artplayer.kindOf([])); Copy "},{"title":"Third party librarys","type":0,"sectionRef":"#","url":"libraries","content":"","keywords":""},{"title":"flv.js​","type":1,"pageTitle":"Third party librarys","url":"libraries#flvjs","content":"Homepage: https://github.com/Bilibili/flv.js ▶ Run Code var art = new Artplayer({ container: '.artplayer-app', autoplay: true, url: '/assets/sample/video.flv', customType: { flv: function (video, url) { const flvPlayer = flvjs.createPlayer({ type: 'flv', url: url, }); flvPlayer.attachMediaElement(video); flvPlayer.load(); }, }, }); Copy "},{"title":"hls.js​","type":1,"pageTitle":"Third party librarys","url":"libraries#hlsjs","content":"Homepage: https://github.com/video-dev/hls.js ▶ Run Code var art = new Artplayer({ container: '.artplayer-app', autoplay: true, url: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8', customType: { m3u8: function (video, url) { var hls = new Hls(); hls.loadSource(url); hls.attachMedia(video); }, }, }); Copy "},{"title":"dash.js​","type":1,"pageTitle":"Third party librarys","url":"libraries#dashjs","content":"Homepage: https://github.com/Dash-Industry-Forum/dash.js ▶ Run Code var art = new Artplayer({ container: '.artplayer-app', autoplay: true, url: 'https://dash.akamaized.net/envivio/EnviviLine truncated
+1
View File
@@ -0,0 +1 @@
[{"title":"Add button to the controls","type":0,"sectionRef":"#","url":"en/Questions/Create button in the controls","content":"Add button to the controls ▶ Run Code var time = 0; var art = new Artplayer({ container: '.artplayer-app', url: '/assets/sample/video.mp4', controls: [ { position: 'right', html: '&lt;button type=&quot;button&quot;&gt;Click Me!&lt;/button&gt;', click: function (_, event) { // The second parameter is an event object time += 1; event.target.innerText = 'You Click ' + time; }, }, ], }); Copy","keywords":""},{"title":"Add select in the controls","type":0,"sectionRef":"#","url":"en/Questions/Create selector in the controls","content":"Add select in the controls Sometimes you need to add a list in the controls, then you can use the selector and onSelect attribute when adding controls ▶ Run Code var art = new Artplayer({ container: '.artplayer-app', url: '/assets/sample/video.mp4', controls: [ { position: 'right', html: 'Subtitle 01', selector: [ { default: true, html: '&lt;span style=&quot;color:red&quot;&gt;Subtitle 01&lt;/span&gt;', url: '/assets/sample/subtitle.srt?id=1', }, { html: '&lt;span style=&quot;color:yellow&quot;&gt;Subtitle 02&lt;/span&gt;', url: '/assets/sample/subtitle.srt?id=2', }, ], onSelect: function (item, $dom) { art.subtitle.switch(item.url, { name: $dom.innerText, }); return 'You click ' + item.html; }, }, ], }); Copy","keywords":""},{"title":"Static propertys","type":0,"sectionRef":"#","url":"class","content":"","keywords":""},{"title":"instances​","type":1,"pageTitle":"Static propertys","url":"class#instances","content":"Type: Array A array that saves all player instances, and can manage multiple instances through this property when multiple players exist at the same time. ▶ Run Code var art = new Artplayer({ container: '.artplayer-app', url: '/assets/sample/video.mp4', }); art.on('ready', () =&gt; { console.info(Artplayer.instances.length); }); Copy "},{"title":"version​","type":1,"pageTitle":"Static propertys","url":"class#version","content":"Type: String Current player version number ▶ Run Code console.info(Artplayer.version); Copy "},{"title":"env​","type":1,"pageTitle":"Static propertys","url":"class#env","content":"Type: String Current player environment variable ▶ Run Code console.info(Artplayer.env); Copy "},{"title":"utils​","type":1,"pageTitle":"Static propertys","url":"class#utils","content":"Type: Object Common utils for player ▶ Run Code console.info(Object.keys(Artplayer.utils)); Copy "},{"title":"config​","type":1,"pageTitle":"Static propertys","url":"class#config","content":"Type: Object Store native properties and methods of video ▶ Run Code console.info(Artplayer.config); Copy "},{"title":"scheme​","type":1,"pageTitle":"Static propertys","url":"class#scheme","content":"Type: Object Verification scheme for player option ▶ Run Code console.info(Artplayer.scheme); Copy "},{"title":"validator​","type":1,"pageTitle":"Static propertys","url":"class#validator","content":"Type: Function Validator for player option "},{"title":"option​","type":1,"pageTitle":"Static propertys","url":"class#option","content":"Type: Object Player default option ▶ Run Code console.info(Artplayer.option); Copy "},{"title":"html​","type":1,"pageTitle":"Static propertys","url":"class#html","content":"Type: String Player defaults HTML String, usually used for SSR ▶ Run Code console.info(Artplayer.html); Copy "},{"title":"kindOf​","type":1,"pageTitle":"Static propertys","url":"class#kindof","content":"Type: Function JS type identification function ▶ Run Code console.info(Artplayer.kindOf('0')); console.info(Artplayer.kindOf(0)); console.info(Artplayer.kindOf({})); console.info(Artplayer.kindOf([])); Copy "},{"title":"Third party librarys","type":0,"sectionRef":"#","url":"libraries","content":"","keywords":""},{"title":"flv.js​","type":1,"pageTitle":"Third party librarys","url":"libraries#flvjs","content":"Homepage: https://github.com/Bilibili/flv.js ▶ Run Code var art = new Artplayer({ container: '.artplayer-app', autoplay: true, url: '/assets/sample/video.flv', customType: { flv: function (video, url) { const flvPlayer = flvjs.createPlayer({ type: 'flv', url: url, }); flvPlayer.attachMediaElement(video); flvPlayer.load(); }, }, }); Copy "},{"title":"hls.js​","type":1,"pageTitle":"Third party librarys","url":"libraries#hlsjs","content":"Homepage: https://github.com/video-dev/hls.js ▶ Run Code var art = new Artplayer({ container: '.artplayer-app', autoplay: true, url: 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8', customType: { m3u8: function (video, url) { var hls = new Hls(); hls.loadSource(url); hls.attachMedia(video); }, }, }); Copy "},{"title":"dash.js​","type":1,"pageTitle":"Third party librarys","url":"libraries#dashjs","content":"Homepage: https://github.com/Dash-Industry-Forum/dash.js ▶ Run Code var art = new Artplayer({ container: '.artplayer-app', autoplay: true, url: 'https://dash.akamaized.net/envivio/EnviviLine truncated
Loaded 100 of 397 files, more files were not shown because too many files have changed in this diff. Show more