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
- <%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
- CodeBehind="Default.aspx.cs" Inherits="OpenPlayerSample._Default" %>
- <asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
- </asp:Content>
- <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
- <h2>
- Welcome to ASP.NET!
- </h2>
- <p>
- To learn more about ASP.NET visit <a href="http://www.asp.net" title="ASP.NET Website">www.asp.net</a>.
- </p>
- <p>
- <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="600px" id="slp" >
- <param name="source" value="./Player/SL/OVP.xap"/>
- <param name="minRuntimeVersion" value="2.0.30923.0" />
- <param name="onerror" value="onSilverlightError" />
- <param name="background" value="black" />
- <param name="MaxFrameRate" value="30" />
- <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
- <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/></a>
- <param name="initparams" value=’showstatistics=true,
- autoplay=false,
- muted=false,
- playlistoverlay=false,
- theme=/Player/Themes/ShinyBlue.xaml,
- stretchmode=Fit,
- stretchmodefullscreen=Fit,
- mediasource=http://misfitgeek.com/not_a_real_video.wmv’ />
- </object>
- </p>
- </asp:Content>
Stay tuned to my blog for more usage context in the near future.
Filed under:
.NET






















RE: Embedding the Silverlight version of the Open Media Player
Pingback from Embedding the Silverlight version of the Open Media Player : Misfit Geek
RE: Embedding the Silverlight version of the Open Media Player
Thank you for submitting this cool story – Trackback from DotNetShoutout
RE: Embedding the Silverlight version of the Open Media Player
Pingback from randompages ?? Blog Archive ?? Lotus Expeditoring the Lotus … | Lotus Automotive Marque