Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conversion is not working #23

Open
airam666 opened this issue Nov 7, 2020 · 1 comment
Open

conversion is not working #23

airam666 opened this issue Nov 7, 2020 · 1 comment

Comments

@airam666
Copy link

airam666 commented Nov 7, 2020

photo_2020-11-07_19-25-53
following the code of the example

@pasquelin
Copy link

data.path => data.uri

const data = await this.camera.recordAsync(this.state.recordOptions)
const name = data.uri.split('/').pop().replace('.mov', '')
const body = new FormData()
const uri = await MovToMp4.convertMovToMp4(data.uri, name)
body.append('video', {
     uri: 'file://' + uri,
     name: name + '.mp4',
     type: 'video/mp4',
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants