Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to play mov videos from react native app in android?

I have tried multiple modules for playing mov videos from react native app in android. But none worked. Any idea?

  • react-native-video-player (error can't play this video)
  • react-native-media-player (java error)
  • react-native-android-video-player (java error)
  • react-native-video (not playing mov)
  • react-simple-video-player (no supported react native) react-native-video-controls (not playing mov)
  • react-native-video-player (not playing mov)
like image 692
Harikrishnan Avatar asked Nov 07 '22 11:11

Harikrishnan


1 Answers

.MOV does not work for me, too.

convert the video file:

ffmpeg -i A.MOV -vcodec copy -acodec copy out.mp4

or

https://github.com/taltultc/react-native-mov-to-mp4

Well, if you want to convert big video files so ffmpeg will do great work on server side, but for small video size convert to mp4 will not drain the battery cuz it take only few seconds.

like image 137
Android Team Avatar answered Nov 15 '22 12:11

Android Team