Home » Java » java – How to stream a video file from tomcat webapp folder-Exceptionshub

java – How to stream a video file from tomcat webapp folder-Exceptionshub

Posted by: admin February 25, 2020 Leave a comment

Questions:

I have a video file love.mp4 in a new subfolder of Tomcat/webapps folder, e.g. Tomcat/webapps/media/love.mp4. I am able to play the video in chrome and safari by directly accessing the url ie, http://{ip}/media/love.mp4. But when i access the same url in media players like VLC, then the video will not be accessible. How would this stream work in media players like VLC ? Can i use any spring boot api services to accomplish the same ?

How to&Answers: