带有 MediaElement 的 Windows Phone 上的 YouTube [英] YouTube on Windows Phone with MediaElement
问题描述
这篇博文建议可以直接使用 Silverlight MediaEelement
播放 YouTube 视频.
This blog post suggests that it might be possible to play YouTube videos with the Silverlight MediaEelement
directly.
<MediaElement HorizontalAlignment="Left"
VerticalAlignment="Top"
Source="http://www.youtube.com/get_video?
video_id=8yuIw_0ejLs&t=vjVQa1PpcFPrX3tFoahhu4DbniDIqTLkwybdm8xuCt8%3D&fmt=22"/>
我想知道这是否适用于 Windows Phone 7.我有一个基于播放托管在 YouTube 上的视频的应用程序,如果能够对视频体验进行更多控制而不只是启动,那就太好了带有 YouTube 视频网址的浏览器.
I was wondering if this holds true for the Windows Phone 7. I have an application that is based on playing videos hosted on YouTube, and it would be nice to be able to have more control over the video experience other than just launching the browser with the YouTube video URL.
推荐答案
除非您有视频内容的直接链接,否则您无法在 Windows Phone 7 上显示 YouTube 视频.据我所知,get_video
不再可供公众访问.
Unless you have a direct link to video content, you cannot display YouTube videos on Windows Phone 7. As far as I know, get_video
is no longer available for public access.
这篇关于带有 MediaElement 的 Windows Phone 上的 YouTube的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!