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");

Share:
568
Legend's Zone
Author by

Legend's Zone

Updated on December 28, 2022

Comments

  • Legend's Zone
    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
    Legend's Zone about 3 years
    He opened the app but I didn't know how to give him the link. Can you help me please
  • Bruno J.
    Bruno J. about 3 years
    You should probably get the file you are trying to modify, not from a link.
  • Gourango Sutradhar
    Gourango Sutradhar about 3 years
    If 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.