OrdinaryIndian wrote:
> Any suggestion to my last post?

Nothing should go in a background thread. You do not need a background
thread for this problem.

Here is a project that shows a video player with a timeline. No
background threads were harmed in the making of this project:

http://github.com/commonsguy/vidtry

Just use postDelayed() to arrange to get control every second (roughly)
and update your timeline based on the MediaPlayer's elapsed time and
duration values.

> Should I use SurfaceView or VideoView for playing video? Thanks.

Either can work. I used MediaPlayer and a SurfaceView, but the necessary
methods for a progress indicator are available on VideoView as well.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Consulting/App Development: http://commonsware.com/consulting

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to