mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-24 01:02:48 +08:00
课程视频播放
This commit is contained in:
parent
5a5c18f83d
commit
3786355eb0
@ -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);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user