Commit Graph
79 Commits
Author SHA1 Message Date
Harvey Zhao 8ed0a5228c refactor(core): [CORE-23] complete keyboard controls and focus lifecycle 2026-09-11 21:06:33 +08:00
Harvey Zhao 697817eceb refactor(core): CORE-13 type component registries and own control lifetimes 2026-09-11 04:54:32 +08:00
Harvey Zhao 42c4ca735d Update version.js 2026-08-31 16:59:25 +08:00
Harvey Zhao 699bf09577 feat: update changelog with Parcel to Vite refactor
feat: add danmuku plugin documentation and i18n setup guide

- Created a new documentation file for the danmuku plugin with code examples.
- Added a comprehensive guide for language settings (i18n) including default languages, importing languages, adding new languages, and modifying existing languages.
- Included code snippets for initializing the Artplayer with different language settings.

Add internationalization support for multiple languages in Artplayer

- Introduced Arabic (ar), Czech (cs), Spanish (es), Persian (fa), French (fr), Indonesian (id), Polish (pl), Russian (ru), Turkish (tr), Vietnamese (vi), and Traditional Chinese (zh-tw) translations.
- Created corresponding JavaScript and ES module files for each language containing translated strings for player controls and settings.
- Added a new documentation file for language settings in the project.

feat: add initial implementation of start option page with interactive code execution buttons

feat: add danmuku plugin documentation and i18n setup guide

- Created a new documentation file for the danmuku plugin, providing code examples for usage.
- Added a comprehensive guide for language settings, including default languages, importing languages, adding new languages, and modifying existing languages.
- Included code snippets for initializing the Artplayer with different language settings and importing language files.

refactor: update danmuku worker implementation and remove unused i18n files

- Changed the way the Danmuku class creates a Web Worker by using a worker loader instead of creating a blob.
- Removed Arabic, Czech, Spanish, Persian, French, Indonesian, Polish, Russian, Turkish, Vietnamese, and Traditional Chinese i18n files as they are no longer needed.
- Updated the Vite build configuration to disable banners for inline workers and added a plugin to remove worker banners from generated code.

feat: add danmuku plugin and i18n setup documentation

- Created a new documentation file for the danmuku plugin, providing code examples for usage.
- Added a new documentation file for language settings (i18n), detailing how to set default languages, import languages, and add new languages.
- Included code snippets for initializing the Artplayer with different language settings and examples for modifying existing languages.

feat: add danmuku plugin and i18n setup documentation

- Created a new documentation file for the danmuku plugin with code examples.
- Added a new documentation file for language settings (i18n) including import instructions and examples for setting default and custom languages.
- Updated the i18n documentation to include details on adding and modifying languages.

feat: add danmuku plugin and i18n setup documentation

- Created a new JavaScript file for the danmuku plugin documentation with multiple code execution buttons.
- Added a new JavaScript file for i18n (internationalization) setup documentation, including instructions for language settings, importing languages, and modifying language options.
- Included examples for setting default languages and adding new languages in the i18n documentation.

Refactor code structure for improved readability and maintainability
2026-03-07 15:21:34 +08:00
Harvey Zhao bad7892660 feat(contextmenu): enhance version link with referrer URL for better tracking 2026-03-02 17:39:47 +08:00
Harvey Zack 714c81e6c3 Enhance context menu version link styling for better visibility 2025-09-07 12:17:12 +08:00
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 012c73c202 refactor: simplify version function export in context menu 2025-06-20 11:08:57 +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 7e7bd8c0ad Refactor version display in context menu and clean up versioning format
- Updated the context menu version function to dynamically append the application version to the link and include a ref parameter in the URL.
- Removed the build version log from the initialization logs in the Artplayer class.
- Cleaned up the version and environment getters to return unquoted strings.
2025-06-20 10:18:39 +08:00
Harvey Zack 2a7e3d5e03 add index.esm.html 2025-04-20 19:35:10 +08:00
Harvey Zack 5655db4b20 feat: Disable hiding default right-click menu when Artplayer.CONTEXTMENU is set to false 2024-08-12 17:53:43 +08:00
Harvey Zack 232b8a3e17 feat: Add getRect function to utils and update player and control modules to use it 2024-06-08 12:17:45 +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 5898dad3d7 fix video:ratechange 2023-01-20 15:54:08 +08:00
Harvey Zack 6250936443 add Artplayer.CONTEXTMENU 2022-11-10 18:01:28 +08:00
Harvey Zack 1593a4a528 add prettier 2022-11-04 20:55:17 +08:00
Harvey Zack 6715bc457a Playback rate (#411)
* update
2022-10-29 21:14:17 +08:00
Harvey 92ad45b976 add Artplayer.SEEK_STEP 2022-09-20 14:43:18 +08:00
Harvey d8b0477cdc remove some disable 2022-07-14 09:35:45 +08:00
Harvey f160d8eb61 remove art.once('video:loadedmetadata') 2022-05-18 11:29:05 +08:00
Harvey bf342975db update 2022-04-28 11:26:35 +08:00
zhw2590582 c0321f660c 4.3.2 2022-03-16 22:49:04 +08:00
Harvey c0ed71881b update docs 2022-02-11 15:33:28 +08:00
Harvey 7b0dd9618d add flip in menu 2022-02-11 14:09:49 +08:00
Harvey fd8e763ae6 update 2022-02-11 11:20:54 +08:00
Harvey 53da53c35a Fix mobile event 2022-01-10 09:35:46 +08:00
zhw2590582 455e2189a7 forEach => for 2022-01-07 22:11:48 +08:00
zhw2590582 9bc87eb0e2 Fix forEach function 2022-01-07 18:41:25 +08:00
zhw2590582 59400eb3bf remove player object 2022-01-07 17:38:10 +08:00
Harvey 74bc297e8f 移除多余文件 2021-11-24 14:07:39 +08:00
Harvey dd1ae0f499 分离includeFromEvent函数 2020-08-24 09:28:59 +08:00
Harvey fa3d3c6758 fix composedPath 2020-07-20 09:56:52 +08:00
Harvey 4718cd186b 简化事件 2020-05-22 13:23:28 +08:00
Harvey 4cbefa172d 优化ready事件 2020-05-15 12:01:43 +08:00
zhw2590582 8fe0630ab3 add close back 2020-03-19 22:22:50 +08:00
zhw2590582 3379e6091c 添加灯光模式 2020-02-29 09:37:06 +08:00
Harvey 415a04a4a7 build all packages 2019-12-09 17:34:55 +08:00
Harvey 0acc2482d5 移除多余空格 2019-11-28 13:33:28 +08:00
Harvey 7ff61b4660 删除多余事件 2019-11-28 10:10:29 +08:00
Harvey 2cf7905d58 格式化html 2019-11-27 16:32:22 +08:00
Harvey a31fe1b5d5 压缩html空格 2019-11-22 17:54:59 +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 b3c2452758 优化菜单 2019-11-15 11:02:44 +08:00
Harvey 7a84c262da 提取共用方法 2019-11-14 10:11:03 +08:00
Harvey a6816d68fa 添加ready事件 2019-10-10 11:33:24 +08:00