diff --git a/app.vue b/app.vue index 0a4b3e8..4623ee5 100644 --- a/app.vue +++ b/app.vue @@ -18,6 +18,7 @@ let selectedList = ref([]); let filesManager = new FilesManager(filesList); let history = new HistoryManager(filesManager); +const videoExtensions = ['mp4', 'avi', 'mov', 'mkv']; let mediaBlobUrl = ref(''); watchEffect(async () => { @@ -65,9 +66,10 @@ watchEffect(async () => { } // Experimental feature - // if(['mp4', 'avi', 'mov', 'mkv'].includes(filesManager.getFile(selectedPath.value)?.extension?.toLowerCase())) { - // mediaBlobUrl.value = await filesManager.getFileBlobUrl(selectedPath.value) as string; - // } + if(videoExtensions.includes(filesManager.getFile(selectedPath.value)?.extension?.toLowerCase())) { + mediaBlobUrl.value = await filesManager.getFileBlobUrl(selectedPath.value) as string; + console.log(mediaBlobUrl.value) + } }) const dragContainer = document.querySelector(".select-area"); @@ -168,7 +170,7 @@ function stepUp(path: string) { -