如何在 Windows Phone 7 的应用程序中获取 youtube 视频的缩略图 [英] How can I get thumbnail of youtube video on my application in windows phone 7

查看:22
本文介绍了如何在 Windows Phone 7 的应用程序中获取 youtube 视频的缩略图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序在 youtube 上为用户返回了一些链接视频.但我不知道如何获得视频的缩略图.当用户点击缩略图时,它会调用 WebBrowserTask 来显示这个链接.你能帮我解决它吗.谢谢.

My apps returned for user some links video on youtube. But I don't know how to get thumbnail of video. When user click to thumbnail it will call WebBrowserTask to show this link. Can you help me slove it. Thanks.

推荐答案

您可以使用 GDATA 去获取有关 YouTube 视频的信息

You can use GDATA to go and get information about youtube videos

如果你想半途而废,缩略图的 URI 将是:

If you want to half-ass it, the URI to a thumbnail will be:

http://img.youtube.com/vi/{0}/0.jpg

其中 {0} 是视频的 ID.

Where {0} is the ID of the video.

这篇关于如何在 Windows Phone 7 的应用程序中获取 youtube 视频的缩略图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