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);
}

ESA SUPPORTPosted Jul 16, 2025, 8:06 AM
HOW TO CONTACT YOU?
Nitin KurlePosted May 2, 2015, 1:45 AM
It is not worked in Razor c# syntax.
Khargesh RajputPosted Jan 21, 2015, 2:18 AM
how to set video path online e.g. i have uploaded video in www.abc.com/video/ab.mp4 . if i am using direct ftp path then it required username password each time
Rahul RautPosted May 8, 2013, 3:19 AM
Do you know how to do this using Razor C#?