How to launch a YouTube URL on Windows Phone 7

后端 未结 7 2386
伪装坚强ぢ
伪装坚强ぢ 2021-02-04 20:23

I would like to launch directly to the YouTube player on Windows Phone 7.

I tried using WebBrowserTask and giving a YouTube URL, it opens up the browser and brings me t

7条回答
  •  天命终不由人
    2021-02-04 20:48

    There is a solution for that now. You can use vnd.youtube protocol to launch the YouTube application from Microsoft and play.

    C#

     Windows.System.Launcher.LaunchUriAsync(
    
     new System.Uri("vnd.youtube:9bZkp7q19f0")
    
     );
    

    Unfortunately Launcher.LaunchUriAsync method only works with Windows Phone 8 devices and beyond.

提交回复
热议问题