Embedding VLC player in the Webpage and Specifying the File Location to be Played Dynamically using ASP.NET C#

Embedding VLC player in the Webpage and Specifying the File Location to be Played Dynamically using ASP.NET C#.

Step 1: Put  the following  lines of code in your web-page and take a button :

Step 2:

<div>

<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" autoplay="yes" lop="no" height="28" runat="server" ID="Video" />

<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab" height="28"></object>

</div>



<div>
<asp:Button ID="button_play" runat="server" Text="Play" onclick="button_play_Click"/>
</div>

Step 3: Now ,on the click event of the button specify the path of the file to be played.

protected void button_play_Click(object sender, EventArgs e)
{

string path=”assign the path of the file to be played”;

//ex- string path="ftp://115.119.84.155/pub/InboundCall/1349123588.0.wav";

Video.Attributes.Add("src", path);

Video.Attributes.Add("value", path);
}