views:

981

answers:

3

Is it possible to resize a silverlight/flash video player on the fly? I would like to create a video where I can drag the bottom left corner to resize the player (maintaining aspect ratio) or at least eliminate the possibility of doing so I could move on to other methods.

Thanks in advance...

EDIT: // forgot to mention Sorry forgot to mention, this would also mean that the actual video itself resizing right?

+5  A: 

Flash: Yes, you can alter the size of a flash object through JavaScript. Using a YUI, jQuery, or a Mootools JavaScript library, this should not be too difficult to prototype.

Here is a posts which explains how to resize flash from within your flash code.

Proportional resizing - here is an example of that as well using jQuery.

I'm not sure if the same is true for Silverlight browser objects, although I'd be surprised if you couldn't do the same.

ewalk
+5  A: 

Silverlight: Absolutely. Just set the the Stretch property to Uniform and then alter either the Width or Height as you resize.

dwynne
A: 

Here is an example of the silverlight scaling. This photo retouching and restoration site has a couple of silverlight controls that scale with browser resizing. There is quite a nice photo gallery that shows the photos before and after the retouch.