【问题标题】:Flutter : open video in YouTube App in iOS versionFlutter : 在 iOS 版本的 YouTube App 中打开视频
【发布时间】:2021-01-19 16:19:33
【问题描述】:

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

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

【问题讨论】:

    标签: ios flutter youtube


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-03-23
      • 2011-02-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-12
      • 1970-01-01
      • 2013-02-08
      相关资源
      最近更新 更多