Commit 2f4f90ce authored by limingzhe's avatar limingzhe

feat: 预加载

parent 46cf38ff
......@@ -443,7 +443,13 @@ export class PlayComponent implements OnInit, OnDestroy {
}
const choiceQuesArr = contentObj.choiceQuesArr;
if (choiceQuesArr) {
for (let i = 0; i < choiceQuesArr.length; i++) {
addUrlToAudioObj(choiceQuesArr[i].title_audio_url);
}
}
......@@ -550,6 +556,11 @@ export class PlayComponent implements OnInit, OnDestroy {
addVideoUrl(op2Arr[j].pic_url || '');
}
}
const choiceQuesArr = this.data.contentObj.choiceQuesArr;
for (let i=0; i<choiceQuesArr.length; i++) {
addVideoUrl(choiceQuesArr[i].video_url || '');
}
}
initImg() {
......@@ -607,6 +618,13 @@ export class PlayComponent implements OnInit, OnDestroy {
}
const choiceQuesArr = this.data.contentObj.choiceQuesArr;
for (let i=0; i<choiceQuesArr.length; i++) {
addPicUrl(choiceQuesArr[i].title_pic_url || '');
addPicUrl(choiceQuesArr[i].ques_pic_url || '');
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment