Tuesday, May 24, 2011

[android-developers] Slow motion video

I am able to play back video using the mediaplayer with the standard
video control buttons.

My question is how can I use a slider /progress bar to act as a play
back speed.
which function would I have to override and how.
basically

while not end of movie
play next frame
sleep (value of progress bar (0 - 100) * 4000);

this way when the slider/progress bar is at 0 sleep is 0; thus there
is NO delay in playback

when the slider is at 100 then sleep is 40,000, thus there is a 40
second delay between frames causing the video to slow.

As you can see I have a concept but I am not sure of the routines, I
found reference to play a frame
but could not find any examples and it would appear that it is now
depreciated.

thanks in advance

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate