mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
The code changes introduce new proxy options (`artplayer-proxy-webav` and `artplayer-proxy-libmedia`) in Artplayer, allowing for the use of third-party video and canvas proxies. This enhancement provides more flexibility in handling video playback and rendering, improving the overall performance and compatibility of Artplayer.
11 lines
286 B
JavaScript
11 lines
286 B
JavaScript
// From: https://github.com/bilibili/WebAV
|
|
// npm i artplayer-proxy-webav
|
|
// import artplayerProxyWebAV from 'artplayer-proxy-webav';
|
|
|
|
var art = new Artplayer({
|
|
container: '.artplayer-app',
|
|
url: '/assets/sample/video.mp4',
|
|
proxy: artplayerProxyWebAV({
|
|
//
|
|
}),
|
|
}); |