feat: help guide videos

This commit is contained in:
Jannat Patel
2024-09-16 16:49:17 +05:30
parent a7843e0e3a
commit 20c10f1645
15 changed files with 216 additions and 225 deletions

View File

@@ -4,6 +4,7 @@
@timeupdate="updateTime"
@ended="videoEnded"
class="rounded-lg border border-gray-100"
ref="videoRef"
>
<source :src="fileURL" :type="type" />
</video>
@@ -71,7 +72,6 @@ const props = defineProps({
onMounted(() => {
setTimeout(() => {
videoRef.value = document.querySelector('video')
videoRef.value.onloadedmetadata = () => {
duration.value = videoRef.value.duration
}