You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Andreas Rami (Created) (JIRA)" <ji...@apache.org> on 2012/04/18 10:01:00 UTC

[jira] [Created] (CB-537) media.seekTo fails on iOS 5.1 - Simulator and Devices (iPhone and iPad)

media.seekTo fails on iOS 5.1 - Simulator and Devices (iPhone and iPad)
-----------------------------------------------------------------------

                 Key: CB-537
                 URL: https://issues.apache.org/jira/browse/CB-537
             Project: Apache Callback
          Issue Type: Bug
          Components: iOS
    Affects Versions: 1.6.0
            Reporter: Andreas Rami
            Assignee: Shazron Abdullah
            Priority: Blocker


Calling seekTo fail with an Exception. Even when just using the sample Code from the API Doc here: http://docs.phonegap.com/en/1.6.0/cordova_media_media.md.html#media.seekTo

When calling seekTo the following Exception is thrown:  
*** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (3) beyond bounds (3)

This is an extreme show stopper for me because my app relies on seeking media.

--
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

        

[jira] [Commented] (CB-537) media.seekTo fails on iOS 5.1 - Simulator and Devices (iPhone and iPad)

Posted by "Andreas Rami (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258081#comment-13258081 ] 

Andreas Rami commented on CB-537:
---------------------------------

Thx for your info. Will give that a try.
                
> media.seekTo fails on iOS 5.1 - Simulator and Devices (iPhone and iPad)
> -----------------------------------------------------------------------
>
>                 Key: CB-537
>                 URL: https://issues.apache.org/jira/browse/CB-537
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>            Reporter: Andreas Rami
>            Assignee: Shazron Abdullah
>            Priority: Blocker
>             Fix For: 1.7.0
>
>         Attachments: Archive.zip
>
>
> Calling seekTo fail with an Exception. Even when just using the sample Code from the API Doc here: http://docs.phonegap.com/en/1.6.0/cordova_media_media.md.html#media.seekTo
> When calling seekTo the following Exception is thrown:  
> *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (3) beyond bounds (3)
> This is an extreme show stopper for me because my app relies on seeking media.

--
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

        

[jira] [Updated] (CB-537) media.seekTo fails on iOS 5.1 - Simulator and Devices (iPhone and iPad)

Posted by "Shazron Abdullah (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-537:
--------------------------------

    Fix Version/s: 1.7.0
    
> media.seekTo fails on iOS 5.1 - Simulator and Devices (iPhone and iPad)
> -----------------------------------------------------------------------
>
>                 Key: CB-537
>                 URL: https://issues.apache.org/jira/browse/CB-537
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>            Reporter: Andreas Rami
>            Assignee: Shazron Abdullah
>            Priority: Blocker
>             Fix For: 1.7.0
>
>         Attachments: Archive.zip
>
>
> Calling seekTo fail with an Exception. Even when just using the sample Code from the API Doc here: http://docs.phonegap.com/en/1.6.0/cordova_media_media.md.html#media.seekTo
> When calling seekTo the following Exception is thrown:  
> *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (3) beyond bounds (3)
> This is an extreme show stopper for me because my app relies on seeking media.

--
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

        

[jira] [Updated] (CB-537) media.seekTo fails on iOS 5.1 - Simulator and Devices (iPhone and iPad)

Posted by "Shazron Abdullah (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-537:
--------------------------------

    Affects Version/s:     (was: 1.6.0)
                       1.0.0
    
> media.seekTo fails on iOS 5.1 - Simulator and Devices (iPhone and iPad)
> -----------------------------------------------------------------------
>
>                 Key: CB-537
>                 URL: https://issues.apache.org/jira/browse/CB-537
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.0.0
>            Reporter: Andreas Rami
>            Assignee: Shazron Abdullah
>            Priority: Blocker
>             Fix For: 1.7.0
>
>         Attachments: Archive.zip
>
>
> Calling seekTo fail with an Exception. Even when just using the sample Code from the API Doc here: http://docs.phonegap.com/en/1.6.0/cordova_media_media.md.html#media.seekTo
> When calling seekTo the following Exception is thrown:  
> *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (3) beyond bounds (3)
> This is an extreme show stopper for me because my app relies on seeking media.

--
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

        

[jira] [Resolved] (CB-537) media.seekTo fails with NSRangeException

Posted by "Shazron Abdullah (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah resolved CB-537.
---------------------------------

    Resolution: Fixed

Fix commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/fd94c7ab
                
> media.seekTo fails with NSRangeException
> ----------------------------------------
>
>                 Key: CB-537
>                 URL: https://issues.apache.org/jira/browse/CB-537
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.0.0
>            Reporter: Andreas Rami
>            Assignee: Shazron Abdullah
>            Priority: Blocker
>             Fix For: 1.7.0
>
>         Attachments: Archive.zip
>
>
> Calling seekTo fail with an Exception. Even when just using the sample Code from the API Doc here: http://docs.phonegap.com/en/1.6.0/cordova_media_media.md.html#media.seekTo
> When calling seekTo the following Exception is thrown:  
> *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (3) beyond bounds (3)
> This is an extreme show stopper for me because my app relies on seeking media.

--
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

        

[jira] [Updated] (CB-537) media.seekTo fails with NSRangeException

Posted by "Shazron Abdullah (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-537:
--------------------------------

    Summary: media.seekTo fails with NSRangeException  (was: media.seekTo fails on iOS 5.1 - Simulator and Devices (iPhone and iPad))
    
