Closed zachrnolan closed 7 years ago
I guess your video is very short < 4sec is it right ?
@shahen94 you're right, I think it was right around 4 seconds. I tried a longer video and it seems to work fine. I do notice that android doesn't give me a width/height though. I'm using a Samsung S7.
do you mean that the ProcessingManager.getVideoInfo()
doesn't give width/height ?
ProcessingManager.getPreviewForSecond
will return an object with uri, width, height on iOS. However, on Android, it returns uri, but width/height are undefined.
Yes - that's right. We're not sending it from native https://github.com/shahen94/react-native-video-processing/blob/master/android/src/main/java/com/shahenlibrary/Trimmer/Trimmer.java#L360
Got it, is this something that will be added in the future? I can close this task as it's unrelated.
it's a very simple feature, but i'll prefer to use getVideoInfo
since it will give you what you need.
Ok, I'll check that method out for now. Thanks for your help!
RN 0.45.1
I get a console.log for
mediaData
with a valid path to the video file. I never see the console.log forpreviewForSecond
.This works fine on iOS.