feat: video watch time tracking

This commit is contained in:
Jannat Patel
2025-06-30 19:56:07 +05:30
parent ce7fc35349
commit 5eaae06ceb
11 changed files with 507 additions and 55 deletions

View File

@@ -27,9 +27,9 @@
oncontextmenu="return false"
class="rounded-md border border-gray-100 cursor-pointer"
ref="videoRef"
>
<source :src="fileURL" :type="type" />
</video>
:src="fileURL"
:type="type"
></video>
<div
v-if="!playing"
class="absolute inset-0 flex items-center justify-center cursor-pointer"
@@ -181,7 +181,7 @@ const props = defineProps({
default: 'video/mp4',
},
readOnly: {
type: String,
type: Boolean,
default: true,
},
quizzes: {
@@ -190,6 +190,7 @@ const props = defineProps({
},
saveQuizzes: {
type: Function,
default: () => {},
},
})