课程视频播放

This commit is contained in:
禺狨 2023-03-24 18:44:27 +08:00
parent 5a5c18f83d
commit 3786355eb0

View File

@ -31,7 +31,7 @@ export const VideoModel: React.FC<PropInterface> = ({
const getVideoUrl = () => { const getVideoUrl = () => {
course.playUrl(cid, id).then((res: any) => { course.playUrl(cid, id).then((res: any) => {
setPlayUrl(res.data.url); setPlayUrl(res.data.url);
initDPlayer(res.data.url, 1); initDPlayer(res.data.url, 0);
}); });
}; };