Posted on: 3/26/2011 2:48:04 AM | Views : 354

As with other posts recently dealing with httphandlers and streaming(which have been reolved so far) we store video files outside of the site directory.. so my question is that each record has a path stored with the physical like e:\storage\videos\vid123.avi and so on..
is there any way to validate that the video actual exists before i try playing it? I mean in the table the record could have the path, but as exceptions already came up that the actual video is not in that location or for that matter a invalid path that maybe is no longer available on the server.. i want to play a generic video clip in its place..
I have used Directory class and always dealt with paths within the site, but i need to venture out of the site and check the actual server for the path, if it exists then check if the file exists, if not display my video, if it does then play the actual video.
any suggestions would great.
...

Go to the complete details ...