颤振:在iOS版本的YouTube应用程序中打开视频
我有一个包含YouTube视频的应用程序,我想在YouTube应用程序中打开它们,对于android,我使用了android\u intent软件包,IOS有相同的软件包吗?还是另一种方式? android_intemt代码:颤振:在iOS版本的YouTube应用程序中打开视频,ios,flutter,youtube,Ios,Flutter,Youtube,我有一个包含YouTube视频的应用程序,我想在YouTube应用程序中打开它们,对于android,我使用了android\u intent软件包,IOS有相同的软件包吗?还是另一种方式? android_intemt代码: child: InkWell( onTap: () async { await intent.launch(); }, child: YoutubePlayer( controller: _contro
child: InkWell(
onTap: () async {
await intent.launch();
},
child: YoutubePlayer(
controller: _controller,
showVideoProgressIndicator: true,
progressIndicatorColor: Colors.blueAccent,
),)
您可以使用打开YouTube链接(适用于iOS和Android)。如果它没有在YouTube应用程序中打开,请尝试启动一个以YouTube://
开头的URL。有关更多详细信息,请参阅答案