hi experts,
please help me by explaining me how to place a video file and playing it in asp page in c# language.
regards.
chiranjeevi
Playing video in asp page in c#
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Gomathi PalaniswamyRank #714 · 3.3K reputationPosted Dec 2, 2010, 7:06 PM EST
Refer http://www.dreamincode.net/forums/topic/70839-how-to-show-a-video-file-in-c%23/
CrishRank #1,487 · 1.1K reputationPosted Dec 2, 2010, 10:58 PM EST
This is very difficult thing.You can refer this following code i think it will help you.
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Media;
using System.IO;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string s="c:\\Beethoven's Symphony No. 9 (Scherzo).wav"; playaudio(s);
}
public void playaudio(string s)
{
SoundPlayer mplayer = new SoundPlayer(); mplayer.SoundLocation = s; mplayer.Play();
}
}
Otherwise just go through this link.
http://forums.asp.net/t/1303198.aspx
Suthish NairRank #92 · 22.8K reputationPosted Dec 3, 2010, 8:06 AM EST