refactor: rename Subtitles prop videoUrl to subtitleUrl
This commit is contained in:
@@ -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