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
This commit is contained in:
Harvey Zhao committed 2026-05-04 13:22:32 +08:00
1 parent 23c8f46878
commit 26841c5b1c
69 files changed
+49762 -28126

No files matched your search

@@ -1,3 +1,4 @@
import { setupM3u8Controls } from './m3u8.js'
/**
* ArtPlayer MediaBunny Proxy
* Main entry point
@@ -20,6 +21,7 @@ export default function artplayerProxyMediabunny(option = {}) {
ctx,
option,
})
art.mediabunny = shim
// Proxy canvas methods to shim
const originalCanvasMethods = {}
@@ -74,9 +76,11 @@ export default function artplayerProxyMediabunny(option = {}) {
art.on('resize', resize)
art.on('video:loadedmetadata', resize)
setupM3u8Controls({ art, shim, option })
// Cleanup on destroy
art.on('destroy', () => {
delete art.mediabunny
shim.destroy()
})