Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions components/course/Video.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
allowfullscreen
controlsList="nodownload"
oncontextmenu="return false;"
:key="`video-${activeLecture.id}`"
>
:key="`video-${videoSRC}`"
>
<track kind="captions" />
<source ref="refSource" :src="videoSRC" type="video/mp4" />
<p class="vjs-no-js">
Expand Down Expand Up @@ -73,12 +73,13 @@ export default defineComponent({
await getLectureVideoSRC(courseID, newValue);
// refSource.value.setAttribute('src', videoSRC.value);
refSource.value.src = videoSRC.value;
}, 40000);
}, 4000000);
}
},
{ deep: true, immediate: true }
);


return { videoSRC, refSource };
},
});
Expand Down