how to show .mov files from gallery? is any other way to get .mov files?

577 views Asked by At

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();
                 }
0

There are 0 answers