views:

550

answers:

2

i want to play flv videos on my website. The video files are not stored on my server but i only have the url of video . The url of video donot end with .flv. So my flv player( jw player) gives error "video not found " . only if the url is ending with .flv then it plays.

How can i play the videos whose path dont end with .flv ?? I cant download it on my server and the forward becose i dont have much server space.

My site is in java/jsp with struts.

+1  A: 

you don't have to download it, but you can still pipeline it through your server. Java's simple networking apis should let you do this. Although it seems like a bit much simply for a file extension. Are you running behind apache? If so - you can use it as a proxy to other sites (and do regex translations of the url). That might be the easiest way.

andersonbd1
@ andersonbd1 :Thanks for replying. Can u elaborate plz on your second solution?i am using apace tomcat as my server
no - not tomcat - apache http server. http://httpd.apache.org/ with mod_proxy http://httpd.apache.org/docs/2.0/mod/mod_proxy.html
andersonbd1
A: 

Have a look at red5 - it's an opebn source java based implementation of Flash media server. The documentation isn't great but it's quite a good product.

http://code.google.com/p/red5/

Pablojim