pv: adjusting playback speed for video

by John Au » Mon, 21 Sep 2009 01:09:17 GMT

Sponsored Links
 Hi All,

I'm trying to set the fast forward button in android video view to
perform video fast forward as the iphone is doing : video playback
with faster pace, instead of jumping constant interval as in android
default video view.

I have located there is an API: PVPlayerInterface::SetPlaybackRate()
in the PV framework (pvplayer_engine_api.pdf, p19) and also the
related classes: playerdriver.h, playerdriver.cpp,
MediaPlayerInterface.h, MediaPlayerService.h, MediaPlayerService.cpp
which are crucial.

My questions are:
1. how can I implement PlayerDriver::handleGetPlaybackRate()  in
   (Tthe description of GetPlaybackRate() in the
pvplayer_engine_api.pdf (p.9) is confusing, what is the appropriate
value of aTimebase if using the "real-time" clock as mediaclock time

2. what should be the correct implementation in the playerdriver.cpp
for this new API with parsing values from JNI layer:
    "void PlayerDriver::handleSetPlaybackRate(PlayerGetPlaybackRate*
command)"   in playerdriver.cpp?

Thanks a lot~



Other Threads

1. How do I get the source code of Android 1.1_r1?

The exact source code for 1.1 is not available. 1.1 isn't hugely
different from 1.0, which you can get with

repo init -u git://android.git.kernel.org/platform/manifest.git -b release-1.0
repo sync

but that's most probably not going to be line-exact.


Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further


2. How to Generate Thumbnails


I am looking for a way to Generate thumbnails the same way as the
Andriod OS does.
i want to generate them while I take an picture and save it. but i
don't know how.

thanks in advance gr Cpouwels


3. ADT 0.8, eclipse 3.4

4. Cannot access Phone Number on HTC G1

5. Cheatsheets.

6. For brazilian users and developers...

7. Source code of Gallery Application