Is there any way to open video in external app like Mx player or any others apps in flutter project?
568
You can use a great package like open_file.
import 'package:open_file/open_file.dart';
OpenFile.open("/sdcard/example.txt");
//OpenFile.open("/sdcard/example.txt", type: "text/plain", uti: "public.plain-text");
Author by
Legend's Zone
Updated on December 28, 2022Comments
-
Legend's Zone over 1 year
In an application i am working on I need to be able to play videos through other apps like ,MX players, etc. How do i open these apps in flutter.
-
Legend's Zone about 3 yearsHe opened the app but I didn't know how to give him the link. Can you help me please
-
Bruno J. about 3 yearsYou should probably get the file you are trying to modify, not from a link.
-
Gourango Sutradhar about 3 yearsIf you want to open a link, then you will have to use
url_launcher
package. But you can't open an specific media player with a video link.