gpt4 book ai didi

ios - Flutter:在iOS版本的YouTube应用中打开视频

转载 作者:行者123 更新时间:2023-12-03 05:28:28 25 4
gpt4 key购买 nike

我有一个包含YouTube视频的应用程序,我想在YouTube应用程序中打开它们,对于android,我使用了android_intent包,是否有用于iOS的相同包?还是另一种方式?
android_intemt代码:

child: InkWell(
onTap: () async {
await intent.launch();
},
child: YoutubePlayer(
controller: _controller,
showVideoProgressIndicator: true,
progressIndicatorColor: Colors.blueAccent,
),)

最佳答案

您可以使用 url_launcher 打开YouTube链接(适用于iOS和Android)。如果未在YouTube应用中打开,请尝试启动以youtube://开头的URL。有关更多详细信息,请参见this答案。

关于ios - Flutter:在iOS版本的YouTube应用中打开视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64197797/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com