@boldarialblack/multi-stream-player 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +34 -0
- package/lib/stream-player.js +638 -0
- package/lib/stream-player.js.map +1 -0
- package/lib/stream-player.umd.cjs +2 -0
- package/lib/stream-player.umd.cjs.map +1 -0
- package/lib/style.css +1 -0
- package/package.json +60 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 BoldArialBlack
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# 用法
|
|
2
|
+
使用包管理器(如 NPM、Yarn 或 pnpm)安装
|
|
3
|
+
```
|
|
4
|
+
npm install multi-stream-player --save
|
|
5
|
+
```
|
|
6
|
+
安装后引入组件
|
|
7
|
+
```
|
|
8
|
+
import StreamPlayer from 'multi-stream-player';
|
|
9
|
+
```
|
|
10
|
+
使用
|
|
11
|
+
```
|
|
12
|
+
<stream-player
|
|
13
|
+
src="//sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/hls/xgplayer-demo.m3u8"
|
|
14
|
+
protocol="hls"
|
|
15
|
+
>
|
|
16
|
+
</stream-player>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
# 详细文档
|
|
20
|
+
指路 ➡️ /docs/components/index.md
|
|
21
|
+
|
|
22
|
+
# 快速开发
|
|
23
|
+
想要了解或更改组件,运行命令行即可快速查看实时demo及文档
|
|
24
|
+
```
|
|
25
|
+
$ npm run dev
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
<!-- # Vue 3 + Vite
|
|
29
|
+
|
|
30
|
+
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more. -->
|
|
31
|
+
|
|
32
|
+
## Recommended IDE Setup
|
|
33
|
+
|
|
34
|
+
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
|