mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 10:56:15 -08:00
Refactor code structure for improved readability and maintainability
This commit is contained in:
1 parent
2a7e3d5e03
commit
c3343ad74f
14 files changed
+7877
-6954
No files matched your search
@@ -1,36 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Test ArtPlayer ESM with Import Map</title>
|
||||
<style>
|
||||
#player {
|
||||
width: 640px;
|
||||
height: 360px;
|
||||
margin: 50px auto;
|
||||
border: 1px solid #ccc;
|
||||
}
|
||||
</style>
|
||||
<script type="importmap">
|
||||
{
|
||||
"imports": {
|
||||
"artplayer": "/packages/artplayer/dist/artplayer.esm.js"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="player"></div>
|
||||
<script type="module">
|
||||
import Artplayer from 'artplayer';
|
||||
|
||||
const art = new Artplayer({
|
||||
container: '#player',
|
||||
url: '../docs/assets/sample/video.mp4',
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in new issue
Block a user