English 中文(简体)
• 如何在视窗电话上启用YouTube URL 7
原标题:How to launch a YouTube URL on Windows Phone 7

我愿直接向视窗7上的YouTube角色发射。

我利用WebBrowserTask,并赠送YouTube URL,打开浏览器,把我带上YouTube录像带 的网页,我需要在录像剧前点击th。

我要ski击。 我同用户一样,在我的照片中点击一个纽子,它应该直接拍摄录像。 是否有办法这样做?

问题回答

在你安装了“YouP”灯后,从你的申请中,你可以开始“WebBrowserTask”,并做:

        Regex Youtube = new Regex("youtu(?:\.be|be\.com)/(?:.*v(?:/|=)|(?:.*/)?)([a-zA-Z0-9-_]+)");            

        Match youtubeMatch = Youtube.Match(YOUTUBE_VIDEO_URL);           

        string id = string.Empty;

        if (youtubeMatch.Success)
            id = youtubeMatch.Groups[1].Value; 

        WebBrowserTask webBrowserTask = new WebBrowserTask();


        webBrowserTask.URL = "vnd.youtube:"+ id +"?vndapp=youtube_mobile";
        webBrowserTask.Show();

这应当发射浏览器,然后自动发射YouP App。 Cheers!

最后,我拟定了一个清洁的解决办法(不执行浏览器任务,也不“重复关键紧迫”):

http://mytoolkit.codeplex.com/wikipage?

a. 使用以下样本;

  WebBrowserTask webBrowserTask = new WebBrowserTask();
  webBrowserTask.Uri = new Uri("http://www.youtube.com/embed/V3oJR5IAMxM?autoplay=1");
  webBrowserTask.Show();

这应该直接打开录像,但我认为,你不得不再次点击。

现在有一个解决办法。 您可使用vnd.you Programme Protocol,从Microsoft发起YouTube申请,并游戏。

 Windows.System.Launcher.LaunchUriAsync(

 new System.Uri("vnd.youtube:9bZkp7q19f0")

 );

遗憾的是,LaunchUriAsync方法只使用Windows。 电话:8 装置和其他装置。

下一个版本的“Mabe”将成为习俗选择者和午餐者。

为了显示YouTube的录像,你们需要YouTube的视频运动员。 否则,你将需要写一本习俗指南,接受YouTube的流,并在媒体上展示。

当你发现目前是可能的。

目前,除了使用发射器或霍乱器外,还无法启动另一项申请。

在YouTube网站,可以配置个别录像,以自动进行。 我不知道这样做的方法。

However, on the phone this is different. YouTube uses flash to play videos but Flash is not currently supported on the phone. YouTube videos can only be played if the YouTube application is installed. When you open the youtube site with the webbrowsertask the user must click on the image to launch the player.
If web pages were able to launch applications without first requiring user action this could be a huge security issue.

N.B. 《YouTube》有特殊高超的特权,一般无法利用这些特权来启动。





相关问题
mysql - store embed codes (youtube, vimeo etc)

How best to store the html for embedding? the only ways I can think of are: take the embed html and add <?php echo $var1; ?> where the id s go then store it in the db and use Eval to execute ...

openURL and YouTube

Is there any way to open the YouTube app from my app, with a defined search query? If not, is there a way to just open YouTube, without playing any video? All I m finding is ways to play videos.

emulating iPhone video player behaviour

I need to debug a networking application which handles video downloaded by iPhone from Youtube. iPhone downloads chunks of video by requesting each time a different file range (by adding Content-Range ...

Uploading video using the YouTube API via Flash AS3

I m trying to work out how to upload videos to YouTube using the api from flash. There seems to be libraries available for doing this with php, ruby, java etc. but not AS3. Can anyone point me in the ...

Curl setting Content-Type incorrectly

I am running a curl operation on the command line and am having trouble forcing the header to set as XML. I use the -H option to force the Content-Type to be xml, however, once I run the command I can ...

热门标签