image

I’m working on a Video Portal Application and have selected the Open Video Player for embedded viewing of videos.

There are many video players out there but I selected this one becuase there are SilverLight and Flash versions in the project.

Embedding is EASY !

Code Snippet
  1. <%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
  2.     CodeBehind="Default.aspx.cs" Inherits="OpenPlayerSample._Default" %>
  3.  
  4. <asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
  5. </asp:Content>
  6. <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
  7.     <h2>
  8.         Welcome to ASP.NET!
  9.     </h2>
  10.     <p>
  11.         To learn more about ASP.NET visit <a href="http://www.asp.net" title="ASP.NET Website">www.asp.net</a>.
  12.     </p>
  13.     <p>
  14.         <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="600px" id="slp" >
  15.             <param name="source" value="./Player/SL/OVP.xap"/>
  16.             <param name="minRuntimeVersion" value="2.0.30923.0" />
  17.             <param name="onerror" value="onSilverlightError" />
  18.             <param name="background" value="black" />
  19.             <param name="MaxFrameRate" value="30" />
  20.             <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
  21.             <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/></a>
  22.             <param name="initparams" value=’showstatistics=true,
  23.                                             autoplay=false,
  24.                                             muted=false,
  25.                                             playlistoverlay=false,
  26.                                             theme=/Player/Themes/ShinyBlue.xaml,
  27.                                             stretchmode=Fit,
  28.                                             stretchmodefullscreen=Fit,
  29.                                             mediasource=http://misfitgeek.com/not_a_real_video.wmv’ />
  30.         </object>
  31.     </p>
  32. </asp:Content>

 

Stay tuned to my blog for more usage context in the near future.