Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C5627185F2 for ; Fri, 8 Jan 2016 16:23:40 +0000 (UTC) Received: (qmail 93475 invoked by uid 500); 8 Jan 2016 16:23:40 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 93455 invoked by uid 500); 8 Jan 2016 16:23:40 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 93333 invoked by uid 99); 8 Jan 2016 16:23:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jan 2016 16:23:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C1F002C0451 for ; Fri, 8 Jan 2016 16:23:39 +0000 (UTC) Date: Fri, 8 Jan 2016 16:23:39 +0000 (UTC) From: "Sven van de Scheur (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CB-10311) cordova-plugin-camera seems to be using deprecated MediaStream.stop() in browser MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Sven van de Scheur created CB-10311: --------------------------------------- Summary: cordova-plugin-camera seems to be using deprecated MediaStream.stop() in browser Key: CB-10311 URL: https://issues.apache.org/jira/browse/CB-10311 Project: Apache Cordova Issue Type: Bug Components: Plugin Camera Affects Versions: 3.5.0 Environment: Chrome 47 Reporter: Sven van de Scheur Priority: Minor The cordova-plugin-camera camera proxy for utilizes a deprecated MediaStream.stop(). On Chrome 47 this throws an exception: "Uncaught TypeError: localMediaStream.stop is not a function" thrown from CameraProxy.js:69: // stop video stream, remove video and button localMediaStream.stop(); According to https://developers.google.com/web/updates/2015/07/mediastream-deprecations?hl=en MediaStream.stop() has been deprecated in favor of MediaStreamTrack.stop(). And the code should be changed accordingly. I think this should be changed roughly to: // stop video stream, remove video and button var tracks = localMediaStream.getTracks(); tracks.forEach(function(track) { track.stop(); }) -- 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