From aa5dbd04185e812b0ff84bb5d404d0e58e7ce1a4 Mon Sep 17 00:00:00 2001 From: Harvey Zack Date: Tue, 16 Apr 2024 00:45:26 +0800 Subject: [PATCH] Add artplayer-plugin-chromecast to index.html --- docs/assets/example/chromecast.js | 12 + docs/index.html | 4 + .../artplayer-plugin-chromecast/index.js | 259 ++++++++++++++++++ .../artplayer-plugin-chromecast/index.js.map | 1 + .../artplayer-plugin-chromecast/.npmignore | 10 + packages/artplayer-plugin-chromecast/.npmrc | 1 + .../artplayer-plugin-chromecast/README.md | 11 + .../artplayer-plugin-chromecast/package.json | 24 ++ .../artplayer-plugin-chromecast/src/cast.svg | 1 + .../artplayer-plugin-chromecast/src/index.js | 102 +++++++ .../types/artplayer-plugin-chromecast.d.ts | 52 ++++ 11 files changed, 477 insertions(+) create mode 100644 docs/assets/example/chromecast.js create mode 100644 docs/uncompiled/artplayer-plugin-chromecast/index.js create mode 100644 docs/uncompiled/artplayer-plugin-chromecast/index.js.map create mode 100644 packages/artplayer-plugin-chromecast/.npmignore create mode 100644 packages/artplayer-plugin-chromecast/.npmrc create mode 100644 packages/artplayer-plugin-chromecast/README.md create mode 100644 packages/artplayer-plugin-chromecast/package.json create mode 100644 packages/artplayer-plugin-chromecast/src/cast.svg create mode 100644 packages/artplayer-plugin-chromecast/src/index.js create mode 100644 packages/artplayer-plugin-chromecast/types/artplayer-plugin-chromecast.d.ts diff --git a/docs/assets/example/chromecast.js b/docs/assets/example/chromecast.js new file mode 100644 index 000000000..1584a3b27 --- /dev/null +++ b/docs/assets/example/chromecast.js @@ -0,0 +1,12 @@ +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 + }), + ], +}); \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index b06db3aa4..2adfd3305 100644 --- a/docs/index.html +++ b/docs/index.html @@ -57,6 +57,10 @@ artplayer-plugin-libass +
  • + artplayer-plugin-chromecast +