@lazycatcloud/lzc-video-player 0.0.87 → 0.0.89
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/README.md +18 -5
- package/dist/{browser-ponyfill.77fe21a3.js → browser-ponyfill.4ec1d3bb.js} +1 -1
- package/dist/lzc-video-player.ae1d5d50.js +72045 -0
- package/dist/lzc-video-player.js +2 -2
- package/dist/src/components/PlayList/index.vue.d.ts +1 -1
- package/dist/src/components/Video/NativeVideoPlayer.vue.d.ts +78 -0
- package/dist/src/components/Video/components/LzcModal/list.vue.d.ts +1 -1
- package/dist/src/components/Video/components/LzcModal/playrate.vue.d.ts +1 -1
- package/dist/src/components/Video/components/LzcModal/resolution.vue.d.ts +1 -1
- package/dist/src/components/Video/components/LzcModal/subtitle.vue.d.ts +1 -1
- package/dist/src/components/Video/components/LzcOverlay/cast.vue.d.ts +9 -2
- package/dist/src/components/Video/components/LzcOverlay/casting.vue.d.ts +1 -1
- package/dist/src/components/Video/components/LzcOverlay/error.vue.d.ts +1 -1
- package/dist/src/components/Video/components/LzcOverlay/index.vue.d.ts +7 -3
- package/dist/src/components/Video/components/LzcOverlay/playing.vue.d.ts +7 -1
- package/dist/src/components/Video/components/LzcOverlay/playingButtons.vue.d.ts +1 -1
- package/dist/src/components/Video/components/LzcOverlay/playingLayout.vue.d.ts +7 -1
- package/dist/src/components/Video/components/LzcOverlay/useCast.d.ts +1 -1
- package/dist/src/components/Video/components/LzcOverlay/useCommon.d.ts +1 -1
- package/dist/src/components/Video/native/EventEmitter.d.ts +22 -0
- package/dist/src/components/Video/native/NativeControls.vue.d.ts +90 -0
- package/dist/src/components/Video/native/NativeModal.vue.d.ts +38 -0
- package/dist/src/components/Video/native/NativePlayer.d.ts +176 -0
- package/dist/src/components/Video/native/NativePlayer.vue.d.ts +27 -0
- package/dist/src/components/Video/native/index.d.ts +3 -0
- package/dist/src/components/Video/native/playerKey.d.ts +3 -0
- package/dist/src/components/Video/native/useNativeCastMiddleware.d.ts +2 -0
- package/dist/src/components/Video/native/useNativePlayer.d.ts +2 -0
- package/dist/src/components/Video/native/useNativePlayerFullscreen.d.ts +10 -0
- package/dist/src/components/Video/native/useNativePlayerHistory.d.ts +9 -0
- package/dist/src/components/Video/native/useNativePlayerModal.d.ts +17 -0
- package/dist/src/components/Video/native/useNativePlayerPlaylist.d.ts +9 -0
- package/dist/src/components/Video/native/useNativePlayerState.d.ts +15 -0
- package/dist/src/components/Video/player.d.ts +94 -0
- package/dist/src/components/Video/useSource.d.ts +1 -1
- package/dist/src/components/Video/useWebview.d.ts +2 -2
- package/dist/src/components/Video/videoFrame.d.ts +1 -1
- package/dist/src/lzc-video-player.d.ts +3 -2
- package/dist/src/model.d.ts +3 -0
- package/dist/src/stores/playlist.d.ts +75 -0
- package/package.json +1 -1
- package/dist/lzc-video-player.56b6c6f6.js +0 -92046
- package/dist/src/components/Video/components/LzcCurrentTimeDisplay.d.ts +0 -7
- package/dist/src/components/Video/components/LzcFullscreenToggle.d.ts +0 -10
- package/dist/src/components/Video/components/LzcLoadingSpinner.d.ts +0 -7
- package/dist/src/components/Video/components/LzcModal/index.vue.d.ts +0 -22
- package/dist/src/components/Video/components/LzcModal.d.ts +0 -9
- package/dist/src/components/Video/components/LzcOverlay/castMiddleware.d.ts +0 -1
- package/dist/src/components/Video/components/LzcOverlay/castPlugin.d.ts +0 -11
- package/dist/src/components/Video/components/LzcOverlay.d.ts +0 -7
- package/dist/src/components/Video/components/LzcPlayRate.d.ts +0 -8
- package/dist/src/components/Video/components/LzcPlayToggle.d.ts +0 -7
- package/dist/src/components/Video/components/LzcPlaylistButton.d.ts +0 -9
- package/dist/src/components/Video/components/LzcPlaylistNext.d.ts +0 -10
- package/dist/src/components/Video/components/LzcPlaylistPrev.d.ts +0 -10
- package/dist/src/components/Video/components/LzcProgress.d.ts +0 -11
- package/dist/src/components/Video/components/LzcRemainingTimeDisplay.d.ts +0 -9
- package/dist/src/components/Video/components/LzcResolutionButton.d.ts +0 -9
- package/dist/src/components/Video/components/LzcSeekBar.d.ts +0 -10
- package/dist/src/components/Video/components/LzcSubtitleButton.d.ts +0 -10
- package/dist/src/components/Video/hlsjs.d.ts +0 -1
- package/dist/src/components/Video/index.vue.d.ts +0 -61
- package/dist/src/components/Video/useWebviewMiddleware.d.ts +0 -1
package/README.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# lzc-video-player
|
|
2
2
|
|
|
3
|
+
## 播放器(NativeVideoPlayer)
|
|
4
|
+
|
|
5
|
+
基于原生 `<video>` + hls.js 的播放器,不依赖 Video.js,提供 HLS 播放与基础控制:
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { LzcVideoPlayer } from "@lazycatcloud/lzc-video-player";
|
|
9
|
+
|
|
10
|
+
// 需配合 openVideo 事件传入片源;onInit 中可拿到 player 并调用 trigger({ type: "openVideo", info })
|
|
11
|
+
<LzcVideoPlayer @back="onBack" :on-init="onInit" :options="options" />
|
|
12
|
+
```
|
|
13
|
+
|
|
3
14
|
## 支持选择字幕功能
|
|
4
15
|
|
|
5
16
|
## 调整选择字幕样式
|
|
@@ -7,14 +18,16 @@
|
|
|
7
18
|
```typescript
|
|
8
19
|
<script setup lang="ts">
|
|
9
20
|
import { LzcVideoPlayer } from "@lazycatcloud/lzc-video-player";
|
|
21
|
+
import type { NativePlayerAPI } from "@lazycatcloud/lzc-video-player";
|
|
22
|
+
|
|
10
23
|
function onBack() {
|
|
11
24
|
console.log("onback");
|
|
12
25
|
}
|
|
13
|
-
function onInit(player:
|
|
26
|
+
function onInit(player: NativePlayerAPI) {
|
|
14
27
|
console.log("player: ", player);
|
|
15
28
|
}
|
|
16
29
|
|
|
17
|
-
const options
|
|
30
|
+
const options = {
|
|
18
31
|
showTopBar: false,
|
|
19
32
|
};
|
|
20
33
|
</script>
|
|
@@ -25,9 +38,9 @@ const options: any = {
|
|
|
25
38
|
height: '100%',
|
|
26
39
|
width: '100%',
|
|
27
40
|
}"
|
|
28
|
-
@
|
|
29
|
-
|
|
41
|
+
@back="onBack"
|
|
42
|
+
:on-init="onInit"
|
|
30
43
|
:options="options"
|
|
31
|
-
|
|
44
|
+
/>
|
|
32
45
|
</template>
|
|
33
46
|
```
|