You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bc...@apache.org on 2012/03/01 20:44:13 UTC
[2/2] spec commit: Fix display of current position and release player
when stopped.
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 <cu...@gmail.com>
Authored: Thu Mar 1 13:42:49 2012 -0600
Committer: Bryce Curtis <cu...@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;