incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bcur...@apache.org
Subject [2/2] spec commit: Fix display of current position and release player when stopped.
Date Thu, 01 Mar 2012 19:44:13 GMT
Fix display of current position and release player when stopped.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/commit/cb1394f1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/tree/cb1394f1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/diff/cb1394f1

Branch: refs/heads/master
Commit: cb1394f1cb1471092e0564f3810ca2e9646610e2
Parents: 2ce446d
Author: Bryce Curtis <curtis.bryce@gmail.com>
Authored: Thu Mar 1 13:42:49 2012 -0600
Committer: Bryce Curtis <curtis.bryce@gmail.com>
Committed: Thu Mar 1 13:42:49 2012 -0600

----------------------------------------------------------------------
 audio/index.html |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-mobile-spec/blob/cb1394f1/audio/index.html
----------------------------------------------------------------------
diff --git a/audio/index.html b/audio/index.html
index 891713e..4cf872e 100755
--- a/audio/index.html
+++ b/audio/index.html
@@ -85,7 +85,7 @@
                     media1.getCurrentPosition(
                         function(position) {
                             console.log("Pos="+position);
-                            if (position > -1) {
+                            if (position >= 0.0) {
                                 setAudioPosition(position+" sec");
                             }
                         },
@@ -132,6 +132,7 @@
         console.log("stopAudio()");
         if (media1) {
             media1.stop();
+            media1.release();
         }
         clearInterval(media1Timer);
         media1Timer = null;


Mime
View raw message