In my android app, I cannot play mov file format video file in with intent and it shows (Failed to play video) in app and in logcat, it shows Exception occurred:
java.lang.IllegalArgumentException: Unknown URI for .mov file format
In my android app, I cannot play mov file format video file in with intent and it shows (Failed to play video) in app and in logcat, it shows Exception occurred:
java.lang.IllegalArgumentException: Unknown URI for .mov file format
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(videoPath));
intent.setDataAndType(Uri.parse(videoPath), "video/*");
startActivity(intent);
Please make sure , your path is correct
First get .mov (quick time) file from intent
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(videoPath));
intent.setDataAndType(Uri.parse(videoPath), "video/*");
startActivity(intent);
and use
implementation 'com.devbrackets.android:exomedia:4.3.0'
instead of Default VideoView of Android. Method of using this videoview is same like default android videoview.