Trim video path in device Not found
When i trim video i get the path file://....mp4 but in my Andorid device i didn't get the trim video
I have a similar but not exact same problem. I pick a video and <VideoPlayer/> component plays it perfectly. But if I try to trim same source it throws error. I tried a few things like adding "file:" as a prefix to URI. It didn't worked.
content://media/external/video/media/206: Protocol not foundDid you mean file:content://media/external/video/media/206?
I used react-native-get-real-path package (Android only) to fetch the 'real' path before passing it on to the trim function and this worked for me
I used
react-native-get-real-pathpackage (Android only) to fetch the 'real' path before passing it on to the trim function and this worked for me
After using the package you mentioned and using ProcessingManager.trim(), it gives me something like this in the .then() callback:
file:///data/user/0/com.fenmo/cache/3f4cd129-8d9f-4f6d-9c41-cc5fbd4bb1f7-screenshot3770448757705319727.mp4
I tried to play this using the <VideoPlayer/>, however that doesnt work :(, how do I access the trimmed video then?
@blitzcrank ??
PS: I also tried using the real path for the above, as well as tried various options by removing the file:// etc. Nothing seems to work :(