HTML5,Silverlight,Flash,OBJECT标签......? [英] HTML5, Silverlight, Flash, OBJECT tag.........?

查看:68
本文介绍了HTML5,Silverlight,Flash,OBJECT标签......?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我已经编写了asp.net/javascript数据库应用程序已有几年了...添加,编辑删除和报告.
现在,我有一个新客户,他想要一个Web应用程序,该应用程序将向付费客户显示他的健康和教育视频.
我的问题是:使用哪种技术?我研究了HTML5,Silverlight,Flash,Flowplayer.
所有人似乎都各有利弊. IE8上不提供HTML5视频(尽管Modernizr可能会提供帮助),IOS不支持Flash,IOS不支持Silverlight
另外,客户端不希望用户能够轻松地将视频保存到磁盘.
我已经花了一天的时间进行研究,目前我更喜欢HTML5/Modernizr,但我想知道您会怎么做?

还有其他人有同样的问题吗?我非常感谢一些快速的想法,只是一个总结,我可以编写代码....
还是一些有用的链接?

Hi to all
I''ve been writing asp.net / javascript database applications for a few years...add, edit delete and report.
Now I have a new client who wants a web app that will display his health and education videos to paying customers.
My problem is: which technology to use? I''ve researched HTML5, Silverlight, Flash, Flowplayer.
All seem to have their pros and cons. HTML5 video not available on IE8 (though Modernizr may help there), Flash not supported on IOS, Silverlight not supported on IOS
Also, the client does not want the user to be able to easily save the videos to disk.
I''ve spent a day researching this already, and I''m currently favouring HTML5 / Modernizr, but I''d like to know what you would do?

Has anyone else had the same problem? I''d much appreciate a few quick thoughts, just a summary, I can write the code....
Or some useful links?

推荐答案

我建​​议您使用Silverlight.因为,您可以真正控制元素,尤其是图形和视频.实际上,iOS上不支持此功能.但是取决于您拥有什么样的客户.
http://msdn.microsoft.com/es-ES/library/bb404700 (v = vs.95).aspx [
I recommend you to use Silverlight. Because, you have truly control of the elements, especially graphics and video. It''s not supported on iOS, really. But depends on what kind of customers do you have.
http://msdn.microsoft.com/es-ES/library/bb404700(v=vs.95).aspx[^]

I also, like HTML5 and I see a very good solution for you requirements on it.

As I said before, all depends of your customer''s requirements.

Hope it helps in any way.




我建议您选择Silverlight,因为您可以更好地控制视频播放器,而且操作简单易用.但这一切都取决于您所服务的客户类型.正如您提到的那样,iOS不支持Flash,但是Silverlight在iOS上可以运行,但是您可能会在iOS上运行Silverlight应用程序时遇到一些问题,但是可以通过一些研发加以解决,并且代码中的调整很少.

但是,如果您的目标客户范围是最多Windows用户,那么Silverlight将是您的最理想选择.在HTML中,您可以嵌入YouTube视频,无需身份验证即可轻松下载.但是使用Silverlight,您将可以完全控制视频,并可以依靠它来安全地上传和下载.

因此,请继续使用Silverlight.
希望这会有所帮助.

祝您编码愉快.
Hi,

I would suggest you to go for Silverlight as you have more control over the video players and it is simple and easy to use. But it all depends on the kind of clients you are working for. As you mentioned Flash is not supported in iOS but Silverlight does work on iOS but you may face some issues running your silverlight applications on iOS but that can be fixed with some R&D and may be few adjustments in your code.

But if your target client range is a maximum of Windows users then Silverlight would be the most ideal for you. In HTML you can just embedd YouTube videos which may be easy to download without authrorization. But with Silverlight you will have complete control over your videos and can rely on it for secure upload and download.

So just go ahead with Silverlight.
Hope this helps.

Happy coding.


您好,

考虑到最近的发展(即Flash不再存在于Android或至少不再存在)以及Flash可能在不到一年的时间内完全停产这一事实,可以肯定地说Flash是您最糟糕的选择.

我从未听说过Flowplayer本身,但是考虑到它被宣传为用于Web的Flash视频播放器",因此它也存在所有相同的问题.

由于Sliverlight仅限于IE,因此无法与Flash竞争,因此无法在纯视频中大放异彩.

因此最终归结为三个选项(您尚未考虑其中两个-一个是混合选项).您可以使用HTML5,也可以采用流行的YouTube方式.两者的优缺点:

YouTube:由于Google为使YouTube在所有浏览器中都能正常工作(将为您完成所有工作)而将视频设为私有,因此如果需要就无法搜索,将可在任何设备上播放,Buuut视频将更易于下载.

