Commit Graph
38 Commits
Author SHA1 Message Date
Harvey Zhao 4681a8bc7a feat: enhance Artplayer type definitions and improve component interfaces
- Updated Artplayer class to specify environment as 'development' | 'production'.
- Refined template query method to return specific element types.
- Improved event proxy method to handle multiple event names.
- Enhanced storage get method to support both key retrieval and full record retrieval.
- Modified i18n interface to include language initialization and partial language records.
- Adjusted notice interface to provide a getter for show state and a setter for messages.
- Updated layers, controls, and contextmenu to allow undefined elements.
- Enhanced subtitle interface with initialization method.
- Refined hotkey methods to use KeyboardEvent instead of Event.
- Updated setting methods to return updated settings instead of arrays.
- Improved plugin method to return a promise.
- Added new events for video handling and refined existing event parameters.
- Enhanced option interface for proxy and plugins to support promises.
- Updated player interface to include reset method.
- Refined setting props to allow optional values.
- Enhanced template interface with additional control elements.
- Improved utils methods for querying and manipulating DOM elements.

fix: update type definitions for notice and subtitle properties, and refine event types

fix: remove unnecessary console warnings in event listener error handling

fix: refactor event listener management to use Set for better performance and error handling
2025-11-29 21:41:52 +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 2c618bc7b4 Update switchMix.js 2024-05-26 21:09:09 +08:00
WeidiDeng 2f9604c44a seek when video metadata is ready in switch url (#743) 2024-05-26 21:08:00 +08:00
Harvey Zack 39452167c3 update resize 2023-05-13 21:39:45 +08:00
Harvey Zack 37dc0a8203 update switchMix.js 2023-05-04 12:40:31 +08:00
Harvey Zack fa7954de0d Artplayer vitepress (#446)
* init

* init

* update

* update

* update

* update

* update

* update

* add i18n option

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update
2023-01-11 20:45:01 +08:00
Harvey 54882b4e25 4.3.4 2022-03-23 18:14:49 +08:00
Harvey fd8e763ae6 update 2022-02-11 11:20:54 +08:00
zhw2590582 59400eb3bf remove player object 2022-01-07 17:38:10 +08:00
Harvey 8404a8c5cd remove autoHeight option 2021-12-31 17:56:43 +08:00
Harvey 6cb75858bb add autoHeight option 2021-12-31 13:30:59 +08:00
Harvey 76eea4bfd5 finish the ads.js 2021-12-23 15:43:42 +08:00
Harvey 69563e818b update ts 2021-12-01 14:16:43 +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 6c8b8e188a update 2021-11-28 09:30:43 +08:00
Harvey c5c4cf73eb 规范化play方法 2021-11-24 12:24:01 +08:00
Harvey abf60cfef6 add rotateMix 2020-09-15 14:21:49 +08:00
Harvey 89a19a16f0 修复播放状态 2019-11-29 11:35:00 +08:00
Harvey 7ff61b4660 删除多余事件 2019-11-28 10:10:29 +08:00
Harvey 5f40463713 压缩字符 2019-11-27 15:46:55 +08:00
zhw2590582 1270167a3e 简化工具函数 2019-11-22 20:50:14 +08:00
Harvey 44ca79ef62 build all packages 2019-11-22 18:10:25 +08:00
Harvey 042745f001 修改本地预览插件 2019-11-22 09:52:56 +08:00
Harvey 9cf1571ef8 添加字幕本地预览 2019-11-14 14:00:24 +08:00
Harvey 7a84c262da 提取共用方法 2019-11-14 10:11:03 +08:00
Harvey 8d6dcdf6aa 添加字幕切换方法 2019-09-29 17:02:35 +08:00
Harvey 8ad6550d12 Update switchMix.js 2019-09-27 09:54:12 +08:00
Harvey Zack 52b6693da2 简化player接口 2019-06-06 10:37:57 +08:00
zhw2590582 573c549ce1 修复切换画质时不能接着播放问题 2019-05-04 11:16:38 +08:00
zhw2590582 3b172ffa93 build all packages 2019-04-21 11:57:44 +08:00
Harvey Zack 88533c1023 修复切换画质bug 2018-11-22 13:16:00 +08:00
Harvey Zack 203ad0d3a0 格式化 2018-11-21 19:45:44 +08:00
Harvey Zack ac1ba12767 优化回调分离 2018-11-15 14:24:12 +08:00
Harvey Zack 7d766ac1d5 添加自动尺寸 2018-11-09 14:36:48 +08:00
Harvey Zack 1d40d1c46b 分离事件中心 2018-11-09 12:17:19 +08:00
Harvey Zack 0aa018db6d 修改包管理 2018-11-07 17:12:42 +08:00