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

[378 byte] By [morningJavaa] at [2007-11-27 11:14:48]
# 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.

BalusCa at 2007-7-29 14:09:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Thanks,

Do you have a link for an example of this?

morningJavaa at 2007-7-29 14:09:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 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

BalusCa at 2007-7-29 14:09:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 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.

morningJavaa at 2007-7-29 14:09:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

Got it,

Thanks a lot BalusC for the help it is working great.

morningJavaa at 2007-7-29 14:09:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...