[Video] Add uploaded video to post (#4884)
* video uploads! * use video upload lexicons * add missing postgate * remove references to prerelease package * fix scrubber showing a "0" * Delete types.ts * rm logs * rm upload header --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
This commit is contained in:
parent
d52d29621e
commit
551c4a4f32
8 changed files with 116 additions and 126 deletions
|
@ -178,7 +178,7 @@ export const ComposePost = observer(function ComposePost({
|
|||
clearVideo,
|
||||
state: videoUploadState,
|
||||
} = useUploadVideo({
|
||||
setStatus: (status: string) => setProcessingState(status),
|
||||
setStatus: setProcessingState,
|
||||
onSuccess: () => {
|
||||
if (publishOnUpload) {
|
||||
onPressPublish(true)
|
||||
|
@ -348,6 +348,7 @@ export const ComposePost = observer(function ComposePost({
|
|||
postgate,
|
||||
onStateChange: setProcessingState,
|
||||
langs: toPostLanguages(langPrefs.postLanguage),
|
||||
video: videoUploadState.blobRef,
|
||||
})
|
||||
).uri
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue