refactor: rename Subtitles prop videoUrl to subtitleUrl
This commit is contained in:
@@ -71,7 +71,7 @@ init()
|
||||
<GamePlayer @video-ready="onVideoReady" />
|
||||
<Subtitles
|
||||
:current-time="store.videoTime"
|
||||
:video-url="store.currentScene?.subtitleUrl ?? null"
|
||||
:subtitle-url="store.currentScene?.subtitleUrl ?? null"
|
||||
/>
|
||||
<QTEOverlay
|
||||
:visible="store.qteActive"
|
||||
|
||||
@@ -9,14 +9,14 @@ interface SubCue {
|
||||
|
||||
const props = defineProps<{
|
||||
currentTime: number
|
||||
videoUrl: string | null
|
||||
subtitleUrl: string | null
|
||||
}>()
|
||||
|
||||
const cues = ref<SubCue[]>([])
|
||||
const currentText = ref('')
|
||||
const loadedUrl = ref('')
|
||||
|
||||
watch(() => props.videoUrl, async (url) => {
|
||||
watch(() => props.subtitleUrl, async (url) => {
|
||||
if (!url || url === loadedUrl.value) return
|
||||
loadedUrl.value = url
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user