krillplayer-plugin 0.1.0 → 0.1.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/dist/cli.js +796 -498
- package/package.json +2 -2
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-connect.json +23 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-decode.json +19 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-content-rejected.json +31 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-login-expired.json +31 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-muted.json +31 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-not-logged-in.json +14 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-other.json +31 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-rate-limited.json +31 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-sent.json +28 -0
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/manifest.ts +2 -1
- package/skill/krillplayer-plugin/assets/samples/live-video-platform/plugin.ts +40 -1
- package/skill/krillplayer-plugin/references/contract.d.ts +21 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "krillplayer-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Write, pack, record and test KrillPlayer source plugins on the App's own QuickJS-ng engine, with an AI skill.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://krillplayer.kami.asia",
|
|
@@ -32,6 +32,6 @@
|
|
|
32
32
|
"eslint": "9.39.5"
|
|
33
33
|
},
|
|
34
34
|
"optionalDependencies": {
|
|
35
|
-
"@krillplayer/plugin-engine-darwin-arm64": "0.1.
|
|
35
|
+
"@krillplayer/plugin-engine-darwin-arm64": "0.1.1"
|
|
36
36
|
}
|
|
37
37
|
}
|
package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-connect.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"slot": "danmaku",
|
|
3
|
+
"call": "connect",
|
|
4
|
+
"args": [
|
|
5
|
+
"session-88231",
|
|
6
|
+
null
|
|
7
|
+
],
|
|
8
|
+
"exchanges": [],
|
|
9
|
+
"output": {
|
|
10
|
+
"url": "wss://danmaku.example/room/session-88231",
|
|
11
|
+
"handshake": [
|
|
12
|
+
{
|
|
13
|
+
"text": "{\"room\":\"session-88231\",\"resume\":null}"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"heartbeat": {
|
|
17
|
+
"frame": {
|
|
18
|
+
"text": "ping"
|
|
19
|
+
},
|
|
20
|
+
"interval": 30
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"slot": "danmaku",
|
|
3
|
+
"call": "decode",
|
|
4
|
+
"args": [
|
|
5
|
+
{
|
|
6
|
+
"text": "{\"user\":\"小鲸\",\"text\":\"晚上好\",\"seq\":42}"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
"exchanges": [],
|
|
10
|
+
"output": {
|
|
11
|
+
"messages": [
|
|
12
|
+
{
|
|
13
|
+
"content": "晚上好",
|
|
14
|
+
"username": "小鲸"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"resume": "42"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"slot": "danmaku",
|
|
3
|
+
"call": "send",
|
|
4
|
+
"args": [
|
|
5
|
+
"session-88231",
|
|
6
|
+
"买粉加我"
|
|
7
|
+
],
|
|
8
|
+
"exchanges": [
|
|
9
|
+
{
|
|
10
|
+
"request": {
|
|
11
|
+
"method": "POST",
|
|
12
|
+
"url": "https://live.example/room/session-88231/danmaku",
|
|
13
|
+
"body": "{\"text\":\"买粉加我\"}"
|
|
14
|
+
},
|
|
15
|
+
"response": {
|
|
16
|
+
"status": 200,
|
|
17
|
+
"headers": {
|
|
18
|
+
"content-type": "application/json"
|
|
19
|
+
},
|
|
20
|
+
"body": "{\"code\":1010,\"message\":\"内容含有屏蔽词\"}"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"credentials": {
|
|
25
|
+
"token": "REDACTED"
|
|
26
|
+
},
|
|
27
|
+
"error": {
|
|
28
|
+
"kind": "contentRejected",
|
|
29
|
+
"message": "内容含有屏蔽词"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"slot": "danmaku",
|
|
3
|
+
"call": "send",
|
|
4
|
+
"args": [
|
|
5
|
+
"session-88231",
|
|
6
|
+
"晚上好"
|
|
7
|
+
],
|
|
8
|
+
"exchanges": [
|
|
9
|
+
{
|
|
10
|
+
"request": {
|
|
11
|
+
"method": "POST",
|
|
12
|
+
"url": "https://live.example/room/session-88231/danmaku",
|
|
13
|
+
"body": "{\"text\":\"晚上好\"}"
|
|
14
|
+
},
|
|
15
|
+
"response": {
|
|
16
|
+
"status": 200,
|
|
17
|
+
"headers": {
|
|
18
|
+
"content-type": "application/json"
|
|
19
|
+
},
|
|
20
|
+
"body": "{\"code\":1001,\"message\":\"登录已过期\"}"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"credentials": {
|
|
25
|
+
"token": "REDACTED"
|
|
26
|
+
},
|
|
27
|
+
"error": {
|
|
28
|
+
"kind": "loginRequired",
|
|
29
|
+
"message": "登录已过期"
|
|
30
|
+
}
|
|
31
|
+
}
|
package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-muted.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"slot": "danmaku",
|
|
3
|
+
"call": "send",
|
|
4
|
+
"args": [
|
|
5
|
+
"session-88231",
|
|
6
|
+
"晚上好"
|
|
7
|
+
],
|
|
8
|
+
"exchanges": [
|
|
9
|
+
{
|
|
10
|
+
"request": {
|
|
11
|
+
"method": "POST",
|
|
12
|
+
"url": "https://live.example/room/session-88231/danmaku",
|
|
13
|
+
"body": "{\"text\":\"晚上好\"}"
|
|
14
|
+
},
|
|
15
|
+
"response": {
|
|
16
|
+
"status": 200,
|
|
17
|
+
"headers": {
|
|
18
|
+
"content-type": "application/json"
|
|
19
|
+
},
|
|
20
|
+
"body": "{\"code\":1003,\"message\":\"你已被房管禁言\"}"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"credentials": {
|
|
25
|
+
"token": "REDACTED"
|
|
26
|
+
},
|
|
27
|
+
"error": {
|
|
28
|
+
"kind": "muted",
|
|
29
|
+
"message": "你已被房管禁言"
|
|
30
|
+
}
|
|
31
|
+
}
|
package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-other.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"slot": "danmaku",
|
|
3
|
+
"call": "send",
|
|
4
|
+
"args": [
|
|
5
|
+
"session-88231",
|
|
6
|
+
"晚上好"
|
|
7
|
+
],
|
|
8
|
+
"exchanges": [
|
|
9
|
+
{
|
|
10
|
+
"request": {
|
|
11
|
+
"method": "POST",
|
|
12
|
+
"url": "https://live.example/room/session-88231/danmaku",
|
|
13
|
+
"body": "{\"text\":\"晚上好\"}"
|
|
14
|
+
},
|
|
15
|
+
"response": {
|
|
16
|
+
"status": 503,
|
|
17
|
+
"headers": {
|
|
18
|
+
"content-type": "application/json"
|
|
19
|
+
},
|
|
20
|
+
"body": "{}"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"credentials": {
|
|
25
|
+
"token": "REDACTED"
|
|
26
|
+
},
|
|
27
|
+
"error": {
|
|
28
|
+
"kind": "other",
|
|
29
|
+
"message": "发送接口返回 503"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"slot": "danmaku",
|
|
3
|
+
"call": "send",
|
|
4
|
+
"args": [
|
|
5
|
+
"session-88231",
|
|
6
|
+
"晚上好"
|
|
7
|
+
],
|
|
8
|
+
"exchanges": [
|
|
9
|
+
{
|
|
10
|
+
"request": {
|
|
11
|
+
"method": "POST",
|
|
12
|
+
"url": "https://live.example/room/session-88231/danmaku",
|
|
13
|
+
"body": "{\"text\":\"晚上好\"}"
|
|
14
|
+
},
|
|
15
|
+
"response": {
|
|
16
|
+
"status": 200,
|
|
17
|
+
"headers": {
|
|
18
|
+
"content-type": "application/json"
|
|
19
|
+
},
|
|
20
|
+
"body": "{\"code\":1005,\"message\":\"发送太频繁\"}"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"credentials": {
|
|
25
|
+
"token": "REDACTED"
|
|
26
|
+
},
|
|
27
|
+
"error": {
|
|
28
|
+
"kind": "rateLimited",
|
|
29
|
+
"message": "发送太频繁"
|
|
30
|
+
}
|
|
31
|
+
}
|
package/skill/krillplayer-plugin/assets/samples/live-video-platform/cases/danmaku-send-sent.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"slot": "danmaku",
|
|
3
|
+
"call": "send",
|
|
4
|
+
"args": [
|
|
5
|
+
"session-88231",
|
|
6
|
+
"晚上好"
|
|
7
|
+
],
|
|
8
|
+
"exchanges": [
|
|
9
|
+
{
|
|
10
|
+
"request": {
|
|
11
|
+
"method": "POST",
|
|
12
|
+
"url": "https://live.example/room/session-88231/danmaku",
|
|
13
|
+
"body": "{\"text\":\"晚上好\"}"
|
|
14
|
+
},
|
|
15
|
+
"response": {
|
|
16
|
+
"status": 200,
|
|
17
|
+
"headers": {
|
|
18
|
+
"content-type": "application/json"
|
|
19
|
+
},
|
|
20
|
+
"body": "{\"code\":0}"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"credentials": {
|
|
25
|
+
"token": "REDACTED"
|
|
26
|
+
},
|
|
27
|
+
"output": null
|
|
28
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
// 样例:既直播又发视频的平台。数据写死在这里,不出网;主机名都是不存在的 .example。
|
|
2
2
|
// 看点:创作者是频道,带可选的 live(正在播才有)与分栏;直播条目的 id 由插件给(这里是场次号,和频道 id 没有关系),
|
|
3
3
|
// 状态槽位用 liveId 报同一个 id;预告开播后变成直播、结束后变成回放(点播);普通视频归进播放列表;顶层的 resolve 认链接。
|
|
4
|
+
// 直播间有弹幕:connect 给连接规格、decode 一次解一帧;登录后能 send 发一条(#704),平台的回答按 code 换成契约的错误种类。
|
|
4
5
|
import type {
|
|
5
|
-
BrowseSlot, ChannelRef, Creator, Entry, Live, OnDemand, Paged, Playlist, PlaySlot, ResolveFunction, StatusSlot, Upcoming,
|
|
6
|
+
BrowseSlot, ChannelRef, Creator, DanmakuSlot, Entry, Live, OnDemand, Paged, PluginError, Playlist, PlaySlot, ResolveFunction, StatusSlot, Upcoming,
|
|
6
7
|
} from "krillplayer-plugin";
|
|
7
8
|
|
|
8
9
|
const CDN = "https://cdn.example";
|
|
@@ -121,3 +122,41 @@ export const play = {
|
|
|
121
122
|
return { timing: "onDemand", duration: video.duration, lines: [{ name: "主线路", streams: [{ quality: "1080P", url: `${CDN}/video/${itemId}.m3u8` }] }] };
|
|
122
123
|
},
|
|
123
124
|
} satisfies PlaySlot;
|
|
125
|
+
|
|
126
|
+
// 弹幕:连接与解码不出网,帧是 JSON。发弹幕经平台的接口(https://live.example,用例里是录好的应答):
|
|
127
|
+
// code 0 是发出去了;别的 code 换成契约的错误种类,message 原样交给内核显示。插件不重发,同一条不连发、发送间隔由内核守。
|
|
128
|
+
const SEND_REFUSALS: Record<number, PluginError["kind"]> = { 1001: "loginRequired", 1003: "muted", 1005: "rateLimited", 1010: "contentRejected" };
|
|
129
|
+
|
|
130
|
+
export const danmaku = {
|
|
131
|
+
async connect(_krillplayer, itemId, resume) {
|
|
132
|
+
return {
|
|
133
|
+
url: `wss://danmaku.example/room/${itemId}`,
|
|
134
|
+
handshake: [{ text: JSON.stringify({ room: itemId, resume }) }],
|
|
135
|
+
heartbeat: { frame: { text: "ping" }, interval: 30 },
|
|
136
|
+
};
|
|
137
|
+
},
|
|
138
|
+
decode(_krillplayer, frame) {
|
|
139
|
+
if (frame.text === undefined || frame.text === "pong") return { messages: [] };
|
|
140
|
+
const message = JSON.parse(frame.text) as { user: string; text: string; seq: number };
|
|
141
|
+
return { messages: [{ content: message.text, username: message.user }], resume: String(message.seq) };
|
|
142
|
+
},
|
|
143
|
+
async send(krillplayer, itemId, text) {
|
|
144
|
+
const credentials = krillplayer.credentials.get();
|
|
145
|
+
if (credentials === null) throw krillplayer.error("loginRequired", "登录后才能发弹幕");
|
|
146
|
+
const response = await krillplayer.http.request({
|
|
147
|
+
method: "POST",
|
|
148
|
+
url: `https://live.example/room/${itemId}/danmaku`,
|
|
149
|
+
headers: { authorization: `Bearer ${credentials.token}`, "content-type": "application/json" },
|
|
150
|
+
body: JSON.stringify({ text }),
|
|
151
|
+
});
|
|
152
|
+
if (response.status !== 200) throw krillplayer.error("other", `发送接口返回 ${response.status}`);
|
|
153
|
+
const { code, message } = JSON.parse(new TextDecoder().decode(response.body)) as { code: number; message?: string };
|
|
154
|
+
if (code === 0) return;
|
|
155
|
+
throw krillplayer.error(SEND_REFUSALS[code] ?? "other", message ?? `code ${code}`);
|
|
156
|
+
},
|
|
157
|
+
} satisfies DanmakuSlot;
|
|
158
|
+
|
|
159
|
+
// 表单登录:贴平台给的令牌,send 经 krillplayer.credentials.get() 读到。
|
|
160
|
+
export const login = {
|
|
161
|
+
methods: () => [{ kind: "fields" as const, title: "令牌", fields: [{ name: "token", title: "令牌", secret: true }] }],
|
|
162
|
+
};
|
|
@@ -23,7 +23,7 @@ export interface Paged<T> {
|
|
|
23
23
|
export type Ids = Record<string, string>;
|
|
24
24
|
|
|
25
25
|
// 能力由打包器按导出的函数生成(SLOT_RULES),插件不手写。
|
|
26
|
-
export type Capability = "browse" | "music" | "play" | "resolve" | "library" | "resources" | "subtitles" | "subtitleSearch" | "danmaku" | "danmakuMatch" | "status" | "login" | "playbackReport" | "views" | "libraryChanges";
|
|
26
|
+
export type Capability = "browse" | "music" | "play" | "resolve" | "library" | "resources" | "subtitles" | "subtitleSearch" | "danmaku" | "danmakuMatch" | "status" | "login" | "playbackReport" | "views" | "libraryChanges" | "danmakuSend";
|
|
27
27
|
|
|
28
28
|
// 内容对象。通用域三样结构:频道、合集、条目,每个种类一个类型,只带属于它的字段。
|
|
29
29
|
// 种类的取值是内核定死的词表,插件不能自造。比插件旧的 App 遇到不认识的种类时跳过数组里的那一项、把可选字段当作没给;
|
|
@@ -599,8 +599,10 @@ export interface PluginManifest {
|
|
|
599
599
|
capabilities: Capability[];
|
|
600
600
|
}
|
|
601
601
|
|
|
602
|
+
// muted、rateLimited、contentRejected 是发弹幕(danmaku.send)被来源拒绝的三种原因:被禁言、发得太快、内容不让发。
|
|
603
|
+
// 不认识的种类按 other(旧内核遇到这三种也是 other)。
|
|
602
604
|
// App 不认识的取值当作 "other"。
|
|
603
|
-
export type PluginErrorKind = "regionRestricted" | "loginRequired" | "verificationRequired" | "ended" | "notStarted" | "refused" | "retryable" | "notFound" | "other";
|
|
605
|
+
export type PluginErrorKind = "regionRestricted" | "loginRequired" | "verificationRequired" | "ended" | "notStarted" | "refused" | "retryable" | "notFound" | "muted" | "rateLimited" | "contentRejected" | "other";
|
|
604
606
|
|
|
605
607
|
export interface PluginError {
|
|
606
608
|
kind: PluginErrorKind;
|
|
@@ -736,14 +738,14 @@ export interface ActionResult {
|
|
|
736
738
|
// latest 是频道最新的点播条目(来源内 id、发布时间 Unix 秒、标题),内核据此判定「有新集」;与 live 无关,查不出时不给。
|
|
737
739
|
// liveId 在 live 为 online 时给:此刻在播的那个条目的 id,内核用它起播;没给时内核退回去调 browse.channel 取。
|
|
738
740
|
export interface ChannelStatus {
|
|
739
|
-
id: string;
|
|
740
|
-
live: ChannelLive;
|
|
741
|
-
offlineReason?: OfflineReason;
|
|
742
|
-
unknownReason?: UnknownReason;
|
|
743
|
-
retryAfter?: number;
|
|
744
|
-
title?: string;
|
|
745
|
-
session?: string;
|
|
746
|
-
liveId?: string;
|
|
741
|
+
id: string;
|
|
742
|
+
live: ChannelLive;
|
|
743
|
+
offlineReason?: OfflineReason;
|
|
744
|
+
unknownReason?: UnknownReason;
|
|
745
|
+
retryAfter?: number;
|
|
746
|
+
title?: string;
|
|
747
|
+
session?: string;
|
|
748
|
+
liveId?: string;
|
|
747
749
|
latest?: LatestItemSignal; // App 尚未使用
|
|
748
750
|
}
|
|
749
751
|
|
|
@@ -764,8 +766,8 @@ export interface LatestItemSignal {
|
|
|
764
766
|
|
|
765
767
|
// 状态槽位 images 的一项:频道 id 与它的头像,地址规则同卡片的 image。
|
|
766
768
|
export interface ChannelImage {
|
|
767
|
-
id: string;
|
|
768
|
-
image: string;
|
|
769
|
+
id: string;
|
|
770
|
+
image: string;
|
|
769
771
|
}
|
|
770
772
|
|
|
771
773
|
// 弹幕槽位的直播弹幕。一帧是文本或字节,二者只给一个;两个都给时按字节。
|
|
@@ -1411,8 +1413,8 @@ export interface ParametersExport {
|
|
|
1411
1413
|
// images 可选:一批频道的头像,查不到的频道不列。内核只为订阅里还没有头像的频道调它,与 check 分开、单独计时,
|
|
1412
1414
|
// 这一批 check 有频道被限流时不调,后台刷新不调。头像能从 check 已有的应答里顺带拿到的来源也走这里。
|
|
1413
1415
|
export interface StatusSlot {
|
|
1414
|
-
check(krillplayer: KrillPlayer, channelIds: string[]): Promise<ChannelStatus[]>;
|
|
1415
|
-
images?(krillplayer: KrillPlayer, channelIds: string[]): Promise<ChannelImage[]>;
|
|
1416
|
+
check(krillplayer: KrillPlayer, channelIds: string[]): Promise<ChannelStatus[]>;
|
|
1417
|
+
images?(krillplayer: KrillPlayer, channelIds: string[]): Promise<ChannelImage[]>;
|
|
1416
1418
|
}
|
|
1417
1419
|
|
|
1418
1420
|
// 登录槽位。凭证一律经 krillplayer.credentials.set 写入,过期时间随写入一起报;
|
|
@@ -1430,12 +1432,17 @@ export interface LoginSlot {
|
|
|
1430
1432
|
// segment 是点播弹幕:给出覆盖条目里 position 秒的那一段;内核按播放位置决定何时要哪一段、何时上屏。
|
|
1431
1433
|
// match 与 comments 是弹幕插件,对任何来源的视频:match 按 media 给候选(没有时给空数组),内核取第一个、用户可以改选;
|
|
1432
1434
|
// comments 按候选的 id 给覆盖 position 秒的那一段,规则同 segment。match 与 comments 要一起导出。
|
|
1435
|
+
// send 在直播间 itemId 里用本来源的登录凭证发一条弹幕 text,发出去了就正常返回,没有返回值;自己发的那条内核已经上屏,
|
|
1436
|
+
// 之后连接里推回来的同一条由内核去掉。被拒绝时抛 krillplayer.error:没登录或登录失效 loginRequired、被禁言 muted、
|
|
1437
|
+
// 发得太快 rateLimited、内容不让发 contentRejected,别的原因 other,message 是来源给的说明(内核原样显示)。
|
|
1438
|
+
// 内核不自动重发,同一条内容不连发,两次发送之间留几秒;插件也不要替用户重发。
|
|
1433
1439
|
export interface DanmakuSlot {
|
|
1434
1440
|
connect?(krillplayer: KrillPlayer, itemId: string, resume: string | null): Promise<LiveDanmakuConnection>;
|
|
1435
1441
|
decode?(krillplayer: KrillPlayer, frame: DanmakuFrame): DanmakuBatch | Promise<DanmakuBatch>;
|
|
1436
1442
|
segment?(krillplayer: KrillPlayer, itemId: string, position: number): Promise<DanmakuSegment>;
|
|
1437
1443
|
match?(krillplayer: KrillPlayer, media: MediaQuery): Promise<DanmakuMatch[]>;
|
|
1438
1444
|
comments?(krillplayer: KrillPlayer, matchId: string, position: number): Promise<DanmakuSegment>;
|
|
1445
|
+
send?(krillplayer: KrillPlayer, itemId: string, text: string): Promise<void>;
|
|
1439
1446
|
}
|
|
1440
1447
|
|
|
1441
1448
|
// 播放回报槽位(可选):插件把这次播放报给来源。失败不影响播放,内核不重试。
|