HTML5:一种新兴的嵌入视频的最佳方式.仍可轻松下载,但将在几乎所有浏览器中使用(使用正确的视频格式-请参阅W3Schools),并且维护成本较低.

(请注意您的客户:如果他们可以下载该文件以在浏览器中查看,他们可以轻松地将其下载并保存到硬盘中.除非您陷入混乱的DRM内容(实际上并非如此),否则目前无法解决. (Flash除外)在网络上支持.希望HTML5的未来版本将为视频/音频标签引入HTTPS/DRM的某种组合,但目前尚不可行,您只需要忍受其他人下载它-这就是为什么人们对版权/知识产权/文件共享网站如此之多,尤其是现在与电影如此震惊的原因-请参阅新闻.)


我假设您的客户市场仍必须支持XP/IE8(明智且公平).这确实为您提供了我可以想到的第三个也是最后一个选择,我强烈建议您选择一个(基于Google的方法).根据您自己的描述,我将假设您有足够能力自己实施此理论:

1)收到请求后,抓住用户代理
2)如果用户代理与IE8用户代理匹配,请继续执行步骤3,否则继续执行步骤4
3)将视频的Flash嵌入标签输出到HTML中.转到步骤5.
4)将视频的HTML5视频标签输出到HTML中.转到步骤5.
5)照常继续页面.

这样一来,您就可以使用可维护/可靠的最新方法(即HTML5),同时仍然可以优雅地降级到XP/IE8.我毫不怀疑Flash将在一段时间内仍可为XP用户使用-足够长的时间至少可以与IE8一起使用-即使Adobe无法正式"提供Flash.

希望这会有所帮助,
埃德

重要/有用的链接:

HTML5-设置多个可能的视频源以支持所有浏览器-对Safari和IE使用不同的视频类型. [ ^ ]

W3Schools上的一个非常好的页面,涵盖了所有包含HTML解决方案和YouTube解决方案的内容-阅读整页! [ ^ ]
Hi there,

Well given recent developments (i.e. Flash no longer existing on Android or at least not for much longer) and the fact that Flash will be totally discontinued in probably less than a year, it''s a pretty sure bet that Flash is your worst option.

Flowplayer I have never heard of in itself but given that it is advertised as a "Flash video player for the web", it comes with all the same issues.

Sliverlight has largely failed to take off in pure video as a rival to Flash given it''s significant limitation to only really IE.

So ultimately it comes down to three options (two of which you haven''t considered - one is a hybrid). You can either use HTML5, or go the popular YouTube way. Adv/disadv of both:

YouTube: Make videos private so not searchable if wanted, will play on any device due to Google''s massive effort to get YouTube working in all browsers (will do it all for you), Buuut videos will be easier to download.

HTML5: The up and coming best way to embed videos. Still easily downloadable but will work in almost all browsers (use correct video format - see W3Schools) and will be a low maintenance method.

(Note to your client: If they can download it to view it in browser, they can easily download it and save it to their hard disk. No way around it at the moment unless you get into messy DRM stuff which isn''t actually (other than Flash) supported on the web yet. Hopefully future versions of HTML5 will introduce some combination of HTTPS/DRM for the video/audio tags but at the moment it''s not possible. You will just have to put up with people downloading it - it''s why people are so riled about copyright/intellectual property/file sharing sites especially with movies at the moment - see the news.)


I am assuming given your client''s market that XP/IE8 must still be supported (which is sensible and fair enough). This does leave you with a third and final option that I can think of and one that I highly recommend (based around Google''s approach). I will assume, form your own description, that you are competent enough to implement this theory by yourself:

1) Upon receiving a request, grab the User Agent
2) If the User Agent matches the IE8 User Agent, continue to step 3, else step 4
3) Output into your HTML a Flash embed tag for the video. Go to step 5.
4) Output into your HTML an HTML5 Video tag for the video. Go to step 5.
5) Continue page as normal.

This will allow you to use maintainable/reliable up-to-date methods (i.e. HTML5) while still having a graceful degradation to XP/IE8. I have no doubt that Flash will remain available for XP users for some time - long enough at least to last with IE8 - even if it is not "officially" available from Adobe.

Hope this helps,
Ed

Vital/helpful links:

HTML5 - Setting multiple possible video sources to support all browsers - using different video types for Safari and IE.[^]

A very good page from W3Schools covering all encompassing HTML solutions and the YouTube solution - read the full page![^]


这篇关于HTML5,Silverlight,Flash,OBJECT标签......?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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