Hello Everyone,
I want add video file and play that file in web page in asp.net3.5.I don't know how do this?please anyone can help me?
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.
sankarPosted Feb 1, 2012, 1:30 AM
Satyapriya NayakPosted Feb 1, 2012, 1:18 AM
Please refer the below links
http://venkatb4me.wordpress.com/2011/03/13/how-to-play-flash-video-files-in-asp-net-using-c-net-or-vb-net/
http://www.c-sharpcorner.com/UploadFile/scottlysle/CsharpWebVideo04212007133218PM/CsharpWebVideo.aspx
Thanks
sankarPosted Feb 1, 2012, 1:17 AM
Krishna GaradPosted Feb 1, 2012, 1:10 AM
<%@ Register Assembly="ASPNetVideo.NET3" Namespace="ASPNetVideo" TagPrefix="ASPNetVideo" %>
now keep the video control like bellow on aspx page
Next keep fileupload control to select the video file from client and paly button for palying the video and under click event write the bellow code
if (FileUpload1.HasFile)
{
string virtualFolder = "~/Videos/";
string physicalFolder = Server.MapPath(virtualFolder);
FileUpload1.SaveAs(physicalFolder + FileUpload1.FileName);
string _path = physicalFolder + FileUpload1.FileName;
WindowsMedia1.VideoURL = _path;
}
it will start the palying videos.
Krishna GaradPosted Feb 1, 2012, 1:00 AM
sankarPosted Feb 1, 2012, 12:55 AM
Krishna GaradPosted Feb 1, 2012, 12:47 AM
refer this where you can play the videos in your application. Here i'm getting frame from the video but you can use the video control given there for your task.