> media.seekTo fails with NSRangeException
> ----------------------------------------
>
>                 Key: CB-537
>                 URL: https://issues.apache.org/jira/browse/CB-537
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.0.0
>            Reporter: Andreas Rami
>            Assignee: Shazron Abdullah
>            Priority: Blocker
>             Fix For: 1.7.0
>
>         Attachments: Archive.zip
>
>
> Calling seekTo fail with an Exception. Even when just using the sample Code from the API Doc here: http://docs.phonegap.com/en/1.6.0/cordova_media_media.md.html#media.seekTo
> When calling seekTo the following Exception is thrown:  
> *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (3) beyond bounds (3)
> This is an extreme show stopper for me because my app relies on seeking media.

--
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

        

[jira] [Updated] (CB-537) media.seekTo fails on iOS 5.1 - Simulator and Devices (iPhone and iPad)

Posted by "Andreas Rami (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Rami updated CB-537:
----------------------------

    Attachment: Archive.zip

Sampe code
                
> media.seekTo fails on iOS 5.1 - Simulator and Devices (iPhone and iPad)
> -----------------------------------------------------------------------
>
>                 Key: CB-537
>                 URL: https://issues.apache.org/jira/browse/CB-537
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>            Reporter: Andreas Rami
>            Assignee: Shazron Abdullah
>            Priority: Blocker
>         Attachments: Archive.zip
>
>
> Calling seekTo fail with an Exception. Even when just using the sample Code from the API Doc here: http://docs.phonegap.com/en/1.6.0/cordova_media_media.md.html#media.seekTo
> When calling seekTo the following Exception is thrown:  
> *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (3) beyond bounds (3)
> This is an extreme show stopper for me because my app relies on seeking media.

--
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

        

[jira] [Commented] (CB-537) media.seekTo fails on iOS 5.1 - Simulator and Devices (iPhone and iPad)

Posted by "Gerwin Brunner (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257389#comment-13257389 ] 

Gerwin Brunner commented on CB-537:
-----------------------------------

Just started to try out PhoneGap and ran into the same issue... Really bad. Can't work with audio cause it badly breaks the app :(
                
> media.seekTo fails on iOS 5.1 - Simulator and Devices (iPhone and iPad)
> -----------------------------------------------------------------------
>
>                 Key: CB-537
>                 URL: https://issues.apache.org/jira/browse/CB-537
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>            Reporter: Andreas Rami
>            Assignee: Shazron Abdullah
>            Priority: Blocker
>         Attachments: Archive.zip
>
>
> Calling seekTo fail with an Exception. Even when just using the sample Code from the API Doc here: http://docs.phonegap.com/en/1.6.0/cordova_media_media.md.html#media.seekTo
> When calling seekTo the following Exception is thrown:  
> *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (3) beyond bounds (3)
> This is an extreme show stopper for me because my app relies on seeking media.

--
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

        

[jira] [Issue Comment Edited] (CB-537) media.seekTo fails on iOS 5.1 - Simulator and Devices (iPhone and iPad)

Posted by "Andreas Rami (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13256392#comment-13256392 ] 

Andreas Rami edited comment on CB-537 at 4/18/12 10:10 AM:
-----------------------------------------------------------

Sample code attached
                
      was (Author: oackey):
    Sampe code
                  
> media.seekTo fails on iOS 5.1 - Simulator and Devices (iPhone and iPad)
> -----------------------------------------------------------------------
>
>                 Key: CB-537
>                 URL: https://issues.apache.org/jira/browse/CB-537
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>            Reporter: Andreas Rami
>            Assignee: Shazron Abdullah
>            Priority: Blocker
>         Attachments: Archive.zip
>
>
> Calling seekTo fail with an Exception. Even when just using the sample Code from the API Doc here: http://docs.phonegap.com/en/1.6.0/cordova_media_media.md.html#media.seekTo
> When calling seekTo the following Exception is thrown:  
> *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (3) beyond bounds (3)
> This is an extreme show stopper for me because my app relies on seeking media.

--
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

        

[jira] [Commented] (CB-537) media.seekTo fails on iOS 5.1 - Simulator and Devices (iPhone and iPad)

Posted by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13257958#comment-13257958 ] 

Shazron Abdullah commented on CB-537:
-------------------------------------

js: https://github.com/apache/incubator-cordova-js/blob/master/lib/common/plugin/Media.js#L89
obj-c: https://github.com/apache/incubator-cordova-ios/blob/master/CordovaLib/Classes/CDVSound.m#L380

When the second parameter was removed (using mediaId), a dev did not update the index of the third parameter, which is now the second parameter.

The workaround is, you need to patch your cordova-js javascript (see js ref link above) to add a dummy second parameter.

e.g.
{code}
Media.prototype.seekTo = function(milliseconds) {
    var me = this;
    exec(function(p) {
        me._position = p;
    }, this.errorCallback, "Media", "seekToAudio", [this.id, "dummy", milliseconds]);
};
{code}
                
> media.seekTo fails on iOS 5.1 - Simulator and Devices (iPhone and iPad)
> -----------------------------------------------------------------------
>
>                 Key: CB-537
>                 URL: https://issues.apache.org/jira/browse/CB-537
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.6.0
>            Reporter: Andreas Rami
>            Assignee: Shazron Abdullah
>            Priority: Blocker
>             Fix For: 1.7.0
>
>         Attachments: Archive.zip
>
>
> Calling seekTo fail with an Exception. Even when just using the sample Code from the API Doc here: http://docs.phonegap.com/en/1.6.0/cordova_media_media.md.html#media.seekTo
> When calling seekTo the following Exception is thrown:  
> *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSRangeException> *** -[JKArray objectAtIndex:]: index (3) beyond bounds (3)
> This is an extreme show stopper for me because my app relies on seeking media.

--
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