Category Archives: Silverlight

Is that Silverlight on Amazon.com?

I opened up the Amazon.com site today and was quite startled to see this:


But when I viewed the source, I saw that rather than just one DIV that embedded all of this functionality (which is what I would expect from a Silverlight object) , there was a ton of html and script pulling this off, including a reference to:

 new SWFObject(“http://g-ec2.images-amazon.com/images/G/01/s9-ampaigns/MultiPackCarousel._V19505961_.swf

SWF spells Flash. Oh well.

My hopes for MSN SoapBox as a source for silverlight videos are dashed

Last time I wanted to play with using videos as a source for Silverlight media, I found that Silverlight’s “WMV only, thank you” limitation put the kibosh on my plans. YouTube and Yahoo are Flash and at the time Soapbox was password protected. Soapbox’s latest beta removed the permissions requirement on June 1 so I finally found some time today to go digging around to see if I could now use those videos as a source for dynamic embedding in silverlight. I was a little bummed to see that the the videos are also flash. Here’s what you get when you request embed script for a particular video:

<embed src=”http://images.soapbox.msn.com/flash/soapbox1_1.swf” quality=”high” width=”432″ height=”364″ wmode=”transparent” type=”application/x-shockwave-flash” pluginspage=”http://macromedia.com/go/getflashplayer” flashvars=”c=v&v=30dd604f-e0f6-498e-a24c-e3b65c7d2452″ ><embed><br /><a href=”http://soapbox.msn.com/video.aspx?vid=30dd604f-e0f6-498e-a24c-e3b65c7d2452” target=”_new” title=”Microsoft® Silverlight”>Video: Microsoft® Silverlight</a>

Flash flash flash

I tried pasting in the url anyway for the videos just in case, but of course, it doesn’t work.

bah!

Soapbox is still a beta, and does have great features, so hopefully (presumably?) there will be more options in the future.

Embedding Silverlight Annotation in my dasblog post

This was easier than I expected! Go ahead, draw in my blog post! 🙂

(note – If you do not see the drawing surface it’s because this doesn’t seem to work when the blog post is viewed individually. View my entire Silverlight category and it will be rendered properly. I guess I need to keep working on this one…)

This is the Silverlight setup that I used for my tests on this particular page.

I put the javascript and xaml files in the relative folders in my dasblog application:

thedatafarm.com/blog/xaml

thedatafarm.com/blog/js

Then I added the javascript references that are in the header tags of my html page into the header tags of the homeTemplate.blogtemplate file in my blog/themes/myfavetheme folder.

And it just works!

So far this is just letting you draw on the blog page. My persistence code in the later pages of the above mentioned tests use asp.net ajax and I’d have to do some major customization to my dasblog app to incorporate that right now. I pretty much use dasBlog out of the box, so I’m not ready to go down that road. I have lots of other stuff to learn, but this was a fun little exercise!