Multiplexing online audio and video streams in android -
there 2 media files hosted on external servers - audio , video. need mux them , play online stream through android mediaplayer class.
the main problem, don't know, if there possible solution continuous download-mux-play process. i've seen examples of mediamuxer class usage, local files.
currently, start 2 media players :
//setting video mediaplayer video = new mediaplayer(); video.setdatasource("videurl"); video.prepare(); //setting audio mediaplayer audio = new mediaplayer(); video.setdatasource("audiourl"); video.prepare(); //starting both players simultaneously video.start(); audio.start(); but, of course, gives terrible synchronization between audio , video. so, question - possible mux online streams, , if yes - start research?
Comments
Post a Comment