JW Silverlight Player ActionView Helper

What Is It?

silverlight-player-helper is a Rails plugin that presents an ActionView wrapper for rendering JW Silverlight Player by using silverlight

JW Silverlight Player is a popular open source Media player that supports WMV, WMA and MP3 format.

Getting Started

script/plugin install git://github.com/bagwanpankaj/silverlight_player_helper.git

This will automatically do what is required by JW Silverlight Player.

If required files are not copied autometically under public directory then run

rake sl_player:install

How to use

First you need to include two javascript files into your views

<%= javascript_include_tag 'silverlight', 'wmvplayer' %>

then In your views use it like

<%= jw_silverlight_player({:file => '/path/video.wmv',:width => 640, :height => 480}) %>

in which options contains hash of JW Silverlight variables. You can find list of those variables here and player_config contains hash of player_id and path to xaml file.

More Info

For more info write me at bagwan.pankaj[at]railsjaipur.in

Copyright © 2010 Bagwan Pankaj, released under the MIT license