错误发生在:meTestVideo.Source = url.Uri;我想我忘记了什么。我应该创建一个Object?对不起我的无知伙计这是我第一次在xaml编程。
public string Uri { get; set; }
private async void PlayVideo()
{
string VideoUrl = "http://www.youtube.com/watch?v=2rJwYN_SmOU";
var url = await YouTube.GetVideoUriAsync(VideoUrl, YouTubeQuality.Quality360P);
meTestVideo.Source = url.Uri;
}
答案 0 :(得分:1)
您需要在参数中使用YouTube视频ID。
public string Uri { get; set; }
private async void PlayVideo()
{
string VideoUrl = "http://www.youtube.com/watch?v=2rJwYN_SmOU";
var url = await YouTube.GetVideoUriAsync("2rJwYN_SmOU", YouTubeQuality.Quality360P);
meTestVideo.Source = url.Uri;
}