Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D9FBD200CA4 for ; Wed, 7 Jun 2017 23:08:52 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D88DA160BD0; Wed, 7 Jun 2017 21:08:52 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4F32A160BBF for ; Wed, 7 Jun 2017 23:08:52 +0200 (CEST) Received: (qmail 27249 invoked by uid 500); 7 Jun 2017 21:08:51 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 27238 invoked by uid 99); 7 Jun 2017 21:08:51 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jun 2017 21:08:51 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id BF58CE1863; Wed, 7 Jun 2017 21:08:49 +0000 (UTC) From: dellagustin To: dev@cordova.apache.org Reply-To: dev@cordova.apache.org References: In-Reply-To: Subject: [GitHub] cordova-plugin-media pull request #130: CB-8098 & CB-7810:(android) Added me... Content-Type: text/plain Message-Id: <20170607210849.BF58CE1863@git1-us-west.apache.org> Date: Wed, 7 Jun 2017 21:08:49 +0000 (UTC) archived-at: Wed, 07 Jun 2017 21:08:53 -0000 Github user dellagustin commented on a diff in the pull request: https://github.com/apache/cordova-plugin-media/pull/130#discussion_r119812195 --- Diff: www/Media.js --- @@ -173,7 +173,9 @@ Media.prototype.setRate = function(rate) { if (cordova.platformId === 'ios'){ --- End diff -- I think some polishing would be good here: 1. As the current code is, the if/else is not necessary, as both blocks execute the exact same instruction 2. This pull request says it enables the set rate for Android, but the else block is now executed for any other platform then iOS, this looks wrong. Am I missing something? It looks to me the result should look like: ```javascript if (cordova.platformId === 'ios' || cordova.platformId === 'android'){ exec(null, null, "Media", "setRate", [this.id, rate]); } else { console.warn('media.setRate method is currently not supported for', cordova.platformId, 'platform.'); } ``` --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org