2008年5月8日 星期四

Silverlight vs. Flash - An Analysis Report

http://silverlight.net/forums/t/3015.aspx

Silverlight vs. Flash – An Analysis Report

   Reply    Contact

 

Silverlight

Flash

Silverlight Limitations:

Silverlight is missing Linux support, so people using Linux machine cannot run it on their machines and will have to stick to Windows and MAC OS.(獨占市場的手段之一)

This limitation doesn't exist with Flash.

Silverlight will (naturally) be using the WMV and Silverlight will add to the use of the WMV file format. Using the WMV video format essentially makes Silverlight useless for the vast majority of video websites such as YouTube. It cannot play .avi and .mov file.(果然只支援自己的WMV)

Flash Video turned Flash into a mechanism for delivering media with far more potential than any other solution that is .flv, no doubt Flash has also limitation to play other video file. For that Flash required codex for that player installed on Client machine.

Silverlight has no support for binding to models, binding to data, or even connecting to network resources to obtain data.

Even flash is also lacking this area. Flash can read data source in terms of XML or text from some URL and can use it. Same thing silverlight also can read.

Silverlight doesn't even have support for things that should be considered a stock part of any library such as buttons, checkboxes, list boxes, list views, grids, etc. Probably in future release may Microsoft support it.(新的Sliverlight這些元件都有了)

Flash has rich set of control library.

Once the accessibility features are provided with Silverlight versions, any existing test tools that support driving UI through Accessibility will be fully enabled to automate Silverlight applications

Flash test tools are already in place.

Silverlight 1.0 does not support GIF-file format. Even it doesn't support BMP and other file format. It supports only JPG and PNG file format.

Support all image formats.

Can't do sound processing.

With some media file sound processing can possible.

Socket programming is not possible.

Flash allows creating XML Socket object.

Per pixel bitmap editing, bitmap filters (convolution, color matrix, etc), bitmap effects (drop shadow, blur, glow) cannot be done.

Can do that.(Flash的強項)

Webcam and Microphone support it not there.

Flash supports it.

Built in file upload/download support is not available.

Inbuilt Upload/download support is there.

The performance of Silverlight and Flash will be nearly the same. While Silverlight is using XAML as description language in a non-compressed format size of Silverlight component is large.In practical implementation of similar component in Flash and Silverlight it has found that size of Silverlight component is approximately 10-20 times larger than Flash component.(檔案過大, 這一點正中MS的要害)

Size of flash component is smaller.

To deploy Silverlight to client browser more than one components ship. (1) XAML files (2) .dll if using C# (3) Silverlight.js (4) Custom JavaScript file. Images/videos/sounds also required deploy separately.(微軟的強項, 太簡單就不是MS)

Flash ships in single component that is .swf. Images/video/sounds also incorporated in single .swf package.

It has found in practical implementation of image animation, at some extent flickering occurs on image.

To avoid this type of flickering in flash, refresh layout or cache bitmap functionalities are available.

It has found in practical implementation of video play, audio may start playing before showing movie on screen. It has also found video can still continue to play after redirecting to other page. It may be it is bug of current beta release.

Flash doesn't face these types of issues.

Right now not any support to play Silverlight object as Windows application.(看起來是定位在Web-based App)

Flash can be played as Windows application also by downloading player for it. Flash can be also packaged as .exe which can be deploying standalone.

Silverlight is new in market and required time to get acceptance in market.

Flash is exist from many years and have strong acceptance in market.

Silverlight Feature comparison with Flash Features:

Animation - Silverlight supports the WPF animation model, which is not only time based instead of frame based, but lets you define the start and end conditions and it will figure out how to get there for you. No need to deal with matrixes like in flash. Also no need to calculate positions on various frames. It just works.(很神奇) 

The animation model is frame based.

Silverlight uses XAML. XAML is text based and can be output using a simple XML object.

Flash stores its shapes using binary shape records. In order to write shape definitions, you will need to either license a 3rd party Flash file format SDK, or build your own. It isn't too difficult, but it does require a bit of a learning curve.

The debugging with Silverlight is simpler than with flash.

The debugging with flash is harder than Silverlight.

Silverlight lets you embed true type font information directly into your projects, and download that information with the downloader object.      

Dealing with fonts is fairly complex with flash.

Rich set of development languages are available for Silverlight. Developer can use JavaScript as well as managed code VB.Net, C# for Silverlight development.(沒提到 C++)

Only Action Script can be used as programming tool in Flash.

XAML is declarative while ActionScript is imperative. Using imperative languages to build UIs goes back to the early days of DOS and Windows (話是沒錯, 但是目前還是多語言是imperative languages), when developers had to manage all of the API nuances when interacting with graphical panes.

ActionScript is an imperative language, which brings itself the pitfalls of imperative languages when compared with declarative languages.

Web Services support for Silverlight Streaming(這一個就無可話說的一個''):The services provided by Microsoft, called Silverlight Streaming, it allows users and developers to host their Silverlight content and apps with Microsoft, taking advantage of their extensive global network of datacenters and their content delivery network. Best of all, this service is free, and while currently it is only in alpha it allows users to upload up to 4GB of content, and to stream up to 1 million minutes of online video delivery at 700kbps, around DVD quality. Starting right now, you can build a total video content site using Silverlight at no cost. The future for this service looks good as they will incorporate Silverlight Streaming with the MSN Video ad network to allow you to easily monetize your video streams and participate in a revenue sharing opportunity with Microsoft while removing your distribution costs. There will also be a premium level of content delivery where you will be able to pay for higher levels of usage - the cost for this service is as yet unknown but expect it to be very low.

There is not any such service provided by Flash to host the content and application with them. Because of the absence of any such service, building a video site based on Flash is not as cost effective as building a video content site using Silverlight. Moreover, because of the Silverlight Streaming service, the existing Video Content sites might be moving to Silverlight site.

Additional Support for mobile devices with desktop and desktop browsers(手持裝置也支援, iPhone有敵人了):Silverlight is supported by Windows mobile device as part of a new service that the NBL have built. Silverlight applications and media streaming can be run on a mobile phone - so Silverlight even at this stage is about more than just the desktop browser and desktop market.  Silverlight may be seen soon on the Symbian OS too.

Flash is not spread as across the vast majority of both desktops and mobiles platforms, as compared to Silverlight. Flash requires Flash Lite preinstalled on mobile devices.

Silverlight does not require video codec to run industry standard videos like .WMV

Flash requires video codec to run .WMV videos.

Silverlight supports scalable video formats from HD to mobile.(新的MediaCenter應該會從這裡開發吧)

Flash does not support scalable video formats from HD to mobile

Silverlight supports Hardware-assisted editing and encoding solutions.

Flash does not support Hardware-assisted editing and encoding solutions.

Silverlight has XAML based presentation layer for SEO. 

Flash does not have XAML based presentation layer for SEO. 

Silverlight provides End-to-end server and application platform.

Flash does not provide End-to-end server and application platform.

Media server licensing is cheaper than flash.

Media server licensing is costlier than Silverlight.

Silverlight supports Scalable full screen video.

Flash does not support Scalable full screen video.

 

不難看出, 微軟又推出一個很強大的架構, Flash應該面臨很大的壓力, 比較令人不爽的是MS還是自推自家的技術(WMV…), 感覺這個MS的世界

好像根本就沒有其他對手, 所以我們還得感謝MS的壟斷嗎~~~

2 意見:

匿名 提到...

你的這一篇比較, 寫的真好.
Flash 也有 mobile 版本的, 叫做 Flash Lite.

匿名 提到...

Flash Lite並不普及, 希望這些向量設計可以APP化...我一直很好奇HTC的Flo不知道是不是Flash Lite做的

按日期找

Contact

EMAIL: xpeoplex.bee@gmail.com

Total Visitors