Friday, 15 February 2013

Embedding Windows Media Player in IE

Embedding Windows Media Player in IE

So Here I am with another Post.. This time how to integrate Windows Media Player in Internet Explorer using ASP.Net.. 

Use the following HTML Code in your .aspx file and include a .wmv Video in your root directory and rename it as Song.wmv...

Note: It will work only in IE

<html xmlns="" >

<head runat="server">

<script language=jscript FOR = VIDEO EVENT = playStateChange(NewState) type=text/jscript>
// Test for the player current state, display a message for each.
switch (NewState)
case 1:

case 2:

case 3:

// Other cases go here.
//alert('Your Default Message.');

<title>Embedd Windows Media Player</title>


    <form id="form1" runat="server">
    <object id="VIDEO" width="900px" height="600px" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject">
    <param name="URL" value="Song.wmv" />
    <param name="SendPlayStateChangeEvents" value="True" />
    <param name="AutoStart" value="True" />
    <param name="uiMode" value="none" />
    <param name="windowlessVideo" value="True" />
    <param name="stretchToFit" value="true" />


No comments:

Post a Comment

Thank You for Your Comments. We will get back to you soon.

back to top