I just asked a similar question. Seems like we're running into the same problem. I haven't figured out how to deal with it yet either. Tried a bunch of different options. I'm finding that the gap is around 0.5 to 0.8 seconds between videos.
I also posted it here on stackoverflow: http://stackoverflow.com/questions/3877119/android-mediaplayer-gapless-or-seamless-video-playing On Oct 5, 12:34 pm, Dana L <[email protected]> wrote: > I'm trying to build a live streaming player by downloading video > segments (which are generated in real-time) and then playing them back > in sequence. While I can get the segments to play, I need to get it so > that there isn't a pause between playback of successive segments. I've > tried using both MediaPlayer (with an appropriate SurfaceView) and > VideoView, but there's always a small gap between segments. > > If I try to load a new video into a MediaPlayer when the first segment > finishes playing, it seems to take half a second or so before the next > segment is loaded and starts playing. I have also tried having > multiple SurfaceViews within a single ContentView (with only the > active one being visible), but it seems like you can't prepare a video > until the associated SurfaceView is visible. I also tried having > multiple ContentViews that I switch between, but again, this has > similar issues. > > Any ideas or suggestions? Is it possible to somehow get the next > segment to begin decoding as soon as the first one is decoded (which > could be before it finishes playing)? > > Am I going to need to build a custom video player in order to do this? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

