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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Suthish NairPosted Dec 3, 2010, 1:06 PM
CrishPosted Dec 3, 2010, 3:58 AM
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
Gomathi PalaniswamyPosted Dec 3, 2010, 12:06 AM
Refer http://www.dreamincode.net/forums/topic/70839-how-to-show-a-video-file-in-c%23/