@lazycatcloud/lzc-video-player 1.1.1 → 1.2.1
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 +48 -48
- package/dist/{browser-ponyfill.9fe1939a.js → browser-ponyfill.e29f9cb8.js} +1 -1
- package/dist/{lzc-video-player.7a1118d5.js → lzc-video-player.6c755f5f.js} +16056 -15969
- package/dist/lzc-video-player.js +2 -2
- package/dist/src/components/Dialog/index.vue.d.ts +24 -24
- package/dist/src/components/MultipleEdit/choose.vue.d.ts +20 -20
- package/dist/src/components/PlayList/index.vue.d.ts +26 -26
- package/dist/src/components/Spectrum/index.vue.d.ts +2 -2
- package/dist/src/components/Video/NativeVideoPlayer.vue.d.ts +79 -78
- package/dist/src/components/Video/components/LzcModal/components/simpleList.vue.d.ts +36 -36
- package/dist/src/components/Video/components/LzcModal/list.vue.d.ts +13 -13
- package/dist/src/components/Video/components/LzcModal/playrate.vue.d.ts +13 -13
- package/dist/src/components/Video/components/LzcModal/resolution.vue.d.ts +13 -13
- package/dist/src/components/Video/components/LzcModal/subtitle.vue.d.ts +13 -13
- package/dist/src/components/Video/components/LzcModal/useModal.d.ts +14 -14
- package/dist/src/components/Video/components/LzcOverlay/SubtitleLayer.vue.d.ts +19 -19
- package/dist/src/components/Video/components/LzcOverlay/cast.vue.d.ts +23 -23
- package/dist/src/components/Video/components/LzcOverlay/casting.vue.d.ts +13 -13
- package/dist/src/components/Video/components/LzcOverlay/error.vue.d.ts +13 -13
- package/dist/src/components/Video/components/LzcOverlay/helper.d.ts +26 -26
- package/dist/src/components/Video/components/LzcOverlay/index.vue.d.ts +25 -19
- package/dist/src/components/Video/components/LzcOverlay/playing.vue.d.ts +25 -19
- package/dist/src/components/Video/components/LzcOverlay/playingButtons.vue.d.ts +19 -13
- package/dist/src/components/Video/components/LzcOverlay/playingLayout.vue.d.ts +32 -26
- package/dist/src/components/Video/components/LzcOverlay/useCast.d.ts +16 -16
- package/dist/src/components/Video/components/LzcOverlay/useCommon.d.ts +5 -5
- package/dist/src/components/Video/components/LzcOverlay/useOctopusRenderer.d.ts +11 -11
- package/dist/src/components/Video/components/LzcOverlay/useSubtitleRenderEngine.d.ts +9 -9
- package/dist/src/components/Video/components/LzcOverlay/useSubtitleTrack.d.ts +7 -7
- package/dist/src/components/Video/components/useLzcCommon.d.ts +2 -2
- package/dist/src/components/Video/directPlay.d.ts +43 -43
- package/dist/src/components/Video/getSubtitleInfo.d.ts +2 -2
- package/dist/src/components/Video/native/EventEmitter.d.ts +22 -22
- package/dist/src/components/Video/native/NativeControls.vue.d.ts +117 -90
- package/dist/src/components/Video/native/NativeModal.vue.d.ts +44 -38
- package/dist/src/components/Video/native/NativePlayer.d.ts +198 -197
- package/dist/src/components/Video/native/NativePlayer.vue.d.ts +27 -27
- package/dist/src/components/Video/native/index.d.ts +3 -3
- package/dist/src/components/Video/native/playerKey.d.ts +3 -3
- package/dist/src/components/Video/native/useNativeCastMiddleware.d.ts +2 -2
- package/dist/src/components/Video/native/useNativePlayer.d.ts +2 -2
- package/dist/src/components/Video/native/useNativePlayerFullscreen.d.ts +10 -10
- package/dist/src/components/Video/native/useNativePlayerHistory.d.ts +9 -9
- package/dist/src/components/Video/native/useNativePlayerModal.d.ts +17 -17
- package/dist/src/components/Video/native/useNativePlayerPlaylist.d.ts +9 -9
- package/dist/src/components/Video/native/useNativePlayerState.d.ts +16 -16
- package/dist/src/components/Video/player.d.ts +99 -98
- package/dist/src/components/Video/useSource.d.ts +14 -14
- package/dist/src/components/Video/useSubtitlePreference.d.ts +11 -11
- package/dist/src/components/Video/useWebview.d.ts +7 -7
- package/dist/src/components/Video/videoFrame.d.ts +2 -2
- package/dist/src/i18n/index.d.ts +10 -10
- package/dist/src/lzc-video-player.d.ts +4 -6
- package/dist/src/model.d.ts +63 -63
- package/dist/src/stores/pinia.d.ts +2 -2
- package/dist/src/stores/playlist.d.ts +361 -361
- package/dist/src/use/useKeyBind.d.ts +3 -3
- package/dist/src/use/useMultipleEdit.d.ts +9 -9
- package/dist/src/use/useSdk.d.ts +5 -5
- package/dist/src/use/useSubtitle.d.ts +23 -23
- package/dist/src/use/useUtils.d.ts +3 -3
- package/dist/src/use/useVideoFrame.d.ts +5 -5
- package/package.json +22 -22
package/README.md
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
# lzc-video-player
|
|
2
|
-
|
|
3
|
-
## 播放器(NativeVideoPlayer)
|
|
4
|
-
|
|
5
|
-
基于原生 `<video>` + hls.js 的播放器,不依赖 Video.js,提供 HLS 播放与基础控制:
|
|
6
|
-
|
|
7
|
-
增加对ass特效字幕的渲染能力,需要配合服务端提供的字体集
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
import { LzcVideoPlayer } from "@lazycatcloud/lzc-video-player";
|
|
11
|
-
|
|
12
|
-
// 需配合 openVideo 事件传入片源;onInit 中可拿到 player 并调用 trigger({ type: "openVideo", info })
|
|
13
|
-
<LzcVideoPlayer @back="onBack" :on-init="onInit" :options="options" />
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## 支持选择字幕功能
|
|
17
|
-
|
|
18
|
-
## 调整选择字幕样式
|
|
19
|
-
|
|
20
|
-
```typescript
|
|
21
|
-
<script setup lang="ts">
|
|
22
|
-
import { LzcVideoPlayer } from "@lazycatcloud/lzc-video-player";
|
|
23
|
-
import type { NativePlayerAPI } from "@lazycatcloud/lzc-video-player";
|
|
24
|
-
|
|
25
|
-
function onBack() {
|
|
26
|
-
console.log("onback");
|
|
27
|
-
}
|
|
28
|
-
function onInit(player: NativePlayerAPI) {
|
|
29
|
-
console.log("player: ", player);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
const options = {
|
|
33
|
-
showTopBar: false,
|
|
34
|
-
};
|
|
35
|
-
</script>
|
|
36
|
-
|
|
37
|
-
<template>
|
|
38
|
-
<LzcVideoPlayer
|
|
39
|
-
:style="{
|
|
40
|
-
height: '100%',
|
|
41
|
-
width: '100%',
|
|
42
|
-
}"
|
|
43
|
-
@back="onBack"
|
|
44
|
-
:on-init="onInit"
|
|
45
|
-
:options="options"
|
|
46
|
-
/>
|
|
47
|
-
</template>
|
|
48
|
-
```
|
|
1
|
+
# lzc-video-player
|
|
2
|
+
|
|
3
|
+
## 播放器(NativeVideoPlayer)
|
|
4
|
+
|
|
5
|
+
基于原生 `<video>` + hls.js 的播放器,不依赖 Video.js,提供 HLS 播放与基础控制:
|
|
6
|
+
|
|
7
|
+
增加对ass特效字幕的渲染能力,需要配合服务端提供的字体集
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
import { LzcVideoPlayer } from "@lazycatcloud/lzc-video-player";
|
|
11
|
+
|
|
12
|
+
// 需配合 openVideo 事件传入片源;onInit 中可拿到 player 并调用 trigger({ type: "openVideo", info })
|
|
13
|
+
<LzcVideoPlayer @back="onBack" :on-init="onInit" :options="options" />
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## 支持选择字幕功能
|
|
17
|
+
|
|
18
|
+
## 调整选择字幕样式
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
<script setup lang="ts">
|
|
22
|
+
import { LzcVideoPlayer } from "@lazycatcloud/lzc-video-player";
|
|
23
|
+
import type { NativePlayerAPI } from "@lazycatcloud/lzc-video-player";
|
|
24
|
+
|
|
25
|
+
function onBack() {
|
|
26
|
+
console.log("onback");
|
|
27
|
+
}
|
|
28
|
+
function onInit(player: NativePlayerAPI) {
|
|
29
|
+
console.log("player: ", player);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const options = {
|
|
33
|
+
showTopBar: false,
|
|
34
|
+
};
|
|
35
|
+
</script>
|
|
36
|
+
|
|
37
|
+
<template>
|
|
38
|
+
<LzcVideoPlayer
|
|
39
|
+
:style="{
|
|
40
|
+
height: '100%',
|
|
41
|
+
width: '100%',
|
|
42
|
+
}"
|
|
43
|
+
@back="onBack"
|
|
44
|
+
:on-init="onInit"
|
|
45
|
+
:options="options"
|
|
46
|
+
/>
|
|
47
|
+
</template>
|
|
48
|
+
```
|