Index: trunk/cortado/src/com/fluendo/player/Cortado.java |
— | — | @@ -648,6 +648,10 @@ |
649 | 649 | } |
650 | 650 | } |
651 | 651 | |
| 652 | + public double getPlayPosition() { |
| 653 | + return (double) pipeline.getPosition() / Clock.SECOND; |
| 654 | + } |
| 655 | + |
652 | 656 | public void newState(int aState) { |
653 | 657 | int ret; |
654 | 658 | switch (aState) { |
Index: trunk/cortado/README |
— | — | @@ -258,5 +258,5 @@ |
259 | 259 | doPause(): Pause playback |
260 | 260 | doStop(): Stop playback |
261 | 261 | doSeek(double pos); seek to a new position, must be between 0.0 and 1.0. |
| 262 | + getPlayPosition(): returns current position in seconds |
262 | 263 | |
263 | | - |