dsh-tv-player 1.4.0 → 1.4.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 +22 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
> **非官方、社区维护项目**:本插件与 DeepSeek Harness 官方无任何关联,仅作为个人学习/自用工具提供。
|
|
4
4
|
|
|
5
|
+
[](https://www.npmjs.com/package/dsh-tv-player)
|
|
6
|
+
[](https://github.com/oiqizi/dsh-tv-player)
|
|
7
|
+
|
|
8
|
+
- **npm**:https://www.npmjs.com/package/dsh-tv-player
|
|
9
|
+
- **GitHub**:https://github.com/oiqizi/dsh-tv-player
|
|
10
|
+
|
|
5
11
|
DSH 电视插件 —— 在 DeepSeek Harness 里直播 **8 个确定稳定的频道**(浙江 / 延边 / 香港 / 内蒙古 / 河北 / 东方卫视 + CCTV-9 纪录 / CCTV-12 社会与法),白底黑字的播放条与全宽电视画面,写代码时把电视放在聊天输入框上方,是 **Vibe coding 时的好伴侣**。
|
|
6
12
|
|
|
7
13
|
参考 `dsh-music-player` 的双面结构:Host 端跑频道目录 + 同源直播流代理 + `tv_play` 模型工具,Web 端用 `<video>` + hls.js 播放。
|
|
@@ -23,7 +29,22 @@ DSH 电视插件 —— 在 DeepSeek Harness 里直播 **8 个确定稳定的频
|
|
|
23
29
|
|
|
24
30
|
## 安装
|
|
25
31
|
|
|
26
|
-
###
|
|
32
|
+
### 方式一:npm 安装(已发布到 npm,最简单)
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
npm install dsh-tv-player
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
然后在目标 profile 的 `package.json` 里,把依赖加到 `dependencies`,并**务必**在 `dsh.profile.bundles` 里加 `"dsh-tv-player"`:
|
|
39
|
+
|
|
40
|
+
```json
|
|
41
|
+
"dependencies": { "dsh-tv-player": "^1.4.0" },
|
|
42
|
+
"dsh": { "profile": { "bundles": [ "...", "dsh-tv-player" ] } }
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
最后 `pnpm install`(或 `dsh plugin --profile <profile> add dsh-tv-player`)并重启 DSH。
|
|
46
|
+
|
|
47
|
+
### 方式二:本地 tgz(自用 / 内部分发)
|
|
27
48
|
|
|
28
49
|
```sh
|
|
29
50
|
# 1) 打包
|
|
@@ -46,12 +67,6 @@ npm pack # 产出 dsh-tv-player-<version>.tgz
|
|
|
46
67
|
# 然后重启 DSH
|
|
47
68
|
```
|
|
48
69
|
|
|
49
|
-
### 方式二:发布到 npm 后
|
|
50
|
-
|
|
51
|
-
```sh
|
|
52
|
-
dsh plugin --profile <profile> add dsh-tv-player
|
|
53
|
-
```
|
|
54
|
-
|
|
55
70
|
安装后重启 DSH,打开 Web GUI:聊天输入框上方会出现「DSH 电视」播放条。
|
|
56
71
|
|
|
57
72
|
## 使用
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-tv-player",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "DSH 电视插件:在 DeepSeek Harness 里直播 8 个确定稳定的频道(CCTV-9 纪录、CCTV-12 社会与法与浙江/延边/香港/内蒙古/河北/东方卫视),支持临时频道搜索,白底播放条与全宽电视画面,Vibe coding 时的好伴侣。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|