Re: [android-developers] Video streaming plus UI control update thread

2013-11-11 Thread Bradley O'Hearne
Piren, Thanks for taking the time to respond. I was able to figure out the problem…but I can confirm that Thread with sleep is bad. Handler is the right approach — I had something (not obvious) several layers deep in the call chain which was causing the problem. Thanks again for your help.

Re: [android-developers] Video streaming plus UI control update thread

2013-11-09 Thread Piren
I've done it and have had no issues what so ever (using a surfaceview). Regarding your code, your first approach (thread with sleep) is horrible, don't ever do that for any reason :) The second approach is the correct one which i have used myself with no issues. Since i see no reason why it

Re: [android-developers] Video streaming plus UI control update thread

2013-11-08 Thread Bradley O'Hearne
Wasn’t able to get a response on this after a few days, so perhaps I’ll try to frame it another way. If you: - Have created custom controls for a video player - Are familiar with the proper / conventional approach to updating UI controls every second / sub-second as in these kinds of apps:

[android-developers] Video streaming plus UI control update thread

2013-11-04 Thread Bradley O'Hearne
Hey there, I hope everyone’s week is off to a good start! I have a pretty simple use case: I am playing video streamed across the network in an app, and I need to update two SeekBars every second, one which tracks the video’s timecode while playing, and the other which tracks the device