2

actually, I need to show .mov files in my project with a thumb(media store). same like video fetch from a gallery I know android does not support .mov file. but I need to show using any other way?

Example : Mx player all type of video formate

Now am using sample code for getting .mov file .this code not working for me.

 File[] file = Environment.getExternalStorageDirectory().listFiles();
                 try {
                     for (File aFile : file) {
                         if (!aFile.isDirectory()) {
                             if (aFile.getName().endsWith(".mov")) {
                                 Log.e("VIDEO_FILE=====", aFile.getAbsolutePath());
                                 Uri uri_mov = Uri.parse(aFile.getAbsolutePath());
                                 mediaList.add(new ExternalMediaFileBean(uri_mov, false));

                             }
                         } 
                     }
                 } catch (Exception e) {
                     e.printStackTrace();
                 }
prakash Mp
  • 363
  • 2
  • 15

0 Answers0