mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-12-23 01:42:09 +08:00
课程视频播放
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user