react-native-video-processing icon indicating copy to clipboard operation
react-native-video-processing copied to clipboard

Trim video path in device Not found

Open DeepakVishawakarma opened this issue 5 years ago • 3 comments

When i trim video i get the path file://....mp4 but in my Andorid device i didn't get the trim video

DeepakVishawakarma avatar Mar 30 '20 11:03 DeepakVishawakarma

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?

yalcinozer avatar Jul 13 '20 07:07 yalcinozer

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

blitzcrank avatar Oct 14 '20 14:10 blitzcrank

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

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 :(

2tanayk avatar Aug 01 '21 13:08 2tanayk