Page MenuHomePhabricator

getPlayPosition.patch

Authored By
bzimport
Nov 21 2014, 10:08 PM
Size
807 B
Referenced Files
None
Subscribers
None

getPlayPosition.patch

Index: src/com/fluendo/player/Cortado.java
===================================================================
--- src/com/fluendo/player/Cortado.java (revision 31854)
+++ src/com/fluendo/player/Cortado.java (working copy)
@@ -648,6 +648,10 @@
}
}
+ public double getPlayPosition() {
+ return (double) pipeline.getPosition() / Clock.SECOND;
+ }
+
public void newState(int aState) {
int ret;
switch (aState) {
Index: README
===================================================================
--- README (revision 31854)
+++ README (working copy)
@@ -258,5 +258,5 @@
doPause(): Pause playback
doStop(): Stop playback
doSeek(double pos); seek to a new position, must be between 0.0 and 1.0.
+ getPlayPosition(): returns current position in seconds
-

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4370
Default Alt Text
getPlayPosition.patch (807 B)

Event Timeline