Video Using HTML 5 and servlet

后端 未结 4 1381
悲&欢浪女
悲&欢浪女 2021-02-09 18:02

Below given code is for video streaming. This is fine with IE9 and firefox but it is not fine with Chrome and Mac Safari.

import java.io.*;
import javax.servle         


        
4条回答
  •  清歌不尽
    2021-02-09 18:30

    String diskfilename = "final.mp4";
    response.setHeader("Content-Disposition", "attachment; filename=\"" + diskfilename + "\"" );
    

    Just comment these two lines and then run on chrome your video will play.

提交回复
热议问题