The SilverlightMedia JavaScript Library
A JavaScript library making it quick and easy to work with any web-based media player built with Silverlight.

You can take control of any Silverlight media player using pure JavaScript. This facilitates useful scenarios e.g. creating HTML controls, displaying player status, etc.

Download here: SilverlightMedia JavaScript source code, with a working example.

Harness the power of Silverlight

Silverlight applications are, by default, seamlessly integrated with the web page. This means true two-way access between Silverlight and the JavaScript and HTML DOM. With standard JavaScript code, you can work directly with the objects, properties. methods and events within Silverlight.

SilverlightMedia takes advantage of this advanced capability of Silverlight, providing you the web developer with the ability to control Silverlight-based media players, from online radio players to embedded video players, using very simple JavaScript code. SilverlightMedia takes care of the standard JavaScript code, leaving you to concentrate on the interesting stuff.

In case you hadn't noticed, this is powerful stuff; in Flash you'd have to write explicit additional "ActionScript" code for each specific aspect of the Flash application you want to expose to JavaScript! Thus, Silverlight's JavaScript bridge enables completely knew way of thinking about and developing the web client applications. Welcome to the next-generaton of web apps...

Notes
  • The current version of SilverlightMedia is tested on Silverlight 2.0 media players so far, and thus referred to as "SilverlightMedia".
  • This is an open-source project and a work in progress. Feel free to help us improve it.
  • This type of web app needs to be on a web server to work properly, and you may need to ensure that the web server is set to correct Silverlight files (*.XAP) with the correct MIME type ("application/x-silverlight-app"). How to set MIME types in IIS and Apache

    Additional information is available here: Project Startup Guide.

Last edited Jan 24, 2011 at 9:47 AM by timacheson, version 12