cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Ardelean (JIRA)" <>
Subject [jira] [Created] (CB-600) Problems in Media.cs
Date Sun, 29 Apr 2012 12:40:48 GMT
Dan Ardelean created CB-600:

             Summary: Problems in Media.cs
                 Key: CB-600
             Project: Apache Callback
          Issue Type: Bug
          Components: WP7
    Affects Versions: 1.7.0
            Reporter: Dan Ardelean
            Assignee: Jesse MacFadyen

There is a problem between the Cordova js and the media cs.

In js:
Media.prototype.getCurrentPosition = function(success, fail) {
    var me = this;
    exec(function(p) {
        me._position = p;
    }, fail, "Media", "getCurrentPositionAudio", []);
passing only the id

instead the cs expects an object 

 public void getCurrentPositionAudio(string options)
                MediaOptions mediaOptions;

                    mediaOptions = JSON.JsonHelper.Deserialize<MediaOptions>(options);
                 catch (Exception)
                    DispatchCommandResult(new PluginResult(PluginResult.Status.JSON_EXCEPTION));

and will always go into exception

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message