playing video from a servlet
I have a servlet that outputs HTML and embeds a video which is outside of the webapp directory. I use the following path to call on the video file:///c:/video_name and it plays in ie7 but not firefox. In firefox it shows a blank page but if i view source and save it as a new file to my desktop then open it in firefox the video plays.
Thank you for any suggestions
# 1
IE is just dumb and leaky.
Use relative webcontent paths instead of absolute filesystem paths.
If those files aren't available in the webcontent, write kind of a fileservlet which streams files from the absolute path to the webcontent.
# 3
Not specific for your needs, but all you need to to is to play with the content-disposition.
http://balusc.xs4all.nl/srv/dev-jep-img.html
http://balusc.xs4all.nl/srv/dev-jep-fil.html
# 4
thanks fo the help i have implemented you approach. I am having an issue with:
<EMBED SRC="servlet/VideoStreamer?name="><%=request.getParameter("videopath")%>"
not actually calling the servlet even though my url mapping is /servlet/VideoStreamer.