Hi,
I want to store video name in database and videos in one folder.This can be achieved by fileupload.
How to retrieve videos from database and display on windows media player depending upon the query?
nandhinijp
3
Junior Poster in Training
Recommended Answers
Jump to Post
- Retrive name and video location from database
- Prefix video file location string with rest of the path
- Pass this new generated string path to media player
Jump to PostHere is nice tutorial how to do it in ASP.NET with C# or this one in regards of Silverlight
However with Silverlight you getting in …
Jump to PostFirstly upload the video file to a folder in the server by :
if (flUpload.PostedFile.ContentLength > 0) { String strPath = Server.MapPath("../") + "UploadedFiles/Folder"; flUpload.PostedFile.SaveAs(strPath + "/" + this.flUploadBrief.FileName.ToString()); }
where
<asp:FileUpload runat="server" ID="flUploadBrief" />
is the FileUpload Control.And save the name of the …
Jump to PostThis is the Object tag.
<OBJECT id=mPlayer height=250 width=320 classid=CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95 VIEWASTEXT> <PARAM NAME="filename" VALUE="moviepreview/<%Response.Write(Request.QueryString.Get("id"));%>">
You have to fill the value from server side code.
Jump to PostActually the video can be played in the player you select in your object tag code.It can be Media Player,Real Player,Google Video Player depending on the player available to your client machine. Here i suspect the other machines doesn't have the required Active X. No problem, with your Object please …
All 24 Replies
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
majestic0110
commented:
Good plan. Wanted to reply myself but couldn't think of a good response!
+2
nandhinijp
3
Junior Poster in Training
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
sebastian3
0
Light Poster
nandhinijp
3
Junior Poster in Training
sebastian3
0
Light Poster
nandhinijp
3
Junior Poster in Training
nandhinijp
3
Junior Poster in Training
nandhinijp
3
Junior Poster in Training
nandhinijp
3
Junior Poster in Training
sebastian3
0
Light Poster
nandhinijp
3
Junior Poster in Training
sebastian3
0
Light Poster
nandhinijp
3
Junior Poster in Training
nandhinijp
3
Junior Poster in Training
sebastian3
0
Light Poster
nandhinijp
3
Junior Poster in Training
sebastian3
0
Light Poster
nandhinijp
3
Junior Poster in Training
nandhinijp
3
Junior Poster in Training
sebastian3
0
Light Poster
nandhinijp
3
Junior Poster in Training
sebastian3
0
Light Poster
nandhinijp
3
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.