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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Krishna GaradRank #191 · 12.8K reputationPosted Jan 31, 2012, 7:47 PM EST
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.
sankar28 reputationPosted Jan 31, 2012, 7:55 PM EST
Krishna GaradRank #191 · 12.8K reputationPosted Jan 31, 2012, 8:00 PM EST
Krishna GaradRank #191 · 12.8K reputationPosted Jan 31, 2012, 8:10 PM EST
<%@ 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.
sankar28 reputationPosted Jan 31, 2012, 8:17 PM EST
Satyapriya NayakRank #47 · 31.5K reputationPosted Jan 31, 2012, 8:18 PM EST
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
sankar28 reputationPosted Jan 31, 2012, 8:30 PM EST