I have written an Android Program that get the video from a jsp web. Basically, the jsp will return a movie to the client, in this case, the client is Android. I can get the movie in the browser. Then, I set the this path to mediaplayer by mp.setDataSource(path). Then prepare it, exception is thrown about the player is invalid. I also try prepareAsyn(), it still doesn't work. Can anyone know how to play a movie from a jsp?
ps. if I set the path = "http://www.abc.com/123.mp4", it works perfectly. However, path = "http://www.abc.com/456.jsp", the android cannot work.