mirror of
https://github.com/lyz05/danmaku.git
synced 2026-02-02 17:59:53 +08:00
@@ -70,7 +70,7 @@ function Iqiyi() {
|
|||||||
const danmaku = extract(xml, "content");
|
const danmaku = extract(xml, "content");
|
||||||
const showTime = extract(xml, "showTime");
|
const showTime = extract(xml, "showTime");
|
||||||
const color = extract(xml, "color");
|
const color = extract(xml, "color");
|
||||||
const font = extract(xml, "font");
|
//const font = extract(xml, "font");
|
||||||
|
|
||||||
// 控制步长,减小内存占用
|
// 控制步长,减小内存占用
|
||||||
const step = Math.ceil(danmaku.length*length/10000);
|
const step = Math.ceil(danmaku.length*length/10000);
|
||||||
@@ -81,7 +81,7 @@ function Iqiyi() {
|
|||||||
content.timepoint = showTime[i];//showTime
|
content.timepoint = showTime[i];//showTime
|
||||||
content.color = parseInt(color[i], 16);//color
|
content.color = parseInt(color[i], 16);//color
|
||||||
content.content = danmaku[i]; //content
|
content.content = danmaku[i]; //content
|
||||||
content.size = font[i];//font
|
content.size = 25;//font
|
||||||
contents.push(content);
|
contents.push(content);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user