You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/02/02 07:32:40 UTC

[jira] [Commented] (CB-10502) Exception when click "Capture!" button for camera plugin in browser

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

ASF GitHub Bot commented on CB-10502:
-------------------------------------

GitHub user TimBarham opened a pull request:

    https://github.com/apache/cordova-plugin-camera/pull/161

    CB-10502 Fix camera plugin exception in Chrome when click capture.

    The `MediaStream.stop()` method has been deprecated as of Chrome 47. We were using it, and it was generating an exception.
    
    If `stop()` method is not found, instead stop each individual track (the new way of doing it).

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/TimBarham/cordova-plugin-camera CB-10502

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-camera/pull/161.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #161
    
----
commit e48a7e5c5cffe8d9bab6eeff33feeb2747930ace
Author: Tim Barham <tb...@microsoft.com>
Date:   2016-02-02T06:25:00Z

    CB-10502 Fix camera plugin exception in Chrome when click capture.
    
    The MediaStream.stop() method has been deprecated as of Chrome 47. We were using it, and it was generating an exception.
    
    If stop() method is not found, instead stop each individual track (the new way of doing it).

----


> Exception when click "Capture!" button for camera plugin in browser
> -------------------------------------------------------------------
>
>                 Key: CB-10502
>                 URL: https://issues.apache.org/jira/browse/CB-10502
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera
>            Reporter: Tim Barham
>            Assignee: Tim Barham
>            Priority: Critical
>
> When you click the "Capture!" button for the camera plugin on the browser platform (in Chrome 47 or later), you get the following exception:
> {noformat}
> Uncaught TypeError: localMediaStream.stop is not a function
>     button.onclick @ CameraProxy.js:69
> {noformat}
> This is because {{MediaStream.stop()}} is deprecated as of Chrome 47.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org