Commit Graph
66 Commits
Author SHA1 Message Date
Harvey Zack 35ad9883af build all
Refactor utility functions for improved readability and consistency

- Updated compatibility.js to use consistent line endings and formatting.
- Refactored component.js for better readability and structure, including consistent use of arrow functions and binding.
- Simplified dom.js functions with consistent formatting and improved readability.
- Enhanced emitter.js with consistent formatting and arrow function usage.
- Streamlined error.js for improved readability and consistency.
- Refactored file.js to use consistent formatting and improved readability.
- Improved format.js functions for better readability and consistency.
- Updated index.js to maintain consistent export formatting.
- Refactored property.js for improved readability and consistency.
- Enhanced subtitle.js with consistent formatting and improved readability.
- Refactored time.js for better readability and consistent formatting.

fix: update lint script to target only source files for consistency

Revert "fix: restore export statements for various plugins and update type definitions for better clarity"

This reverts commit b5e969d81ec765cd8a34b06e6ef4f232ef25087f.

fix: restore export statements for various plugins and update type definitions for better clarity

Refactor type definitions to use interfaces instead of type aliases for better extensibility and clarity across i18n, icons, option, player, quality, setting, subtitle, template, and utils modules.
2025-08-03 13:17:33 +08:00
Harvey Zack e8a7e050c4 refactor: update version handling and remove placeholder injection
- Simplified version display in context menu and template by directly importing version from package.json.
- Removed static version and environment methods from Artplayer class, replacing them with dynamic imports.
- Eliminated placeholder injection logic from build and dev scripts, streamlining the build process.
- Cleaned up build and dev scripts for better readability and maintainability.
2025-06-20 11:04:29 +08:00
Harvey Zack 2a7e3d5e03 add index.esm.html 2025-04-20 19:35:10 +08:00
Jealous a8458b050b fix: cancel video loading after destroying (#883) 2025-01-24 14:54:02 +08:00
Harvey Zack 7fa69a7de8 refactor: Update video element in Artplayer to support custom canvas or video 2024-08-18 20:46:53 +08:00
Harvey Zack 66010cb376 refactor: Update video element in Artplayer to support custom canvas or video
This commit updates the `libmedia.js`, `option.d.ts`, `index.js`, `template.js`, and `scheme/index.js` files in the Artplayer repository. The changes introduce a new `video` property in the `Option` type, allowing for the use of a custom video element in Artplayer. The `video` property can be set to `null`, an `HTMLCanvasElement`, or an `HTMLVideoElement`. This enhancement provides flexibility in rendering video content and improves compatibility with different platforms and use cases.
2024-08-18 18:39:14 +08:00
Harvey Zack 219956cabd refactor: Update build timestamp in Artplayer 2024-08-17 21:02:39 +08:00
Harvey Zack d982f4d3b1 Add supportsFlex() function and error handling for unsupported flex layout 2024-03-30 11:02:35 +08:00
Harvey Zack 434aa3d57d Update CHANGELOG_CN.md and template.js 2023-12-23 12:02:18 +08:00
Harvey Zack 5959eb4669 build:all 2023-05-03 10:14:46 +08:00
Harvey Zack 443afeb496 update optionInit 2023-04-17 22:45:08 +08:00
Harvey Zack 49e1ed15b8 add cssPropertyMix 2023-04-17 22:39:18 +08:00
Harvey Zack 7b53de941d V5 (#500)
* update dep

* Update package.json

* update contextmenu

* update d.ts

* update onVttLoad

* build artplayer

* update style

* --art-theme

* update style

* update style

* update user-select

* add getIcon

* update style

* update style

* update style

* update style

* update style

* update style

* update style

* update style

* update style

* update style

* update style

* update style

* update style

* update style

* update style

* add progress-hover

* update mini

* update style

* update style

* update style

* update style

* update style

* update volume

* update style

* add art-backdrop

* update style

* update style

* update style

* update currentLevel

* update artplayerPluginControl

* update artplayerPluginDanmuku

* Update package.json
2023-04-16 23:01:26 +08:00
Harvey Zack 3ab7427b74 artplayer@4.5.6 2022-09-19 23:21:51 +08:00
Harvey 489b81bb43 Fix mobile subtitle 2022-09-07 15:38:53 +08:00
Harvey Zack 823c7b0b6f fix mask display 2022-05-19 07:33:02 +08:00
Harvey Zack b0c6005a2e fix control display 2022-05-19 07:27:54 +08:00
Harvey Zack ddac5fd0f2 update danmuku.js 2022-05-14 11:44:51 +08:00
Harvey Zack 4f4b52e423 Fix template.js 2022-04-29 07:16:18 +08:00
Harvey fc37573482 update 2022-02-11 11:20:54 +08:00
Harvey b3208934f4 update mobile demo 2022-01-17 09:08:33 +08:00
zhw2590582 b70a804591 4.2.0 2022-01-07 20:13:44 +08:00
zhw2590582 938e8718bc add attrMix.js 2022-01-07 18:35:05 +08:00
Harvey 7d06600d7b remove isMobile from instance 2021-12-13 08:45:45 +08:00
Harvey a6917400c3 4.0.5 2021-12-10 08:36:46 +08:00
Harvey 44f3665a55 add the id to container dom 2021-12-03 08:46:02 +08:00
Harvey 2c83ea4760 return play() result 2021-12-01 10:39:44 +08:00
zhw2590582 4d73f41e38 update 2021-11-28 14:24:10 +08:00
Harvey 932b2005d5 update 2021-11-24 17:01:50 +08:00
Harvey 74bc297e8f 移除多余文件 2021-11-24 14:07:39 +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
Harvey 817d9134c6 build all packages 2021-05-11 10:35:15 +08:00
zhw2590582 0059469060 移除尺寸报错 2020-11-07 22:18:08 +08:00
Harvey 09a28ca2c4 Update template.js 2020-09-24 11:15:08 +08:00
Harvey 9a86ce4f73 min -> mini 2020-05-25 09:40:20 +08:00
Harvey 05227caf18 添加迷你播放模式 2020-05-15 18:35:41 +08:00
Harvey 7b3913e318 优化移动端UI 2020-05-15 11:39:10 +08:00
Harvey beea013daf 优化手机端UI 2020-05-15 10:28:38 +08:00
zhw2590582 3379e6091c 添加灯光模式 2020-02-29 09:37:06 +08:00
zhw2590582 9d25c2b402 添加backdrop选项 2019-12-08 09:33:58 +08:00
Harvey 7ff61b4660 删除多余事件 2019-11-28 10:10:29 +08:00
Harvey 14701f2141 删除多余字符 2019-11-27 17:11:42 +08:00
Harvey 5f40463713 压缩字符 2019-11-27 15:46:55 +08:00
Harvey baaaa4c56c build all packages 2019-11-22 17:07:40 +08:00
Harvey 1d859e2049 创建组件父类 2019-11-22 15:35:21 +08:00
Harvey 0c1c1273a6 压缩多余字符 2019-11-22 11:10:28 +08:00
Harvey 8c604e6e4d 优化信息面板 2019-11-15 10:33:52 +08:00
Harvey 9f2038539e 优化字幕结构 2019-11-15 10:17:11 +08:00