r36445 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36444‎ | r36445 | r36446 >
Date:07:16, 19 June 2008
Author:tstarling
Status:old
Tags:
Comment:
Add getPlayPosition() as per bug #13901
Modified paths:
  • /trunk/cortado/README (modified) (history)
  • /trunk/cortado/src/com/fluendo/player/Cortado.java (modified) (history)

Diff [purge]

Index: trunk/cortado/src/com/fluendo/player/Cortado.java
@@ -648,6 +648,10 @@
649649 }
650650 }
651651
 652+ public double getPlayPosition() {
 653+ return (double) pipeline.getPosition() / Clock.SECOND;
 654+ }
 655+
652656 public void newState(int aState) {
653657 int ret;
654658 switch (aState) {
Index: trunk/cortado/README
@@ -258,5 +258,5 @@
259259 doPause(): Pause playback
260260 doStop(): Stop playback
261261 doSeek(double pos); seek to a new position, must be between 0.0 and 1.0.
 262+ getPlayPosition(): returns current position in seconds
262263
263 -

Status & tagging log