incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Ardelean (JIRA)" <j...@apache.org>
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
                 URL: https://issues.apache.org/jira/browse/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;
        success(p);
    }, fail, "Media", "getCurrentPositionAudio", [this.id]);
};
passing only the id

instead the cs expects an object 

 public void getCurrentPositionAudio(string options)
        {
            try
            {
                MediaOptions mediaOptions;

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

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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message