Skip to content

Commit

Permalink
download cur video
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronshiel committed Jul 26, 2024
1 parent 898f424 commit 831cacc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion client/src/hooks/graphql/use-with-record-state.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,15 @@ export function useWithRecordState(

function downloadCurAnswerVideo() {
if (!curAnswer) return;
downloadVideoForQuestion(curAnswer?.answer.question);
if (curAnswer.recordedVideo) {
downloadVideoBlob(
curAnswer.recordedVideo,
`${curAnswer.answer.question}_video`,
document
);
} else {
downloadVideoForQuestion(curAnswer?.answer.question);
}
}

return {
Expand Down

0 comments on commit 831cacc

Please sign in to comment.