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] [Commented] (CB-600) Problems in Media.cs
Date Sun, 29 Apr 2012 12:48:49 GMT

    [ https://issues.apache.org/jira/browse/CB-600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13264524#comment-13264524
] 

Dan Ardelean commented on CB-600:
---------------------------------

The problem are the comments here:
 Media:{
        create:["id","src"],
        startPlayingAudio:["id","src","milliseconds"],
        stopPlayingAudio:["id"],
        seekToAudio:["id","milliseconds"],
        pausePlayingAudio:["id"],
        getCurrentPositionAudio:["id"],
        startRecordingAudio:["id","src"],
        stopRecordingAudio:["id"],
        release:["id"],
        setVolume:["id","volume"]
    },
in the js
                
> 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
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> 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