Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6F9EC1726C for ; Tue, 6 Jan 2015 18:57:08 +0000 (UTC) Received: (qmail 45314 invoked by uid 500); 6 Jan 2015 18:57:09 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 45249 invoked by uid 500); 6 Jan 2015 18:57:09 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 45143 invoked by uid 99); 6 Jan 2015 18:57:09 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jan 2015 18:57:09 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 2BE27921FAA; Tue, 6 Jan 2015 18:57:08 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: agrieve@apache.org To: commits@cordova.apache.org Date: Tue, 06 Jan 2015 18:57:24 -0000 Message-Id: <71021b691f474c909de4597c8c4a1fcb@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [19/51] [partial] docs commit: CB-8248 Remove unused files in translations (closes #254) http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b837c23c/docs/es/3.5.0/cordova/media/capture/capture.md ---------------------------------------------------------------------- diff --git a/docs/es/3.5.0/cordova/media/capture/capture.md b/docs/es/3.5.0/cordova/media/capture/capture.md deleted file mode 100644 index 7d12181..0000000 --- a/docs/es/3.5.0/cordova/media/capture/capture.md +++ /dev/null @@ -1,112 +0,0 @@ ---- - -license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - - - under the License. ---- - -# Captura - -> Proporciona acceso a audio, imagen y las capacidades de captura de vídeo del dispositivo. - -**Nota de privacidad importante:** Recopilación y uso de imágenes, video o audio desde el micrófono o cámara del dispositivo plantea cuestiones de privacidad importante. Política de privacidad de su aplicación debe discutir cómo la aplicación utiliza dichos sensores y si los datos registrados se compartieron con cualquiera de las partes. Además, si el uso de la aplicación de la cámara o el micrófono no es aparente en la interfaz de usuario, debe proporcionar un aviso de just-in-time antes de su aplicación accediendo a la cámara o el micrófono (si el sistema operativo del dispositivo ya no hacerlo). Que el aviso debe proporcionar la misma información mencionada, además de obtener un permiso del usuario (por ejemplo, presentando opciones para **Aceptar** y **No gracias**). Tenga en cuenta que algunos mercados de aplicación pueden requerir su aplicación para proporcionar aviso just-in-time y obtener permiso del usuario antes de acceder a la cámara o el micrófono. P ara obtener más información, por favor consulte a la guía de privacidad. - -## Objetos - -* Captura -* CaptureAudioOptions -* CaptureImageOptions -* CaptureVideoOptions -* CaptureCallback -* CaptureErrorCB -* ConfigurationData -* MediaFile -* MediaFileData - -## Métodos - -* capture.captureAudio -* capture.captureImage -* capture.captureVideo -* MediaFile.getFormatData - -## Ámbito de aplicación - -The `capture` object is assigned to the `navigator.device` object, and therefore has global scope. - - // The global capture object - var capture = navigator.device.capture; - - -## Propiedades - -* **supportedAudioModes**: la grabación de formatos soportados por el dispositivo de audio. (ConfigurationData[]) - -* **supportedImageModes**: la grabación de imagen tamaños y formatos soportados por el dispositivo. (ConfigurationData[]) - -* **supportedVideoModes**: las resoluciones de grabación de vídeo y formatos soportados por el dispositivo. (ConfigurationData[]) - -## Métodos - -* `capture.captureAudio`: Lanzar la aplicación de grabación de audio del dispositivo para grabar clips de audio. - -* `capture.captureImage`: Lanzar la aplicación de la cámara del dispositivo para tomar fotos. - -* `capture.captureVideo`: Iniciar aplicación de grabadora de vídeo del dispositivo para grabar videos. - -## Plataformas soportadas - -* Android -* BlackBerry WebWorks (OS 5.0 y superiores) -* iOS -* Windows Phone 7 y 8 -* Windows 8 - -## Acceso a la función - -A partir de la versión 3.0, Cordova implementa nivel de dispositivo APIs como *plugins*. Uso de la CLI `plugin` comando, que se describe en la interfaz de línea de comandos, para añadir o eliminar esta característica para un proyecto: - - $ cordova plugin add org.apache.cordova.media-capture - $ cordova plugin ls - [ 'org.apache.cordova.media-capture' ] - $ cordova plugin rm org.apache.cordova.media-capture - - -Estos comandos se aplican a todas las plataformas específicas, sino modificar las opciones de configuración específicas de la plataforma que se describen a continuación: - -* Android - - (in app/res/XML/plugins.xml) < nombre de la función = "Capturar" >< nombre param = "android-paquete" value="org.apache.cordova.Capture" / >< / característica > (en app/AndroidManifest.xml) < usos-permiso android:name="android.permission.RECORD_AUDIO" / >< usos-permiso android:name="android.permission.WRITE_EXTERNAL_STORAGE" / > - - -* BlackBerry WebWorks - - (in www/plugins.xml) < nombre de la función = "Capturar" >< nombre param = "blackberry-paquete" value="org.apache.cordova.capture.MediaCapture" / >< / característica > (en www/config.xml) < cuentan con id="blackberry.system" requiere = "true" versión = "1.0.0.0" / >< cuentan con id="blackberry.io.file" requiere = "true" version = "1.0.0.0" / > - - -* (en iOS`config.xml`) - - < nombre de la función = "Capturar" >< nombre param = "ios-paquete" value = "CDVCapture" / >< / característica > - - -* Windows Phone (en`Properties/WPAppManifest.xml`) - - - - - - - - - - -Algunas plataformas que soportan esta característica sin necesidad de ninguna configuración especial. Consulte *Soporte de la plataforma* en la sección de Resumen. \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b837c23c/docs/es/3.5.0/cordova/media/capture/captureAudio.md ---------------------------------------------------------------------- diff --git a/docs/es/3.5.0/cordova/media/capture/captureAudio.md b/docs/es/3.5.0/cordova/media/capture/captureAudio.md deleted file mode 100644 index 934df69..0000000 --- a/docs/es/3.5.0/cordova/media/capture/captureAudio.md +++ /dev/null @@ -1,133 +0,0 @@ ---- - -license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - - - under the License. ---- - -# capture.captureAudio - -> Iniciar la aplicación grabadora de audio y devolver información acerca de los archivos capturados clip de audio. - - navigator.device.capture.captureAudio( - CaptureCB captureSuccess, CaptureErrorCB captureError, [CaptureAudioOptions options] - ); - - -## Descripción - -Inicia una operación asincrónica para capturar grabaciones de audio mediante la aplicación de grabación de audio del dispositivo por defecto. La operación permite al usuario del dispositivo capturar varias grabaciones en una sola sesión. - -La operación de captura termina cuando el usuario sale del audio grabación de aplicación, o el número máximo de registros especificado por `CaptureAudioOptions.limit` se alcanza. Si no `limit` se especifica el valor del parámetro, por defecto a uno (1), y la operación de captura termina después de que el usuario registra un solo clip de audio. - -Cuando finaliza la operación de captura, el `CaptureCallback` se ejecuta con una gran variedad de `MediaFile` objetos describiendo cada uno capturado archivo del clip de audio. Si el usuario finaliza la operación antes de que sea capturado un clip de audio, el `CaptureErrorCallback` se ejecuta con un `CaptureError` de objeto, con el `CaptureError.CAPTURE_NO_MEDIA_FILES` código de error. - -## Plataformas soportadas - -* Android -* BlackBerry WebWorks (OS 5.0 y superiores) -* iOS -* Windows Phone 7 y 8 -* Windows 8 - -## Ejemplo rápido - - // capture callback - var captureSuccess = function(mediaFiles) { - var i, path, len; - for (i = 0, len = mediaFiles.length; i < len; i += 1) { - path = mediaFiles[i].fullPath; - // do something interesting with the file - } - }; - - // capture error callback - var captureError = function(error) { - navigator.notification.alert('Error code: ' + error.code, null, 'Capture Error'); - }; - - // start audio capture - navigator.device.capture.captureAudio(captureSuccess, captureError, {limit:2}); - - -## Ejemplo completo - - - - - Capture Audio - - - - - - -
- - - - -## BlackBerry WebWorks rarezas - -* Cordova para BlackBerry WebWorks intenta lanzar la aplicación **Grabadora de notas de voz** , proporcionada por RIM, capturar grabaciones de audio. La aplicación recibe una `CaptureError.CAPTURE_NOT_SUPPORTED` código de error si la aplicación no está instalada en el dispositivo. - -## iOS rarezas - -* iOS no tiene una aplicación de grabación de audio predeterminada, así se proporciona una sencilla interfaz de usuario. - -## Windows Phone 7 y 8 rarezas - -* Windows Phone 7 no tiene una aplicación de grabación de audio predeterminada, así se proporciona una sencilla interfaz de usuario. \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b837c23c/docs/es/3.5.0/cordova/media/capture/captureAudioOptions.md ---------------------------------------------------------------------- diff --git a/docs/es/3.5.0/cordova/media/capture/captureAudioOptions.md b/docs/es/3.5.0/cordova/media/capture/captureAudioOptions.md deleted file mode 100644 index ff09cf5..0000000 --- a/docs/es/3.5.0/cordova/media/capture/captureAudioOptions.md +++ /dev/null @@ -1,45 +0,0 @@ ---- - -license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - - - under the License. ---- - -# CaptureAudioOptions - -> Encapsula las opciones de configuración de captura de audio. - -## Propiedades - -* **límite**: el número máximo de clips de audio del usuario del dispositivo puede grabar en una operación de captura individual. El valor debe ser mayor o igual a 1 (por defecto 1). - -* **duración**: la duración máxima de un clip de sonido audio, en segundos. - -## Ejemplo rápido - - // limit capture operation to 3 media files, no longer than 10 seconds each - var options = { limit: 3, duration: 10 }; - - navigator.device.capture.captureAudio(captureSuccess, captureError, options); - - -## Rarezas Android - -* El `duration` no se admite el parámetro. Longitudes de la grabación no puede ser limitada mediante programación. - -## BlackBerry WebWorks rarezas - -* El `duration` no se admite el parámetro. Longitudes de la grabación no puede ser limitada mediante programación. - -## iOS rarezas - -* El `limit` no se admite el parámetro, tan sólo una grabación puede crearse para cada invocación. \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b837c23c/docs/es/3.5.0/cordova/media/capture/captureImage.md ---------------------------------------------------------------------- diff --git a/docs/es/3.5.0/cordova/media/capture/captureImage.md b/docs/es/3.5.0/cordova/media/capture/captureImage.md deleted file mode 100644 index a49682a..0000000 --- a/docs/es/3.5.0/cordova/media/capture/captureImage.md +++ /dev/null @@ -1,124 +0,0 @@ ---- - -license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - - - under the License. ---- - -# capture.captureImage - -> Iniciar una aplicación de cámara y devolver información acerca de los archivos de imagen capturada. - - navigator.device.capture.captureImage( - CaptureCB captureSuccess, CaptureErrorCB captureError, [CaptureImageOptions options] - ); - - -## Descripción - -Inicia una operación asincrónica para capturar imágenes utilizando la aplicación de la cámara del dispositivo. La operación permite a los usuarios capturar más de una imagen en una sola sesión. - -La operación de captura tampoco termina cuando el usuario cierra una aplicación de cámara, o el número máximo de registros especificado por `CaptureAudioOptions.limit` se alcanza. Si no `limit` se especifica el valor por defecto a uno (1) y termina la operación de captura después de que el usuario capta una sola imagen. - -Cuando finaliza la operación de captura, invoca la `CaptureCB` "callback" con una gran variedad de `MediaFile` objetos que describen cada archivo de imagen capturada. Si el usuario finaliza la operación antes de capturar una imagen, la `CaptureErrorCB` devolución de llamada se ejecuta con un `CaptureError` objeto ofrece un `CaptureError.CAPTURE_NO_MEDIA_FILES` código de error. - -## Plataformas soportadas - -* Android -* BlackBerry WebWorks (OS 5.0 y superiores) -* iOS -* Windows Phone 7 y 8 -* Windows 8 - -## Windows Phone 7 rarezas - -Invocando la aplicación de cámara nativa mientras el dispositivo está conectado vía Zune no funciona, y se ejecuta el callback de error. - -## Ejemplo rápido - - // capture callback - var captureSuccess = function(mediaFiles) { - var i, path, len; - for (i = 0, len = mediaFiles.length; i < len; i += 1) { - path = mediaFiles[i].fullPath; - // do something interesting with the file - } - }; - - // capture error callback - var captureError = function(error) { - navigator.notification.alert('Error code: ' + error.code, null, 'Capture Error'); - }; - - // start image capture - navigator.device.capture.captureImage(captureSuccess, captureError, {limit:2}); - - -## Ejemplo completo - - - - - Capture Image - - - - - - -
- - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b837c23c/docs/es/3.5.0/cordova/media/capture/captureImageOptions.md ---------------------------------------------------------------------- diff --git a/docs/es/3.5.0/cordova/media/capture/captureImageOptions.md b/docs/es/3.5.0/cordova/media/capture/captureImageOptions.md deleted file mode 100644 index 91fdff0..0000000 --- a/docs/es/3.5.0/cordova/media/capture/captureImageOptions.md +++ /dev/null @@ -1,35 +0,0 @@ ---- - -license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - - - under the License. ---- - -# CaptureImageOptions - -> Encapsula las opciones de configuración de captura de imagen. - -## Propiedades - -* **límite**: el número máximo de imágenes que el usuario puede capturar en una operación de captura individual. El valor debe ser mayor o igual a 1 (por defecto 1). - -## Ejemplo rápido - - // limit capture operation to 3 images - var options = { limit: 3 }; - - navigator.device.capture.captureImage(captureSuccess, captureError, options); - - -## iOS rarezas - -* No se admite el parámetro **límite** , y sólo una imagen es tomada por invocación. \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b837c23c/docs/es/3.5.0/cordova/media/capture/captureVideo.md ---------------------------------------------------------------------- diff --git a/docs/es/3.5.0/cordova/media/capture/captureVideo.md b/docs/es/3.5.0/cordova/media/capture/captureVideo.md deleted file mode 100644 index 48e13c6..0000000 --- a/docs/es/3.5.0/cordova/media/capture/captureVideo.md +++ /dev/null @@ -1,125 +0,0 @@ ---- - -license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - - - under the License. ---- - -# capture.captureVideo - -> Iniciar la aplicación grabadora de vídeo y devolver información acerca de archivos de vídeo capturado. - - navigator.device.capture.captureVideo( - CaptureCB captureSuccess, CaptureErrorCB captureError, [CaptureVideoOptions options] - ); - - -## Descripción - -Inicia una operación asincrónica para capturar video grabaciones mediante aplicación de grabación de vídeo del dispositivo. La operación permite al usuario capturar grabaciones de más de una en una sola sesión. - -La operación de captura termina cuando el usuario sale de la aplicación de grabación de vídeo, o el número máximo de registros especificado por `CaptureVideoOptions.limit` se alcanza. Si no `limit` se especifica el valor del parámetro, por defecto a uno (1), y la operación de captura termina después de que el usuario registra un solo clip de video. - -Cuando finaliza la operación de captura, es la `CaptureCB` devolución de llamada se ejecuta con una gran variedad de `MediaFile` objetos describiendo cada uno capturado archivo de videoclip. Si el usuario finaliza la operación antes de capturar un clip de vídeo, el `CaptureErrorCB` devolución de llamada se ejecuta con un `CaptureError` objeto ofrece un `CaptureError.CAPTURE_NO_MEDIA_FILES` código de error. - -## Plataformas soportadas - -* Android -* BlackBerry WebWorks (OS 5.0 y superiores) -* iOS -* Windows Phone 7 y 8 -* Windows 8 - -## Ejemplo rápido - - // capture callback - var captureSuccess = function(mediaFiles) { - var i, path, len; - for (i = 0, len = mediaFiles.length; i < len; i += 1) { - path = mediaFiles[i].fullPath; - // do something interesting with the file - } - }; - - // capture error callback - var captureError = function(error) { - navigator.notification.alert('Error code: ' + error.code, null, 'Capture Error'); - }; - - // start video capture - navigator.device.capture.captureVideo(captureSuccess, captureError, {limit:2}); - - -## Ejemplo completo - - - - - Capture Video - - - - - - -
- - - - -## BlackBerry WebWorks rarezas - -* Cordova para BlackBerry WebWorks intenta lanzar la aplicación **Grabadora de Video** , proporcionada por RIM, capturar grabaciones de vídeo. La aplicación recibe una `CaptureError.CAPTURE_NOT_SUPPORTED` código de error si la aplicación no está instalada en el dispositivo. \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b837c23c/docs/es/3.5.0/cordova/media/capture/captureVideoOptions.md ---------------------------------------------------------------------- diff --git a/docs/es/3.5.0/cordova/media/capture/captureVideoOptions.md b/docs/es/3.5.0/cordova/media/capture/captureVideoOptions.md deleted file mode 100644 index 34f0026..0000000 --- a/docs/es/3.5.0/cordova/media/capture/captureVideoOptions.md +++ /dev/null @@ -1,41 +0,0 @@ ---- - -license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - - - under the License. ---- - -# CaptureVideoOptions - -> Encapsula las opciones de configuración de captura de vídeo. - -## Propiedades - -* **límite**: la cantidad máxima de usuario del dispositivo puede capturar en una operación sola captura clips de vídeo. El valor debe ser mayor o igual a 1 (por defecto 1). - -* **duración**: la duración máxima de un clip de vídeo, en segundos. - -## Ejemplo rápido - - // limit capture operation to 3 video clips - var options = { limit: 3 }; - - navigator.device.capture.captureVideo(captureSuccess, captureError, options); - - -## BlackBerry WebWorks rarezas - -* No se admite el parámetro de **duración** , así que la longitud de las grabaciones no puede limitarse mediante programación. - -## iOS rarezas - -* No se admite el parámetro **límite** . Sólo un vídeo se graba por invocación. \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b837c23c/docs/es/3.5.0/cordova/media/media.getCurrentPosition.md ---------------------------------------------------------------------- diff --git a/docs/es/3.5.0/cordova/media/media.getCurrentPosition.md b/docs/es/3.5.0/cordova/media/media.getCurrentPosition.md deleted file mode 100644 index 62d28ef..0000000 --- a/docs/es/3.5.0/cordova/media/media.getCurrentPosition.md +++ /dev/null @@ -1,173 +0,0 @@ ---- - -license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - - - under the License. ---- - -# media.getCurrentPosition - -Devuelve la posición actual dentro de un archivo de audio. - - media.getCurrentPosition(mediaSuccess, [mediaError]); - - -## Parámetros - -* **mediaSuccess**: la devolución de llamada que se pasa a la posición actual en segundos. - -* **mediaError**: (opcional) la devolución de llamada que se ejecutarán si se produce un error. - -## Descripción - -Una función asincrónica que devuelve la posición actual del archivo de audio subyacente de un objeto `Media`. También actualiza el parámetro de `position` del objeto de los `Media`. - -## Plataformas soportadas - -* Android - -* BlackBerry WebWorks (OS 5.0 y superiores) - -* iOS - -* Windows Phone 7 y 8 - -* Tizen - -* Windows 8 - -## Ejemplo rápido - - // Audio player - // - var my_media = new Media(src, onSuccess, onError); - - // Update media position every second - var mediaTimer = setInterval(function () { - // get media position - my_media.getCurrentPosition( - // success callback - function (position) { - if (position > -1) { - console.log((position) + " sec"); - } - }, - // error callback - function (e) { - console.log("Error getting pos=" + e); - } - ); - }, 1000); - - -## Ejemplo completo - - - - - Media Example - - - - - - Play Audio - Pause Playing Audio - Stop Playing Audio -

- - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b837c23c/docs/es/3.5.0/cordova/media/media.getDuration.md ---------------------------------------------------------------------- diff --git a/docs/es/3.5.0/cordova/media/media.getDuration.md b/docs/es/3.5.0/cordova/media/media.getDuration.md deleted file mode 100644 index b653089..0000000 --- a/docs/es/3.5.0/cordova/media/media.getDuration.md +++ /dev/null @@ -1,159 +0,0 @@ ---- - -license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - - - under the License. ---- - -# media.getDuration - -Devuelve la duración de un archivo de audio. - - media.getDuration(); - - -## Descripción - -El método `media.getDuration` se ejecuta sincrónicamente, devolviendo la duración del archivo de audio en segundos, si se conocen. Si se desconoce la duración, devuelve un valor de -1. - -## Plataformas soportadas - -* Android -* BlackBerry WebWorks (OS 5.0 y superiores) -* iOS -* Windows Phone 7 y 8 -* Tizen -* Windows 8 - -## Ejemplo rápido - - // Audio player - // - var my_media = new Media(src, onSuccess, onError); - - // Get duration - var counter = 0; - var timerDur = setInterval(function() { - counter = counter + 100; - if (counter > 2000) { - clearInterval(timerDur); - } - var dur = my_media.getDuration(); - if (dur > 0) { - clearInterval(timerDur); - document.getElementById('audio_duration').innerHTML = (dur) + " sec"; - } - }, 100); - - -## Ejemplo completo - - - - - Media Example - - - - - - Play Audio - Pause Playing Audio - Stop Playing Audio -

- - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b837c23c/docs/es/3.5.0/cordova/media/media.md ---------------------------------------------------------------------- diff --git a/docs/es/3.5.0/cordova/media/media.md b/docs/es/3.5.0/cordova/media/media.md deleted file mode 100644 index 084aa91..0000000 --- a/docs/es/3.5.0/cordova/media/media.md +++ /dev/null @@ -1,145 +0,0 @@ ---- - -license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - - - under the License. ---- - -# Los medios de comunicación - -> El objeto de `Media` proporciona la capacidad de grabar y reproducir archivos de audio en un dispositivo. - - var media = new Media(src, mediaSuccess, [mediaError], [mediaStatus]); - - -**NOTA:** La implementación actual no se adhiere a una especificación del W3C para la captura de los medios de comunicación y se proporciona únicamente para su comodidad. Una futura implementación se adherirá a la más reciente especificación W3C y puede desaprueban las API actuales. - -## Parámetros - -* **fuente**: un URI que contiene el contenido de audio. *(DOMString)* - -* **mediaSuccess**: (opcional) la devolución de llamada que se ejecuta después de un `Media` objeto ha completado el juego actual, registro o acción. *(Función)* - -* **mediaError**: (opcional) la devolución de llamada que se ejecuta si se produce un error. *(Función)* - -* **mediaStatus**: (opcional) la devolución de llamada que se ejecuta para indicar cambios en el estado. *(Función)* - -## Constantes - -Las siguientes constantes son reportadas como el único parámetro para la devolución de llamada `mediaStatus`: - -* `Media.MEDIA_NONE` = 0; -* `Media.MEDIA_STARTING` = 1; -* `Media.MEDIA_RUNNING` = 2; -* `Media.MEDIA_PAUSED` = 3; -* `Media.MEDIA_STOPPED` = 4; - -## Métodos - -* `media.getCurrentPosition`: Devuelve la posición actual dentro de un archivo de audio. - -* `media.getDuration`: Devuelve la duración de un archivo de audio. - -* `media.play`: Iniciar o reanudar la reproducción de un archivo de audio. - -* `media.pause`: Pausar la reproducción de un archivo de audio. - -* `media.release`: Libera recursos de audio del sistema operativo subyacente. - -* `media.seekTo`: Mueve la posición dentro del archivo de audio. - -* `media.setVolume`: Ajusta el volumen para la reproducción de audio. - -* `media.startRecord`: Iniciar la grabación de un archivo de audio. - -* `media.stopRecord`: Deja de grabar un archivo de audio. - -* `media.stop`: Para reproducir un archivo de audio. - -## Parámetros adicionales ReadOnly - -* **posición**: la posición dentro de la reproducción de audio, en segundos. - - * No actualizada automáticamente durante la reproducción; Llame a `getCurrentPosition` para actualizar. - -* **duración**: la duración de los medios de comunicación, en segundos. - -## Plataformas soportadas - -* Android -* BlackBerry WebWorks (OS 5.0 y superiores) -* iOS -* Windows Phone 7.5 -* Tizen -* Windows 8 - -## Acceso a la función - -A partir de la versión 3.0, Cordova implementa nivel de dispositivo APIs como *plugins*. Uso de la CLI `plugin` comando, que se describe en la interfaz de línea de comandos, para añadir o eliminar esta característica para un proyecto: - - $ cordova plugin añadir org.apache.cordova.media $ cordova plugin ls ['org.apache.cordova.media'] $ cordova plugin rm org.apache.cordova.media - - -Estos comandos se aplican a todas las plataformas específicas, sino modificar las opciones de configuración específicas de la plataforma que se describen a continuación: - -* Android - - (in app/res/xml/config.xml) - - - - - (in app/AndroidManifest.xml) - - - - - -* BlackBerry WebWorks - - (in www/plugins.xml) - - - - - -* (en iOS`config.xml`) - - - - - - -* Windows Phone (en`Properties/WPAppManifest.xml`) - - - - - - - - - - - Referencia: [manifiesto de aplicación para Windows Phone][1] - - [1]: http://msdn.microsoft.com/en-us/library/ff769509%28v=vs.92%29.aspx - -Algunas plataformas que soportan esta característica sin necesidad de ninguna configuración especial. Consulte *Soporte de la plataforma* en la sección de Resumen. - -### Windows Phone rarezas - -* Archivo sólo multimedia puede reproducir en un momento. - -* Hay restricciones estrictas sobre cómo interactúa la aplicación con otros medios. Consulte la [documentación de Microsoft para obtener más detalles][2]. - - [2]: http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh184838(v=vs.92).aspx \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b837c23c/docs/es/3.5.0/cordova/media/media.pause.md ---------------------------------------------------------------------- diff --git a/docs/es/3.5.0/cordova/media/media.pause.md b/docs/es/3.5.0/cordova/media/media.pause.md deleted file mode 100644 index 3b36e74..0000000 --- a/docs/es/3.5.0/cordova/media/media.pause.md +++ /dev/null @@ -1,161 +0,0 @@ ---- - -license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - - - under the License. ---- - -# media.pause - -Pausas jugando un archivo de audio. - - media.pause(); - - -## Descripción - -El método `media.pause` se ejecuta sincrónicamente y hace una pausa de reproducir un archivo de audio. - -## Plataformas soportadas - -* Android -* BlackBerry WebWorks (OS 5.0 y superiores) -* iOS -* Windows Phone 7 y 8 -* Tizen -* Windows 8 - -## Ejemplo rápido - - // Play audio - // - function playAudio(url) { - // Play the audio file at url - var my_media = new Media(url, - // success callback - function () { console.log("playAudio():Audio Success"); }, - // error callback - function (err) { console.log("playAudio():Audio Error: " + err); } - ); - - // Play audio - my_media.play(); - - // Pause after 10 seconds - setTimeout(function () { - media.pause(); - }, 10000); - } - - -## Ejemplo completo - - - - - Media Example - - - - - - Play Audio - Pause Playing Audio - Stop Playing Audio -

- - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b837c23c/docs/es/3.5.0/cordova/media/media.play.md ---------------------------------------------------------------------- diff --git a/docs/es/3.5.0/cordova/media/media.play.md b/docs/es/3.5.0/cordova/media/media.play.md deleted file mode 100644 index 13923c9..0000000 --- a/docs/es/3.5.0/cordova/media/media.play.md +++ /dev/null @@ -1,184 +0,0 @@ ---- - -license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - - - under the License. ---- - -# media.play - -Inicia o reanuda la reproducción de un archivo de audio. - - media.play(); - - -## Descripción - -El método `media.play` se ejecuta sincrónicamente e inicia o reanuda la reproducción de un archivo de audio. - -## Plataformas soportadas - -* Android -* BlackBerry WebWorks (OS 5.0 y superiores) -* iOS -* Windows Phone 7 y 8 -* Tizen -* Windows 8 - -## Ejemplo rápido - - // Play audio - // - function playAudio(url) { - // Play the audio file at url - var my_media = new Media(url, - // success callback - function () { - console.log("playAudio():Audio Success"); - }, - // error callback - function (err) { - console.log("playAudio():Audio Error: " + err); - } - ); - // Play audio - my_media.play(); - } - - -## Ejemplo completo - - - - - Media Example - - - - - - Play Audio - Pause Playing Audio - Stop Playing Audio -

- - - - -## BlackBerry WebWorks rarezas - -* Dispositivos blackBerry apoyan un número limitado de canales de audio simultáneos. Dispositivos CDMA sólo admiten un solo canal de audio. Otros dispositivos admiten hasta dos canales simultáneos. Un intento de reproducir archivos de audio más que la cantidad de apoyo se traduce en reproducción anterior ser detenida. - -## iOS rarezas - -* **numberOfLoops**: pasar esta opción al método `play` para especificar el número de veces que desea que los medios de archivo para jugar, por ejemplo: - - var myMedia = new Media("http://audio.ibeat.org/content/p1rj1s/p1rj1s_-_rockGuitar.mp3") - myMedia.play({ numberOfLoops: 2 }) - - -* **playAudioWhenScreenIsLocked**: pasar en esta opción el método `play` para especificar si desea permitir la reproducción cuando la pantalla está bloqueada. Si se omite establecido en `true` (el valor predeterminado), el estado del botón mute hardware, por ejemplo: - - var myMedia = new Media("http://audio.ibeat.org/content/p1rj1s/p1rj1s_-_rockGuitar.mp3") - myMedia.play({ playAudioWhenScreenIsLocked : false }) - - -* **orden de búsqueda de archivos**: cuando se proporciona sólo un nombre de archivo o ruta simple, iOS busca en el directorio `www` para el archivo, luego en el directorio de la aplicación `documents/tmp`: - - var myMedia = new Media("audio/beer.mp3") - myMedia.play() // first looks for file in www/audio/beer.mp3 then in /documents/tmp/audio/beer.mp3 \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b837c23c/docs/es/3.5.0/cordova/media/media.release.md ---------------------------------------------------------------------- diff --git a/docs/es/3.5.0/cordova/media/media.release.md b/docs/es/3.5.0/cordova/media/media.release.md deleted file mode 100644 index 870c56a..0000000 --- a/docs/es/3.5.0/cordova/media/media.release.md +++ /dev/null @@ -1,149 +0,0 @@ ---- - -license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - - - under the License. ---- - -# media.release - -Libera los recursos de audio del sistema operativo subyacente. - - media.release(); - - -## Descripción - -El método `media.release` se ejecuta sincrónicamente, liberando recursos de audio del sistema operativo subyacente. Esto es particularmente importante para Android, ya que hay una cantidad finita de OpenCore instancias para la reproducción multimedia. Las aplicaciones deben llamar a la función de `release` para cualquier recurso `Media` que ya no es necesario. - -## Plataformas soportadas - -* Android -* BlackBerry WebWorks (OS 5.0 y superiores) -* iOS -* Windows Phone 7 y 8 -* Tizen -* Windows 8 - -## Ejemplo rápido - - // Audio player - // - var my_media = new Media(src, onSuccess, onError); - - my_media.play(); - my_media.stop(); - my_media.release(); - - -## Ejemplo completo - - - - - Media Example - - - - - - Play Audio - Pause Playing Audio - Stop Playing Audio -

- - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b837c23c/docs/es/3.5.0/cordova/media/media.seekTo.md ---------------------------------------------------------------------- diff --git a/docs/es/3.5.0/cordova/media/media.seekTo.md b/docs/es/3.5.0/cordova/media/media.seekTo.md deleted file mode 100644 index 8d3181f..0000000 --- a/docs/es/3.5.0/cordova/media/media.seekTo.md +++ /dev/null @@ -1,152 +0,0 @@ ---- - -license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - - - under the License. ---- - -# media.seekTo - -Establece la posición actual dentro de un archivo de audio. - - media.seekTo(milliseconds); - - -## Parámetros - -* **milliseconds**: la posición para ajustar la posición de reproducción en el audio, en milisegundos. - -## Descripción - -El `media.seekTo` se ejecuta asincrónicamente, actualización de la posición actual de reproducción dentro de un archivo de audio que hace referenciada a un objeto `Media`. También actualiza el parámetro de `position` del objeto de los `Media` de comunicación. - -## Plataformas soportadas - -* Android -* BlackBerry WebWorks (OS 6.0 y superior) -* iOS -* Windows Phone 7 y 8 -* Tizen -* Windows 8 - -## Ejemplo rápido - - // Audio player - // - var my_media = new Media(src, onSuccess, onError); - my_media.play(); - // SeekTo to 10 seconds after 5 seconds - setTimeout(function() { - my_media.seekTo(10000); - }, 5000); - - -## Ejemplo completo - - - - - Media Example - - - - - - Play Audio - Stop Playing Audio -

- - - - -## BlackBerry WebWorks rarezas - -* No compatible con dispositivos BlackBerry OS 5. \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b837c23c/docs/es/3.5.0/cordova/media/media.setVolume.md ---------------------------------------------------------------------- diff --git a/docs/es/3.5.0/cordova/media/media.setVolume.md b/docs/es/3.5.0/cordova/media/media.setVolume.md deleted file mode 100644 index 23887f0..0000000 --- a/docs/es/3.5.0/cordova/media/media.setVolume.md +++ /dev/null @@ -1,170 +0,0 @@ ---- - -license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - - - under the License. ---- - -# media.setVolume - -Ajustar el volumen para un archivo de audio. - - media.setVolume(volume); - - -## Parámetros - -* **volume**: el volumen para la reproducción. El valor debe estar dentro del rango de 0.0 a 1.0. - -## Descripción - -La función `media.setVolume` es una función asincrónica que establece el volumen durante la reproducción de audio. - -## Plataformas soportadas - -* Android -* iOS - -## Ejemplo rápido - - // Play audio - // - function playAudio(url) { - // Play the audio file at url - var my_media = new Media(url, - // success callback - function() { - console.log("playAudio():Audio Success"); - }, - // error callback - function(err) { - console.log("playAudio():Audio Error: "+err); - }); - - // Play audio - my_media.play(); - - // Mute volume after 2 seconds - setTimeout(function() { - my_media.setVolume('0.0'); - }, 2000); - - // Set volume to 1.0 after 5 seconds - setTimeout(function() { - my_media.setVolume('1.0'); - }, 5000); - } - - -## Ejemplo completo - - - - - Media Example - - - - - - Play Audio - Mute Audio - Unmute Audio - Stop Playing Audio -

- - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b837c23c/docs/es/3.5.0/cordova/media/media.startRecord.md ---------------------------------------------------------------------- diff --git a/docs/es/3.5.0/cordova/media/media.startRecord.md b/docs/es/3.5.0/cordova/media/media.startRecord.md deleted file mode 100644 index b45e0a0..0000000 --- a/docs/es/3.5.0/cordova/media/media.startRecord.md +++ /dev/null @@ -1,148 +0,0 @@ ---- - -license: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, - software distributed under the License is distributed on an - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, either express or implied. See the License for the - specific language governing permissions and limitations - - - under the License. ---- - -# media.startRecord - -Empieza a grabar un archivo de audio. - - media.startRecord(); - - -## Descripción - -El método `media.startRecord` se ejecuta sincrónicamente, comienza la grabación de un archivo de audio. - -## Plataformas soportadas - -* Android -* BlackBerry WebWorks (OS 5.0 y superiores) -* iOS -* Windows Phone 7 y 8 -* Windows 8 - -## Ejemplo rápido - - // Record audio - // - function recordAudio() { - var src = "myrecording.mp3"; - var mediaRec = new Media(src, - // success callback - function() { - console.log("recordAudio():Audio Success"); - }, - - // error callback - function(err) { - console.log("recordAudio():Audio Error: "+ err.code); - }); - - // Record audio - mediaRec.startRecord(); - } - - -## Ejemplo completo - - - - - Device Properties Example - - - - - -

Recording audio...

-

- - - - -## Rarezas Android - -* Dispositivos Android grabación audio en formato Adaptive Multi-rate. El archivo especificado debe terminar con una extensión de *.amr*. - -## BlackBerry WebWorks rarezas - -* Dispositivos blackBerry grabación audio en formato Adaptive Multi-rate. El archivo especificado debe finalizar con una extensión de *.amr*. - -## iOS rarezas - -* iOS sólo registros a archivos de tipo *.wav* y devuelve un error si el nombre del archivo extensión es no es correcto. - -* Si no se proporciona una ruta completa, la grabación se coloca en la aplicación `documents/tmp` Directorio. Esto puede accederse a través de la `File` API utilizando `LocalFileSystem.TEMPORARY` . Ya debe existir ningún subdirectorio especificado en un tiempo récord. - -* Archivos pueden ser grabados y jugó de nuevo usando los documentos URI: - - var myMedia = new Media("documents://beer.mp3") - - -## Rarezas Tizen - -* No compatible con dispositivos Tizen. \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org