mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-09 03:17:46 -08:00
15 lines
436 B
JavaScript
15 lines
436 B
JavaScript
// npm i artplayer-plugin-chromecast
|
|
// import artplayerPluginChromecast from 'artplayer-plugin-chromecast';
|
|
|
|
var art = new Artplayer({
|
|
container: '.artplayer-app',
|
|
url: '/assets/sample/video.mp4',
|
|
fullscreen: true,
|
|
fullscreenWeb: true,
|
|
plugins: [
|
|
artplayerPluginChromecast({
|
|
// sdk: '', // The URL of the Cast SDK
|
|
// mimeType: '', // The MIME type of the media
|
|
}),
|
|
],
|
|
}); |