Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F4805
getPlayPosition.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 10:08 PM
2014-11-21 22:08:30 (UTC+0)
Size
807 B
Referenced Files
None
Subscribers
None
getPlayPosition.patch
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4370
Default Alt Text
getPlayPosition.patch (807 B)
Attached To
Mode
T15901: Expose Cortado play position via JavaScript
Attached
Detach File
Event Timeline
Log In to Comment