1

I have an App contain YouTube videos ,I want to open them in YouTube App ,for android I used android_intent package ,is there same package for IOS ? or another way? android_intemt code :

child: InkWell(
      onTap: () async {
         await intent.launch();
      },
       child: YoutubePlayer(
       controller: _controller,
        showVideoProgressIndicator: true,
        progressIndicatorColor: Colors.blueAccent,
        ),)
SM_Berwari
  • 601
  • 1
  • 6
  • 15

1 Answers1

2

You can use url_launcher to open the YouTube link (works on iOS as well as Android). If it doesn't open in the YouTube app, try launching a URL starting with youtube://. See this answer for more details.

Adit Luhadia
  • 414
  • 8
  • 18