在Javascript Metro App中播放YouTube视频 [英] Play YouTube Video in Javascript Metro App

查看:109
本文介绍了在Javascript Metro App中播放YouTube视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!


我正在寻找在Javascript Metro App中播放YouTube视频的最佳/最简单方式?我尝试过PlayerFramework,但是我没有成功。我收到了"不支持的视频格式或无效路径"错误。当我尝试使用IFrame时,我遇到了
winControl的问题。


任何正确方向的指针都会受到赞赏!



/ Anders 






Bratland

解决方案

您是否正在尝试播放Flash视频或HTML5视频?默认情况下,YouTube会使用Flash,但如果以
注册HTML5测试版,某些(并非所有!)视频都会以HTML5格式提供 www .youtube.com / html5


Metro风格的应用无法播放Flash视频,但HTML5应该没有问题。


- 罗布


Hi!

I'm looking for the best/easiest way to play a YouTube video in a Javascript Metro App? I tried the PlayerFramework, but I didn't succeed with that. I got a "unsupported video format or invalid path" error. When I tried to IFrame it, I got a problem with winControl.

Any pointers in the right direction are appreciated!

/Anders 



Bratland

解决方案

Are you trying to play a Flash video or an HTML5 video? By default YouTube uses Flash, but some (not all!) videos are available in HTML5 format if sign up for their HTML5 beta at www.youtube.com/html5 .

Metro style apps cannot play Flash videos, but shouldn't have trouble with the HTML5 ones.

--Rob


这篇关于在Javascript Metro App中播放YouTube视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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