cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [1/7] wp7 commit: [CB-1593] Fix for media not playing on the first try due to 'ArgumentException'
Date Mon, 04 Feb 2013 20:31:48 GMT
[CB-1593] Fix for media not playing on the first try due to 'ArgumentException'


Project: http://git-wip-us.apache.org/repos/asf/cordova-wp7/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp7/commit/9d6837c4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp7/tree/9d6837c4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp7/diff/9d6837c4

Branch: refs/heads/master
Commit: 9d6837c489622a04da025fad2bdf9a26d84b0176
Parents: 73ffd3f
Author: Benn Mapes <benn.mapes@gmail.com>
Authored: Thu Jan 24 17:31:47 2013 -0800
Committer: Benn Mapes <benn.mapes@gmail.com>
Committed: Thu Jan 24 17:31:47 2013 -0800

----------------------------------------------------------------------
 templates/standalone/cordovalib/Commands/Media.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/9d6837c4/templates/standalone/cordovalib/Commands/Media.cs
----------------------------------------------------------------------
diff --git a/templates/standalone/cordovalib/Commands/Media.cs b/templates/standalone/cordovalib/Commands/Media.cs
index 69265dd..90c54f1 100644
--- a/templates/standalone/cordovalib/Commands/Media.cs
+++ b/templates/standalone/cordovalib/Commands/Media.cs
@@ -288,7 +288,7 @@ namespace WPCordovaClassLib.Cordova.Commands
                 if (!Media.players.ContainsKey(mediaOptions.Id))
                 {
                     audio = new AudioPlayer(this, mediaOptions.Id);
-                    Media.players.Add(mediaOptions.Id, audio);
+                    Media.players[mediaOptions.Id] = audio;
                 }
                 else
                 {


Mime
View raw message