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. Android (dalvik) performance question for API design

Taking into account JIT and non-JIT devices, what would be most
efficient on Android for returning multiple values from functions:

an array like this:

float[] bestSize(float [] result) {

  // calculations...

  result[0] = width;
  result[1] = height;
  return result;

or a final class like this:

Size bestSize(Size result) {

  // calculations...

  result.width = width;
  result.height = height;
  return result;

Where Size is defined as:

public final class Size {
  public float width;
  public float height;


2. 3D Model Loader using NDK

HI, all.

I'm having a little problem here: I have this app, which is a 3D Photo
Gallery. It takes the photos on your phone and displays it in a
virtual art museum thing. My issue is this: I want to be able to put
models in, such as plants and/or chairs and what-have-you, but all the
3D model loaders on the internet are written in Java. I wrote my app C+
+ using the JNI/NDK thingie. Can anyone give me code that will load
a .obj model and render it that will run through the JNI? Thanks.



3. Market API

4. Getting a RadioGroup to redraw with correct button checked

5. Auto-repeat button

6. 2 columns 2 rows list view

7. Testing licensing on emulator.