java - Play media (video) from a network stream(http) directly -


i play media (video) network stream(http) directly, hence have somehow feed android mediaplayer data.

i have fileoutputstream outstream = new fileoutputstream(outputfile); write outputfile outstream.write(buffer, 0, count);

is there api takes stream input....???.... please help...

android supports progressive download , http live streaming(only in 3.0) , both of these work on http.

you can use videoview or mediaplayer leverage progressive downloading , play videos: see this discussion.

also, if server, delivers segmented files(.ts) in conformance apple's http live streaming ietf draft, can directly supply url mediaplayer , play video using surfaceview. note: have replace "http" "httplive:" in url.


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -