Tech Head Brothers Silverlight Streaming framework
Tech Head Brothers Silverlight Streaming framework is an implementation of Silverlight Streaming REST API as a class library and a set of Workflow Foundation activities focused on the Hosting Content on Silverlight Streaming.
I have implemented this light framework (some functionality are still missing) as a class library and Patrice Lamarche (http://patricelamarche.net) implemented the Workflow Foundation part of it.
The following picture shows the classes used in the framework:
It is basic with a Manager class (SilverlightStreamingManager) using a set of Command classes (AddFileCommand, DeleteFileCommand, GetFilesetFilesCommand).
Uploading a Video is as simple as those few lines:
<span style="color: rgb(43,145,175)">SilverlightStreamingManager</span> mgr =
<span style="color: rgb(0,0,255)">new</span> <span style="color: rgb(43,145,175)">SilverlightStreamingManager</span>(<span style="color: rgb(163,21,21)">"TOBEDEFINED"</span>, <span style="color: rgb(163,21,21)">"TOBEDEFINED"</span>);
<span style="color: rgb(0,0,255)">string</span> fileset = <span style="color: rgb(163,21,21)">"testvideo"</span>;
<span style="color: rgb(0,0,255)">if</span> (mgr.UploadVideo(<span style="color: rgb(163,21,21)">@"T:\_Projects\Silverlight\SilverlightStreaming\media\fiona.wmv"</span>, fileset))
<span style="color: rgb(43,145,175)">Console</span>.WriteLine(<span style="color: rgb(163,21,21)">"Uploaded sucessfully!! "</span>);
<span style="color: rgb(0,0,255)">else
Console.WriteLine(“Something went wrong !!”);
You also might prefer to use the corresponding workflow activities delivered or even the sample workflow:
Enjoy!!