Re: [android-developers] VideoView and buffering

2012-01-31 Thread John-Marc Desmarais
Daniel, It is my feeling that since the swap is being done in the onCompletion handler, there would be a gap in playback in either case. If prepare is the time consuming part of Prepare(), Start(), Seekto().. then I can see this shrinking the gap. But, if there is a detectable delay, then the leng

Re: [android-developers] VideoView and buffering

2012-01-31 Thread Daniel Drozdzewski
John-Marc, I am glad that it works. I am not sure whether prepareAsync would be quicker than blocking prepare call. I mean that whatever the system implementation of the player, preparing it takes the same amount of time and async call simply does not block, but if you call play as a next statem

Re: [android-developers] VideoView and buffering

2012-01-31 Thread John-Marc Desmarais
Hi, I'm using the reset() now. There's a little bump in the playback every time it reaches the end of the content that existed in the file when it was initially loaded which I don't like but I'm using prepareAsync so I think this hiccup is as small as I can make it with a single VideoView. Thanks

Re: [android-developers] VideoView and buffering

2012-01-30 Thread Daniel Drozdzewski
John-Marc, I have not done this myself, but here is tutorial on how to do it: http://blog.pocketjourney.com/2008/04/04/tutorial-custom-media-streaming-for-androids-mediaplayer/ They actually create new MediaPlayer object upon every update to the buffer file and point this new MediaPlayer to the u

[android-developers] VideoView and buffering

2012-01-30 Thread John-Marc Desmarais
Hi, I am currently writing a video file to the SDCard while playing it with VideoView. My problem is that, if I buffer 1MB of video and begin the Video playback, the video stops after 1MB has been played, even though by this time, 5MBs of file has now been written to the sdcard. I have been tryi