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
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.