0

爪哇代码

@RequestMapping('/getVideo')
 public void loadVideo(HttpServletHttp req, HttpServletResponse response) throws {
Integer id = request.getParameter("fileId"); 
String path = resourceService.getFilePath(id);
File file = new File(path);    
/**how to deal with video for  Output stream to html5 tag video play*/

}

jsp代码

<video src="getVideo.do?fileId=xxxx" type="video/mp4"> 

过程图

如何编程,或其他想法?

4

0 回答 0