Skip to content

Commit

Permalink
Fix: temporarily disabled download
Browse files Browse the repository at this point in the history
  • Loading branch information
gagansuie committed Aug 11, 2024
1 parent 1afdb6d commit d4d866a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
24 changes: 12 additions & 12 deletions src/lib/components/Channel/Stream/DialogVod.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
export let vod: any, isHost: boolean
$: vodIsVisible = vod?.isVisible
let downloadUrl = ''
$: if (vod) {
getDownloadUrl().then((url) => (downloadUrl = url))
}
// let downloadUrl = ''
// $: if (vod) {
// getDownloadUrl().then((url) => (downloadUrl = url))
// }
const toggleVodVisibility = async () => {
const updatedVod = await patch(
Expand All @@ -27,12 +27,12 @@
vod.isVisible = updatedVod.isVisible
}
const getDownloadUrl = async () => {
return await get(`vod/download-url?videoUid=${vod?.uid}&createdAt=${vod?.createdAt}`, {
userId: $page.data.user?.userId,
token: $page.data.user?.token
})
}
// const getDownloadUrl = async () => {
// return await get(`vod/download-url?videoUid=${vod?.uid}&createdAt=${vod?.createdAt}`, {
// userId: $page.data.user?.userId,
// token: $page.data.user?.token
// })
// }
</script>

<!-- svelte-ignore a11y-click-events-have-key-events -->
Expand Down Expand Up @@ -66,9 +66,9 @@
bind:checked={vodIsVisible} />
Visible to viewers</a>
</li>
{#if downloadUrl}
<!-- {#if downloadUrl}
<li><a href={downloadUrl} target="_blank">Download</a></li>
{/if}
{/if} -->
</ul>
</div>
{/if}
Expand Down
3 changes: 2 additions & 1 deletion src/lib/components/Channel/Stream/StreamControls.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@
meta: {
name: `${env.PUBLIC_ENV}-${$page.params.channelId}`
},
recording: { mode: 'automatic' }
recording: { mode: 'automatic' },
deleteRecordingAfterDays: 3
}
})
}
Expand Down

0 comments on commit d4d866a

Please sign in to comment.