Stream Player with jsp website

All your problems with Audio, Video and Images.

Stream Player with jsp website

Postby edwinkcw » Thu Mar 12, 2009 10:07 am

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.

Thank
edwinkcw
Developer
Developer
 
Posts: 38
Joined: Wed Feb 18, 2009 2:04 pm

Top

Postby MrSnowflake » Thu Mar 12, 2009 8:29 pm

Are you sure you are only sending the data and have everything setup correctly (mime types, ...).
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby edwinkcw » Fri Mar 13, 2009 2:30 am

How can I check that?
edwinkcw
Developer
Developer
 
Posts: 38
Joined: Wed Feb 18, 2009 2:04 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 9 guests