Tag Archives: Community Server

Windows Media Stream CSModule

I wrote my first Community Server module to display Windows Media Streams inside blog posts (bin and src download attached to this post).  You can do something similar with the YouTube plugin that Scott W wrote, but I wanted to try my hand at writing a CS plug-in and thought this would be a cool exercise.

Check out the BBC 24 News Headlines below:

[MMS://wmlive.bbc.net.uk/wms/news/heads_bb_s1:400:270]

To install this module, add the following line to the communityserver.config file under the <CSModules> tag, and copy the DLL to the bin directory.

<add name = "MMS" type = "RobGarrett.com.CSModules.MMSModule, RobGarrett.com.CSModules.mmsModule" /> 

To add a stream to a post, use the following syntax (replace { } with [ ]  ):

{mms_url:width:height}

e.g

{MMS://wmlive.bbc.net.uk/wms/news/heads_bb_s1:400:270}

That's all there is to it.

Hiding under a rock?

Well.. sort of, just been really busy (story of my life).  The good news is that some more blog-worthy content will be coming along soon.  Meanwhile, those of you with a keen eye may have noticed that I upgraded Community Server from version 2.0 to 2.1 – I see that some of the AJAX controls have been replaced with user friendly cross browser happy HTML controls (especially in the admin section), and my site now has "tag" support.  Enjoy the new version, and let me know if you see any problems.

Many thanks to Chris in helping my upgrade to go smoothly.