Skip to content

Commit

Permalink
fix video path
Browse files Browse the repository at this point in the history
  • Loading branch information
abidlabs committed Oct 30, 2023
1 parent 0d261c6 commit 5916b3d
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 7 deletions.
1 change: 0 additions & 1 deletion js/video/Index.svelte
Expand Up @@ -60,7 +60,6 @@
_subtitle = null;
}
}
let dragging = false;
$: {
Expand Down
4 changes: 2 additions & 2 deletions js/video/shared/VideoPreview.svelte
Expand Up @@ -47,12 +47,12 @@
</script>

<BlockLabel {show_label} Icon={Video} label={label || "Video"} />
{#if value === null}
{#if value === null || value.url === undefined}
<Empty unpadded_box={true} size="large"><Video /></Empty>
{:else}
{#key value.path}
<Player
src={value.path}
src={value.url}
subtitle={subtitle?.path}
{autoplay}
on:play
Expand Down
44 changes: 40 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5916b3d

Please sign in to comment.