MCPcopy
hub / github.com/chen-zeong/DTV / DanmuOverlayInstance

Interface DanmuOverlayInstance

web/src/components/player/types.ts:24–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24export interface DanmuOverlayInstance {
25 sendComment?: (comment: {
26 id?: string;
27 txt: string;
28 duration?: number;
29 start?: number;
30 mode?: string;
31 style?: Record<string, string>;
32 }) => void;
33 clear?: () => void;
34 play?: () => void;
35 pause?: () => void;
36 stop?: () => void;
37 start?: () => void;
38 hide?: (mode?: string) => void;
39 show?: (mode?: string) => void;
40 setOpacity?: (opacity: number) => void;
41 setFontSize?: (size: number | string, channelSize?: number) => void;
42 setAllDuration?: (mode: string, duration: number) => void;
43 setArea?: (area: { start: number; end: number; lines?: number }) => void;
44 setPlayRate?: (mode: string, rate: number) => void;
45}
46
47export interface DanmuRenderOptions {
48 shouldDisplay?: (message?: DanmakuMessage) => boolean;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected