Mike Taulty's Blog
Bits and Bytes from Microsoft UK
WPF/E - Playing with Video
Mike Taulty's Blog

Mike's Badges

Follow on Twitter
View mike's profile on slideshare
Add to Technorati Favorites
CW Blog Awards

I had a quick stab at putting a few MediaElements on a WPF/E control and I was pretty pleased with the sort of performance that it seems to give you.

The result is here;

In doing this I ended up creating 12 MediaElements in XAML rather than in code (I guess a code approach would be more elegant and less copy-and-paste) and, for reasons stated previously, to animate them means using 12 storyboards which was a bit painful. One storyboard that could be re-targeted would be a great improvement there.

Each MediaElement plays the same video (the xbox.wmv borrowed from the SDK) so I'm not sure to what extent that aids performance although when you run this from my website, the website is slow enough that each video ends up being at a different point in its lifetime.

(There's a very basic "mouse-over" animation on the MediaElement that doesn't really work 100% but it's interesting to see a number of MediaElements working at the same time alongside a little animation).

Update - I modified this a little in order that it used 12 different videos rather than a single one. The updated version is on the link below (it animates slightly differently as well). Be aware that this means downloading 12 videos from my site which will take a long time so best plan is to run it up, wait for the videos to load and when they're all done press F5 to start again with cached videos.

http://mtaulty.com/wpfe/ex6.html


Posted Wed, Dec 13 2006 3:39 AM by mtaulty

Comments

Mike Harsh's Blog wrote Mike Taulty hosts an XBOX video in WPF/E (x12)
on Wed, Dec 13 2006 10:30 AM
Mike Taulty has built a sample with 12 MediaElements all playing back at the same time, with a mouse
Joycode@Ab110.com wrote 更多WPF/E相关信息/例子
on Thu, Dec 14 2006 10:01 AM
1。[来源: Mike Harsh's Blog ] Mike Harsh 的 WPF/E ASP.NET 服务器控件 WPF/E ASP.NET Server Control http://blogs.msdn.com/mharsh/archive/2006/12/11/wpf-e-asp-net-server-control.aspx
Expression & UX in Asia wrote Links for WPF/E
on Mon, Jan 22 2007 1:03 AM
Here is a random selection of links on Expression, mainly WPF/E that I collected after the 4 December
On .net client stuff.. wrote using wpf/e to create interactive web charts ...
on Wed, Jan 24 2007 9:07 AM
First CTP of Windows Presentation Foundation Everywhere (WPF/E) was released last december, Joe Stegman
JrzyShr Dev Guy wrote WPF/E Links for Developers
on Thu, Jan 25 2007 6:04 AM
Via Leon Brown ... Back in December, Microsoft announced the first CTP of "WPF/E", a great new solution
(C) Mike Taulty, 2009. All rights reserved. The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Inappropriate comments will be deleted at the authors discretion. All code samples are provided "AS IS" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems