Commit Graph
1480 Commits
Author SHA1 Message Date
Harvey Zhao 2983cb7c51 chore(release): [REL-09] prepare independent major versions and verified artifacts 2026-09-16 00:47:30 +08:00
Harvey Zhao b1e0b976b0 perf(core): [MOD-03] complete hot-path measurement and compatibility acceptance 2026-09-14 16:23:37 +08:00
Harvey Zhao 23a4f22b72 perf(core): [MOD-03] avoid redundant slider attribute writes 2026-09-14 15:44:18 +08:00
Harvey Zhao efed847cdf fix(core): [CORE-SUBTITLE-OFFSET-01] refresh paused native cue membership and order 2026-09-14 12:49:22 +08:00
Harvey Zhao 3b016970f2 fix(core): [CORE-25] read defaults without navigator 2026-09-13 13:53:49 +08:00
Harvey Zhao 4a299eb2d4 fix(build): [ENG-12] exclude declaration sources from library artifacts 2026-09-13 13:37:00 +08:00
Harvey Zhao 7e37fd4d0e fix(core): [PKG-DPIP-05] keep web fullscreen in the active document 2026-09-12 22:44:01 +08:00
Harvey Zhao 0218196df9 fix(core): [CORE-24] preserve source playback intent and explicit pauses 2026-09-12 03:26:26 +08:00
Harvey Zhao adec20213f refactor(core): [CORE-22] validate compatible core and defer initial layout 2026-09-11 23:18:12 +08:00
Harvey Zhao 4a9a26d4fc test: [ENG-08] add verified TS coverage and paired performance reports 2026-09-11 22:01:48 +08:00
Harvey Zhao 8ed0a5228c refactor(core): [CORE-23] complete keyboard controls and focus lifecycle 2026-09-11 21:06:33 +08:00
Harvey Zhao faaa3e8c2d refactor(core): [CORE-21] generate compatible public and editor declarations 2026-09-11 17:56:05 +08:00
Harvey Zhao ee895a558f refactor(core): [CORE-20] type entry and converge initialization 2026-09-11 16:07:06 +08:00
Harvey Zhao ccf77c4ed2 refactor(core): CORE-19 type capture and preserve progress lifetimes 2026-09-11 14:24:59 +08:00
Harvey Zhao 98a1800032 refactor(core): CORE-18 type builtins and own prompt lifetimes 2026-09-11 12:31:01 +08:00
Harvey Zhao a842058136 refactor(core): CORE-17 type input events and own interaction lifetimes 2026-09-11 11:24:15 +08:00
Harvey Zhao 88aef830df refactor(core): CORE-16 type display modes and own fullscreen lifetimes 2026-09-11 09:42:30 +08:00
Harvey Zhao 1b83081e8f refactor(core): CORE-15 type subtitles and own request and track lifetimes 2026-09-11 07:23:10 +08:00
Harvey Zhao 64d1939daa refactor(core): CORE-14 split typed settings and scope tree lifetimes 2026-09-11 06:49:04 +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 9eb7c945ca refactor(core): CORE-12 type template resources and verify bundled notices 2026-09-11 03:50:33 +08:00
Harvey Zhao b8039ad1f1 refactor(core): CORE-11 split media events and scope reconnect lifetimes 2026-09-11 03:19:52 +08:00
Harvey Zhao 5e31274f1d refactor(core): CORE-10 type playback properties and add compatible controls view 2026-09-11 02:51:55 +08:00
Harvey Zhao 44f4e083a9 refactor(core): CORE-09 isolate source operations and settle cancelled switches 2026-09-11 02:34:26 +08:00
Harvey Zhao 874dac9f22 refactor(core): CORE-08 type plugin registration and guard closed instances 2026-09-11 02:09:36 +08:00
Harvey Zhao f9707bad71 refactor(types): CORE-07 reconcile public declarations and preserve legacy consumers 2026-09-11 01:42:32 +08:00
Harvey Zhao ee859e4804 refactor(core): CORE-06 type media surfaces and playback hosts 2026-09-11 01:18:14 +08:00
Harvey Zhao 97d320bd74 refactor(core): CORE-05 separate typed defaults and resolved options 2026-09-11 01:00:15 +08:00
Harvey Zhao 4eec8112fa refactor(core): CORE-04 scope initialization and make destruction reentrant-safe 2026-09-11 00:43:49 +08:00
Harvey Zhao 3e38dd0d19 refactor(core): CORE-03 add typed resource scopes and cleanup adapters 2026-09-11 00:21:32 +08:00
Harvey Zhao 362c616998 refactor(core): CORE-02 type emitter maps and fix nested once dispatch 2026-09-11 00:03:53 +08:00
Harvey Zhao d3c695024a refactor(core): CORE-01 migrate utility contracts to TypeScript 2026-09-10 23:50:47 +08:00
Harvey Zhao bab80ff886 fix(types): PKG-CHAPTER-04 preserve CJS ESM and legacy consumer contracts 2026-09-10 23:29:06 +08:00
Harvey Zhao a0286c4e95 test(packages): ENG-07 verify installed tarball contracts and browsers 2026-09-10 23:04:19 +08:00
Harvey Zhao 771482426f build(types): ENG-04 add strict projects and legacy compiler checks 2026-09-10 21:21:39 +08:00
Harvey Zhao 37cbb6f600 Merge pull request #1058 from acaliskol/fix/unhandled-play-rejection
fix: silence unhandled play() rejections from internal callers
2026-09-10 17:06:52 +08:00
Harvey Zhao 72cf3551e2 fix: align promise helper types and test playback rejections 2026-09-10 17:03:07 +08:00
Harvey Zhao 42c4ca735d Update version.js 2026-08-31 16:59:25 +08:00
Anıl Çalışkol 0f47e11d63 fix: silence unhandled play() rejections from internal callers
`art.play()` is an async wrapper around the native `video.play()` promise, which
rejects when a pending play request is interrupted (`pause()`, `load()`, a new
`src`, or the element being removed) and when autoplay is blocked.

Every internal caller fires it from an event handler and cannot await it, so the
rejection escapes as a global `unhandledrejection`. Error trackers report it as
an uncaught crash even though the player recovers on its own — for example
destroying the player right after mount, which is routine when the video sits in
a modal the user can close quickly.

Add a `silencePromise` util (the same approach video.js uses) and apply it to the
non-awaited internal call sites: mask, play control, mini player, loop restart,
autoPlayback jump, hotkey and click toggles.

`switchMix` is fixed too, for a second symptom: `await art.play()` inside the
async `video:canplay` handler both leaked the rejection and left the `switchUrl`
promise pending forever, since the throw never reached the enclosing executor's
`reject`. It now settles.

The public API is unchanged: `art.play()` and `art.toggle()` still return the
original promise, so applications that call them keep their own rejection to
handle. Only the internal, non-awaited copy is silenced.
2026-08-30 16:31:40 +03:00
wuhua111 0b9c31a8cf fix(types): correct notice.show getter return type (#1055)
The notice.show getter was declared as boolean while the setter accepts string, Error or false. TypeScript uses the getter return type when checking property assignment, causing TS2322 when assigning a string to notice.show.
2026-08-28 17:52:07 +08:00
Harvey Zhao 014b21566c feat: expose Artplayer globally in the browser environment
- Added assignment of Artplayer to the window object in both dist and src files to allow global access.
2026-07-13 12:34:21 +08:00
Harvey Zhao 26841c5b1c feat: enable fullscreenWeb option in Artplayer configuration
feat: add danmuku plugin and i18n setup documentation

- Introduced a new danmuku plugin with multiple run code options in the documentation.
- Added language settings documentation for i18n, including default languages, import instructions, and examples for adding and modifying languages.
- Implemented input handling for media sources in the artplayer-proxy-mediabunny package, supporting various formats including HLS.
- Created m3u8 control functionalities for managing audio and video quality settings in the player.

Update mediabunny.js
2026-05-04 13:22:32 +08:00
Harvey Zhao 7e0b84ba7c fix: adjust percentage calculation for current time in setCurrentTime function 2026-04-01 12:49:43 +08:00
Harvey Zhao 6aa6f9ad53 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.

feat: implement safe area insets for improved video rotation handling

feat: add console log for safe area insets in autoOrientation plugin

feat: enhance mobile meta tags for better web app support
2026-04-01 12:24:38 +08:00
Harvey Zhao 65e51751cd 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) with detailed instructions on language imports, default languages, and how to add or modify languages.
- Included code snippets for initializing the Artplayer with different language settings.
2026-03-12 22:23:44 +08:00
Harvey Zhao 740ac4cb24 Refactor styles in ArtPlayer components for improved readability and consistency
- Consolidated loading styles in loading.less for better structure.
- Updated mask styles in mask.less to enhance clarity.
- Refined mini popup styles in mini.less, adding transition effects.
- Improved mixins in mixins.less for consistent styling across components.
- Adjusted mobile styles in mobile.less for better responsiveness.
- Enhanced notice styles in notice.less for improved visibility.
- Streamlined plugin styles in plugins.less for better organization.
- Simplified poster styles in poster.less for clarity.
- Refined progress styles in progress.less, enhancing hover effects.
- Updated selector styles in selector.less for better interaction.
- Improved settings styles in setting.less for better usability.
- Enhanced subtitle styles in subtitle.less for better visibility.
- Updated variable definitions in variables.less for consistency.
- Refined video styles in video.less for improved layout.
- Enhanced volume control styles in volume.less for better user experience.
- Optimized rate limiting logic in build-llm.js and trans-docs.js for better performance.
2026-03-08 15:03:43 +08:00
Harvey Zhao b11f0eb99a refactor: update cursor styles and progress variable
- Removed cursor pointer from .art-mask-show in mask.less for better UX.
- Added cursor pointer to .art-progress in progress.less to indicate interactivity.
- Adjusted hover effect for .art-control-progress-inner in progress.less to enhance visual feedback.
- Increased --art-progress-top-gap variable from 8px to 10px in variables.less for improved layout.
- Removed cursor pointer from .art-video in video.less to streamline styling.
2026-03-08 14:53:29 +08:00
Harvey Zhao 89a28e91fe refactor: update progress control to use $progress element for event handling 2026-03-08 14:38:37 +08:00
Harvey Zhao 562cfe18db refactor: remove .parcel-cache from .npmignore files across multiple plugins 2026-03-07 21:42:20 +08:00
Harvey Zhao 39a1fb1abd feat: add danmuku plugin documentation and i18n setup guide
- Created a new documentation file for the danmuku plugin, including code snippets for usage.
- Added a new i18n setup guide, detailing language settings, default languages, language imports, and how to add or modify languages.
- Included example code for initializing the Artplayer with different languages and importing language files.
2026-03-07 21:25:27 +08:00