Commit Graph
6 Commits
Author SHA1 Message Date
Harvey Zhao 9d037dcbf9 refactor(mediabunny): [PKG-MB-05] own video iterators, frame pools and rendering 2026-09-12 19:47:46 +08:00
Harvey Zhao 5d0b128483 refactor(mediabunny): [PKG-MB-04] isolate typed playback and readiness coordination 2026-09-12 19:00:21 +08:00
Harvey Zhao 9af253a5a9 refactor(mediabunny): [PKG-MB-04] checkpoint typed shim and event cleanup 2026-09-12 18:27:33 +08:00
Harvey Zhao adba8a3d12 refactor(mediabunny): [PKG-MB-03] type inputs and cancel owned loads 2026-09-12 18:08:37 +08:00
Harvey Zhao 9d760a2f59 refactor: remove architecture documentation and improve code readability
- Deleted ARCHITECTURE.md file to streamline project documentation.
- Refactored AudioEngine, EventTarget, MediaBunnyEngine, VideoEngine, VideoShim, and index.js for improved readability by adding consistent line breaks and spacing.
- Enhanced code structure by ensuring single-responsibility principles and clearer flow in methods.
- Updated TypeScript definitions for better clarity on options available in the artplayer-proxy-mediabunny package.
2026-01-01 17:25:21 +08:00
Harvey Zhao be44c1f8dd Enhance property handling in artplayerProxyMediabunny
- Updated the way properties from the shim instance and its prototype are retrieved.
- Replaced the for-in loop with a Set to ensure all properties, including inherited ones, are considered.
- Excluded the 'constructor' property from being added to the canvas.

refactor: remove unused utility functions and streamline event handling

- Deleted `videoEvents.js`, `clamp.js`, and `sleep.js` as they were not utilized.
- Introduced a new `EventTarget` class to manage event listeners more efficiently.
- Enhanced `MediaBunnyEngine`, `AudioEngine`, `VideoEngine`, and `VideoShim` to utilize the new event system.
- Updated type definitions in `artplayer-proxy-mediabunny.d.ts` to include new configuration options.
- Added comprehensive architecture documentation to clarify the structure and flow of the MediaBunny engine.
- Refactored the codebase for improved readability and maintainability, including better naming conventions and JSDoc comments.
2026-01-01 17:03:44 +08:00