【问题标题】:Xamarin: Launch youtube channel in youtube appXamarin:在 youtube 应用中启动 youtube 频道
【发布时间】:2016-10-30 17:43:32
【问题描述】:

我正在尝试以 xamarin 形式在 youtube 应用中打开一个 youtube 频道。我可以通过编写这些代码行来打开特定的 facebook 页面和 twitter 页面:

Device.OpenUri(new Uri("fb://page/page_id"));
Device.OpenUri(new Uri("twitter://user?user_id=userid"));

我为 android 找到了 this,我尝试了这个:

Device.OpenUri(new Uri("vnd.youtube://channel_id"));

但我在 youtube 应用程序中启动后出现 400 网络错误。还有其他方法可以打开 youtube 个人资料/频道。

【问题讨论】:

    标签: xamarin.forms


    【解决方案1】:

    回答我的问题:

    Device.OpenUri(new Uri("vnd.youtube://user/XamarinVideos"));
    

    如果安装在设备中,这会直接在 youtube 应用中启动 youtube 频道。

    【讨论】:

      猜你喜欢
      • 2013-08-29
      • 2013-05-06
      • 2012-03-15
      • 2015-07-12
      • 2017-07-02
      • 1970-01-01
      • 2015-04-12
      • 2011-05-27
      • 2015-07-07
      相关资源
      最近更新 更多