mirror of
https://gh-proxy.org/https://github.com/tiajinsha/JKVideo
synced 2026-07-08 07:28:37 +08:00
播放状态
This commit is contained in:
@@ -278,7 +278,7 @@ export async function getLiveStreamUrl(roomId: number, qn = 10000): Promise<Live
|
||||
const codec = fmt?.codec?.find((c: any) => c.codec_name === 'avc') ?? fmt?.codec?.[0];
|
||||
const urlInfo = codec?.url_info?.[0];
|
||||
if (urlInfo) {
|
||||
hlsUrl = urlInfo.host + codec.base_url;
|
||||
hlsUrl = urlInfo.host + codec.base_url + (urlInfo.extra ?? '');
|
||||
currentQn = codec.current_qn ?? 0;
|
||||
}
|
||||
}
|
||||
@@ -289,7 +289,7 @@ export async function getLiveStreamUrl(roomId: number, qn = 10000): Promise<Live
|
||||
const codec = fmt?.codec?.find((c: any) => c.codec_name === 'avc') ?? fmt?.codec?.[0];
|
||||
const urlInfo = codec?.url_info?.[0];
|
||||
if (urlInfo) {
|
||||
flvUrl = urlInfo.host + codec.base_url;
|
||||
flvUrl = urlInfo.host + codec.base_url + (urlInfo.extra ?? '');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -117,6 +117,11 @@ export interface DanmakuItem {
|
||||
fontSize: number;
|
||||
color: number; // 0xRRGGBB 十进制整数
|
||||
text: string;
|
||||
uname?: string;
|
||||
isAdmin?: boolean;
|
||||
guardLevel?: number; // 0=无, 1=总督, 2=提督, 3=舰长
|
||||
medalLevel?: number;
|
||||
medalName?: string;
|
||||
}
|
||||
|
||||
export interface LiveRoom {
|
||||
|
||||
Reference in New Issue
Block a user