Video Using HTML 5 and servlet

后端 未结 4 1280
悲&欢浪女
悲&欢浪女 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:34

    Google Chrome does not support H.264 (includes mp4) so you need to use final.ogg with google chrome as well. while for safari you need to change this line

    browser.indexOf("CoreMedia") != -1
    

    add "Safari" instead of "CoreMedia"

    i hope it works.

提交回复
热议问题