mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-17 01:56:16 -08:00
fix: enhance user agent detection to support custom user agent
This commit is contained in:
1 parent
dd57cc2a03
commit
6c4e9f7e78
27 files changed
+324
-283
No files matched your search
+8
-1
@@ -15,7 +15,8 @@
|
||||
<script type="importmap">
|
||||
{
|
||||
"imports": {
|
||||
"artplayer": "/compiled/artplayer.esm.js"
|
||||
"artplayer": "/compiled/artplayer.esm.js",
|
||||
"artplayer-plugin-danmuku": "/compiled/artplayer-plugin-danmuku.esm.js"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -25,10 +26,16 @@
|
||||
<div id="player"></div>
|
||||
<script type="module">
|
||||
import Artplayer from 'artplayer';
|
||||
import ArtplayerPluginDanmuku from 'artplayer-plugin-danmuku';
|
||||
|
||||
const art = new Artplayer({
|
||||
container: '#player',
|
||||
url: '/assets/sample/video.mp4',
|
||||
plugins: [
|
||||
artplayerPluginDanmuku({
|
||||
danmuku: '/assets/sample/danmuku.xml',
|
||||
})
|
||||
]
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in new issue
Block a user