mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
- 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 configurations.
19 lines
518 B
JavaScript
19 lines
518 B
JavaScript
// https://github.com/sb2702/websr
|
|
// npm i artplayer-plugin-websr
|
|
// import artplayerPluginWebsr from 'artplayer-plugin-websr';
|
|
|
|
var art = new Artplayer({
|
|
container: ".artplayer-app",
|
|
url: "/assets/sample/video3.mp4",
|
|
fullscreenWeb: true,
|
|
plugins: [
|
|
artplayerPluginWebsr({
|
|
videoScale: 2,
|
|
networkSize: 'medium',
|
|
weightsBaseUrl: '/assets/websr/weights',
|
|
workerUrl: '/assets/websr/worker/main.js',
|
|
compare: true,
|
|
}),
|
|
],
|
|
});
|