Forum Moderators: open

Message Too Old, No Replies

dynamic video library

         

microsup

3:57 pm on Apr 7, 2003 (gmt 0)

10+ Year Member



Hello everyone!

I have a microsoft access database for keeping a video files. I can put there quicktime and wmv files. I can take source of that files and show them on asp page using simple code like this:

<% if rs("ContentType") = "video/quicktime" then %>
<embed src="/DataFile.asp?FileID=<%=Request.QueryString("FileID")%>" width="238" height="182" autostart="true" />
<% end if %>

I can show quicktime (mov) video very well, but I have a problem with showing wmv file on my asp page.
I can see player and it starts loading video, but after 2 or 3 sec. it just stops and nothing happens.

Do you have any idea how to handle this situation?

SinclairUser

4:54 pm on Apr 7, 2003 (gmt 0)

10+ Year Member



Hi microsup,

This is not my area of expertise but I know that you need Windows Media Player version 7.1 or later to view wmv files properly.

Chris.

microsup

5:05 pm on Apr 7, 2003 (gmt 0)

10+ Year Member



No it doesn't help.

If I use
<embed src="/myvideo.wmv" width="238" height="182" autostart="true" /> everything works fine, but when I take data source from database it doesn't work. And player gives me an error: No combination of filters could be found to render the stream. (Error=80040218)

Do you have another ideas?

Filipe

12:57 am on Apr 8, 2003 (gmt 0)

10+ Year Member



I usually recommend against storing media in a database. The only upside to it is that it can protect people from linking directly to your media, but there are better ways to go about this that don't result in bloated databases and slow db reads and searches.

Actually storing the media to load in the database without having to store the binary medium itself is as simple as a text field that specifies the filename or path to the file.

korkus2000

11:55 am on Apr 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



So you are using access to hold the movie itself or just the path? Access only allows a few concurrent users and holding the movie in the access database is not a great solution.

microsup

5:34 pm on Apr 8, 2003 (gmt 0)

10+ Year Member



OK guys. I made changes. Now I upload my files such as jpeg and pdf to web server folder and put the url to the access database, and everything all right, BUT I hate this BUT, but I can't upload WMV and MOV files to the folder.
Do you have any ideas what is a big differece between jpeg and wmv. Do you have any way how to upload it to the server?

Please let me know.

korkus2000

5:44 pm on Apr 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There should be no difference. Are you FTPing? You may want to contact your host.

microsup

5:50 pm on Apr 8, 2003 (gmt 0)

10+ Year Member



no no no, I use a html form to upload it to the server.

korkus2000

5:53 pm on Apr 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Oh Ok. Are you using a component or are you building the upload stream yourself?

microsup

6:22 pm on Apr 8, 2003 (gmt 0)

10+ Year Member



I try to use pure asp to upload my files. I can upload jpg, but can't wmv, mov and pdf.

May be wmv, mov or pdf have a big size.
Do you have sample how to upload files to web server using pure asp whithout any components.?

microsup

7:56 pm on Apr 8, 2003 (gmt 0)

10+ Year Member



Hey every one I found solution!
I used clsUpload.asp and it works fine now.

Thanks everyone!