Lisa testing pulling in plugins for plugin: cordova-plugin-media-capture
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/commit/a65173b9 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/tree/a65173b9 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/diff/a65173b9 Branch: refs/heads/master Commit: a65173b9126046290988776abfe949a43f761ab3 Parents: acf3d8c Author: ldeluca <[email protected]> Authored: Tue May 27 17:49:51 2014 -0400 Committer: ldeluca <[email protected]> Committed: Tue May 27 17:49:51 2014 -0400 ---------------------------------------------------------------------- doc/ja/index.md | 538 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 538 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture/blob/a65173b9/doc/ja/index.md ---------------------------------------------------------------------- diff --git a/doc/ja/index.md b/doc/ja/index.md new file mode 100644 index 0000000..56ba7b6 --- /dev/null +++ b/doc/ja/index.md @@ -0,0 +1,538 @@ +<!--- + 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. +--> + +# org.apache.cordova.media-capture + +This plugin provides access to the device's audio, image, and video capture capabilities. + +**è¦å**: ã¤ã¡ã¼ã¸ããããªãã¾ãã¯ããã¤ã¹ã®ã«ã¡ã©ããã¤ã¯ããã®é³å£°ã®åéã¨å©ç¨ãéè¦ãªãã©ã¤ãã·ã¼ã®åé¡ãçºçããã¾ãã ã¢ããªã®ãã©ã¤ãã·ã¼ ããªã·ã¼ã¯ãã¢ããªããã®ãããªã»ã³ãµã¼ã使ç¨ããæ¹æ³ã¨ãè¨é²ããããã¼ã¿ã¯ä»ã®å½äºè ã¨å ±æãã©ãããè°è«ãã¹ãã§ãã ããã«ãã«ã¡ã©ã¾ãã¯ãã¤ã¯ã®ã¢ããªã®ä½¿ç¨ããªãå ´åæããã«ãã¦ã¼ã¶ã¼ ã¤ã³ã¿ã¼ãã§ã¤ã¹ã§ãåã«ãã¢ããªã±ã¼ã·ã§ã³ã«ã¢ã¯ã»ã¹ããã«ã¡ã©ã¾ãã¯ãã¤ã¯ã (ããã¤ã¹ã®ãªãã¬ã¼ãã£ã³ã° ã·ã¹ãã ããªãå ´åããæ¢ã«) - æéã®ãç¥ãããæä¾ããå¿ è¦ãããã¾ãã ãã®éç¥ã¯ãä¸è¨ã® (ä¾ãã°ã **[ok]**ã**ãããã§**鏿è¢ãæç¤ºãã) ã«ãã£ã¦ã¦ã¼ã¶ã¼ã®ã¢ã¯ã»ã¹è¨±å¯ãåå¾ããã ãã§ãªããåãæ å ±ãæä¾ããå¿ è¦ãããã¾ãã ããã¤ãã®ã¢ãã ªã®ãã¼ã±ããã ã¬ã¼ã¹ - æéã®éç¥ãæä¾ãã¦ãã«ã¡ã©ã¾ãã¯ãã¤ã¯ã«ã¢ã¯ã»ã¹ããåã«ã¦ã¼ã¶ã¼ããã¢ã¯ã»ã¹è¨±å¯ãåå¾ããã¢ããªãããå¿ è¦ãããã¾ãã«æ³¨æãã¦ãã ããã 詳細ã«ã¤ãã¦ã¯ããã©ã¤ãã·ã¼ã«é¢ããã¬ã¤ããåç §ãã¦ãã ããã + +## ã¤ã³ã¹ãã¼ã« + + cordova plugin add org.apache.cordova.media-capture + + +## ãµãã¼ãããã¦ãããã©ãããã©ã¼ã + +* ã¢ãã¾ã³ç« OS +* ã¢ã³ããã¤ã +* ãã©ãã¯ããªã¼ 10 +* iOS +* Windows Phone 7 㨠8 +* Windows 8 + +## ãªãã¸ã§ã¯ã + +* ãã£ãã㣠+* CaptureAudioOptions +* CaptureImageOptions +* CaptureVideoOptions +* CaptureCallback +* CaptureErrorCB +* ConfigurationData +* ã¡ãã£ã¢ãã¡ã¤ã« +* MediaFileData + +## ã¡ã½ãã + +* capture.captureAudio +* capture.captureImage +* capture.captureVideo +* MediaFile.getFormatData + +## ãããã㣠+ +* **supportedAudioModes**: ããã¤ã¹ã§ãµãã¼ãããã¦ããå½¢å¼ã®é²é³ãï¼ConfigurationData[]) + +* **supportedImageModes**: è¨é²ç»åãµã¤ãºã¨ããã¤ã¹ã§ãµãã¼ãããã¦ããå½¢å¼ã§ããï¼ConfigurationData[]) + +* **supportedVideoModes**: è¨é²ã®ãããªè§£å度ã¨ããã¤ã¹ã§ãµãã¼ãããã¦ããå½¢å¼ã§ããï¼ConfigurationData[]) + +## capture.captureAudio + +> ãªã¼ãã£ãª ã¬ã³ã¼ãã¼ ã¢ããªã±ã¼ã·ã§ã³ãèµ·åãããã£ããã£ãããªã¼ãã£ãª ã¯ãªãã ãã¡ã¤ã«ã«é¢ããæ å ±ãè¿ãã¾ãã + + navigator.device.capture.captureAudio( + CaptureCB captureSuccess, CaptureErrorCB captureError, [CaptureAudioOptions options] + ); + + +### 説æ + +ãªã¼ãã£ãªé²é³ããã¤ã¹ã®æ¢å®ã®ãªã¼ãã£ãªé²é³ã¢ããªã±ã¼ã·ã§ã³ã使ç¨ãã¦ãã£ããã£ããéåææä½ãéå§ãã¾ãã æä½ãåä¸ã®ã»ãã·ã§ã³ã§è¤æ°ã®é²é³ããã£ããã£ããããã¤ã¹ã®ã¦ã¼ã¶ã¼ãã¨ãã§ãã¾ãã + +ãã£ããã£æä½ãçµäºãã¦ã¼ã¶ã¼ ã¢ããªã±ã¼ã·ã§ã³ãã¾ãã¯é²é³ã§æå®ãããæå¤§æ°ã®é²é³ãçµäºãã㨠`CaptureAudioOptions.limit` ã«éããã ãããã®å ´å `limit` ãã©ã¡ã¼ã¿ã¼ã®å¤ãæå®ããã¦ãæ¢å®ã® 1 㤠(1)ããã£ããã£æä½çµäºå¾ãã¦ã¼ã¶ã¼ãåä¸ã®ãªã¼ãã£ãª ã¯ãªãããé²é³ãã¾ãã + +ãã£ããã£æä½ãå®äºããã¨ã `CaptureCallback` ã®é åãå®è¡ `MediaFile` ãªã¼ãã£ãª ã¯ãªãã ãã¡ã¤ã«ããã£ããã£ãã¦ãããããè¨è¿°ãããªãã¸ã§ã¯ããã¾ãã ãªã¼ãã£ãª ã¯ãªããããã£ããã£ããåã«ãã¦ã¼ã¶ã¼ãæä½ãçµäºããå ´åã `CaptureErrorCallback` ã§å®è¡ããã `CaptureError` ãªãã¸ã§ã¯ããç¹è²ã `CaptureError.CAPTURE_NO_MEDIA_FILES` ã®ã¨ã©ã¼ ã³ã¼ãã + +### ãµãã¼ãããã¦ãããã©ãããã©ã¼ã + +* ã¢ãã¾ã³ç« OS +* ã¢ã³ããã¤ã +* ãã©ãã¯ããªã¼ 10 +* iOS +* Windows Phone 7 㨠8 +* Windows 8 + +### ä¾ + + // 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}); + + +### iOS ã®ç + +* iOS does not have a default audio recording application, so a simple user interface is provided. + +### Windows Phone 7 㨠8 ç + +* Windows Phone 7 ã·ã³ãã«ãªã¦ã¼ã¶ã¼ ã¤ã³ã¿ã¼ãã§ã¤ã¹ãæä¾ãããã®ã§ãæ¢å®ã®ãªã¼ãã£ãªé²é³ã¢ããªã±ã¼ã·ã§ã³ã¯ããã¾ããã + +## CaptureAudioOptions + +> ãªã¼ãã£ãª ãã£ããã£ã®æ§æãªãã·ã§ã³ãã«ãã»ã«åãã¾ãã + +### ãããã㣠+ +* **limit**: The maximum number of audio clips the device user can record in a single capture operation. The value must be greater than or equal to 1 (defaults to 1). + +* **duration**: The maximum duration of an audio sound clip, in seconds. + +### ä¾ + + // 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); + + +### Amazon Fire OS Quirks + +* The `duration` parameter is not supported. Recording lengths cannot be limited programmatically. + +### Android ã®ç + +* `duration`ãã©ã¡ã¼ã¿ã¼ã¯ãµãã¼ãããã¦ãã¾ãããé·ãã®è¨é²ããã°ã©ã ã§éå®ãããã¨ã¯ã§ãã¾ããã + +### ãã©ãã¯ããªã¼ 10 ç + +* `duration`ãã©ã¡ã¼ã¿ã¼ã¯ãµãã¼ãããã¦ãã¾ãããé·ãã®è¨é²ããã°ã©ã ã§éå®ãããã¨ã¯ã§ãã¾ããã +* The `limit` parameter is not supported, so only one recording can be created for each invocation. + +### iOS ã®ç + +* The `limit` parameter is not supported, so only one recording can be created for each invocation. + +## capture.captureImage + +> ã«ã¡ã© ã¢ããªã±ã¼ã·ã§ã³ãèµ·åãããã£ããã£ããã¤ã¡ã¼ã¸ ãã¡ã¤ã«ã«é¢ããæ å ±ãè¿ãã¾ãã + + navigator.device.capture.captureImage( + CaptureCB captureSuccess, CaptureErrorCB captureError, [CaptureImageOptions options] + ); + + +### 説æ + +ããã¤ã¹ã®ã«ã¡ã© ã¢ããªã±ã¼ã·ã§ã³ã使ç¨ãã¦ç»åããã£ããã£ããéåææä½ãéå§ãã¾ããæä½ã§ã¯ãåä¸ã®ã»ãã·ã§ã³ã§ 1 ã¤ä»¥ä¸ã®ã¤ã¡ã¼ã¸ããã£ããã£ãããã¨ãã§ãã¾ãã + +ãã£ããã£æä½çµäºããããã®ã¦ã¼ã¶ã¼ãéããã¨ãã«ã¡ã© ã¢ããªã±ã¼ã·ã§ã³ã¾ãã¯é²é³ã§æå®ãããæå¤§æ° `CaptureAudioOptions.limit` ã«éããã å ´åãªã `limit` å¤ãæå®ããã¦ãæ¢å®ã® 1 㤠(1)ããã£ããã£æä½çµäºå¾ãã¦ã¼ã¶ã¼ã¯åä¸ã®ã¤ã¡ã¼ã¸ããã£ããã£ãã¾ãã + +ãã£ããã£æä½ãå®äºãããããããå¼ã³åºãã `CaptureCB` ã®é åãã³ã¼ã«ãã㯠`MediaFile` åãã£ããã£ãããã¤ã¡ã¼ã¸ ãã¡ã¤ã«ãè¨è¿°ãããªãã¸ã§ã¯ãã ã¦ã¼ã¶ã¼ã¯ãã¤ã¡ã¼ã¸ããã£ããã£ããåã«æä½ãçµäºããå ´åã `CaptureErrorCB` ã³ã¼ã«ããã¯ã§å®è¡ããã `CaptureError` ãªãã¸ã§ã¯ãã®ç¹è²ã `CaptureError.CAPTURE_NO_MEDIA_FILES` ã¨ã©ã¼ ã³ã¼ãã + +### ãµãã¼ãããã¦ãããã©ãããã©ã¼ã + +* ã¢ãã¾ã³ç« OS +* ã¢ã³ããã¤ã +* ãã©ãã¯ããªã¼ 10 +* iOS +* Windows Phone 7 㨠8 +* Windows 8 + +### Windows Phone 7 ã®ç + +Zune ãä»ãã¦ã使ãã®ããã¤ã¹ãæ¥ç¶ããã¦ãããã¤ãã£ã ã«ã¡ã© ã¢ããªã±ã¼ã·ã§ã³ãå¼ã³åºãã¨ãåä½ãã¾ããããã¨ã©ã¼ ã³ã¼ã«ããã¯ãå®è¡ãã¾ãã + +### ä¾ + + // 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}); + + +## CaptureImageOptions + +> ã¤ã¡ã¼ã¸ ãã£ããã£ã®æ§æãªãã·ã§ã³ãã«ãã»ã«åãã¾ãã + +### ãããã㣠+ +* **limit**: The maximum number of images the user can capture in a single capture operation. The value must be greater than or equal to 1 (defaults to 1). + +### ä¾ + + // limit capture operation to 3 images + var options = { limit: 3 }; + + navigator.device.capture.captureImage(captureSuccess, captureError, options); + + +### iOS ã®ç + +* The **limit** parameter is not supported, and only one image is taken per invocation. + +## capture.captureVideo + +> ãã㪠ã¬ã³ã¼ãã¼ ã¢ããªã±ã¼ã·ã§ã³ãèµ·åãããã£ããã£ãããã㪠ã¯ãªãã ãã¡ã¤ã«ã«é¢ããæ å ±ãè¿ãã¾ãã + + navigator.device.capture.captureVideo( + CaptureCB captureSuccess, CaptureErrorCB captureError, [CaptureVideoOptions options] + ); + + +### 説æ + +ããã¤ã¹ã®ãããªé²ç»ã¢ããªã±ã¼ã·ã§ã³ã使ç¨ãã¦ãããªè¨é²ããã£ããã£ããéåææä½ãéå§ãã¾ããæä½ã¯ãåä¸ã®ã»ãã·ã§ã³ã§ 1 ã¤ä»¥ä¸ã®é²é³ããã£ããã£ãããã¨ãã§ãã¾ãã + +ãã£ããã£æä½çµäºããããã¦ã¼ã¶ã¼ããããªé²ç»ã¢ããªã±ã¼ã·ã§ã³ã¾ãã¯é²é³ã§æå®ãããæå¤§æ°ãçµäºæ `CaptureVideoOptions.limit` ã«éããã ãããã®å ´å `limit` ãã©ã¡ã¼ã¿ã¼å¤ãæå®ããã¦ãæ¢å®ã® 1 㤠ï¼1ï¼ãã¦ã¼ã¶ã¼ã¯ 1 ã¤ã®ãã㪠ã¯ãªãããè¨é²ããå¾ã«ãã£ããã£æä½ãçµäºãã¾ããã + +ãã£ããã£æä½ãå®äºãããããã㯠`CaptureCB` ã®é åã§ã³ã¼ã«ããã¯ãå®è¡ãã¾ã `MediaFile` ãã㪠ã¯ãªãã ãã¡ã¤ã«ããã£ããã£ãã¦ãããããè¨è¿°ãããªãã¸ã§ã¯ããã¾ãã ã¦ã¼ã¶ã¼ããã㪠ã¯ãªããããã£ããã£ããåã«æä½ãçµäºããå ´åã `CaptureErrorCB` ã³ã¼ã«ããã¯ã§å®è¡ããã `CaptureError` ãªãã¸ã§ã¯ãã®ç¹è²ã `CaptureError.CAPTURE_NO_MEDIA_FILES` ã¨ã©ã¼ ã³ã¼ãã + +### ãµãã¼ãããã¦ãããã©ãããã©ã¼ã + +* ã¢ãã¾ã³ç« OS +* ã¢ã³ããã¤ã +* ãã©ãã¯ããªã¼ 10 +* iOS +* Windows Phone 7 㨠8 +* Windows 8 + +### ä¾ + + // 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}); + + +### ãã©ãã¯ããªã¼ 10 ç + +* Cordova for BlackBerry 10 attempts to launch the **Video Recorder** application, provided by RIM, to capture video recordings. The app receives a `CaptureError.CAPTURE_NOT_SUPPORTED` error code if the application is not installed on the device. + +## CaptureVideoOptions + +> ãã㪠ãã£ããã£ã®æ§æãªãã·ã§ã³ãã«ãã»ã«åãã¾ãã + +### ãããã㣠+ +* **limit**: The maximum number of video clips the device's user can capture in a single capture operation. The value must be greater than or equal to 1 (defaults to 1). + +* **duration**: The maximum duration of a video clip, in seconds. + +### ä¾ + + // limit capture operation to 3 video clips + var options = { limit: 3 }; + + navigator.device.capture.captureVideo(captureSuccess, captureError, options); + + +### ãã©ãã¯ããªã¼ 10 ç + +* The **duration** parameter is not supported, so the length of recordings can't be limited programmatically. + +### iOS ã®ç + +* The **limit** parameter is not supported. Only one video is recorded per invocation. + +## CaptureCB + +> æåããã¡ãã£ã¢ ãã£ããã£æä½æã«å¼ã³åºããã¾ãã + + function captureSuccess( MediaFile[] mediaFiles ) { ... }; + + +### 説æ + +ãã®é¢æ°ã¯æåãããã£ããã£æä½ã®å®äºå¾ã«å®è¡ãã¾ãã ããããã®ã¡ãã£ã¢ ãã¡ã¤ã«ããã£ããã£ããã¨ããã®æç¹ã§ãã¦ã¼ã¶ã¼ãã¡ãã£ã¢ ã» ãã£ãã㣠㻠ã¢ããªã±ã¼ã·ã§ã³ãçµäºã¾ãã¯ãã£ããã£å¶éã«éãã¦ãã¾ãã + +å `MediaFile` ãªãã¸ã§ã¯ãã«ã¯ãã£ããã£ããã¡ãã£ã¢ ãã¡ã¤ã«ã«ã¤ãã¦èª¬æãã¾ãã + +### ä¾ + + // capture callback + function captureSuccess(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 + } + }; + + +## CaptureError + +> 失æããã¡ãã£ã¢ ãã£ããã£æä½ããã®çµæã®ã¨ã©ã¼ ã³ã¼ããã«ãã»ã«åãã¾ãã + +### ãããã㣠+ +* **code**: One of the pre-defined error codes listed below. + +### 宿° + +* `CaptureError.CAPTURE_INTERNAL_ERR`: The camera or microphone failed to capture image or sound. + +* `CaptureError.CAPTURE_APPLICATION_BUSY`ï¼ ç¾å¨ã«ã¡ã©ããªã¼ãã£ãªã®ãã£ããã£ã®ã¢ããªã±ã¼ã·ã§ã³å¥ã®ãã£ããã£è¦æ±ãæä¾ãã¾ãã + +* `CaptureError.CAPTURE_INVALID_ARGUMENT`ï¼ ç¡å¹ãª API ã®ä½¿ç¨ (ä¾ãã°ãã®å¤ `limit` ã 1 æªæºã§ã)ã + +* `CaptureError.CAPTURE_NO_MEDIA_FILES`: The user exits the camera or audio capture application before capturing anything. + +* `CaptureError.CAPTURE_NOT_SUPPORTED`: The requested capture operation is not supported. + +## CaptureErrorCB + +> ã¡ãã£ã¢ ãã£ããã£æä½ä¸ã«ã¨ã©ã¼ãçºçããå ´åã«å¼ã³åºããã¾ãã + + function captureError( CaptureError error ) { ... }; + + +### 説æ + +ãã®é¢æ°ã§ã¨ã©ã¼ãçºçãèµ·åãããã¨ããã¨ãã¡ãã£ã¢ã®ãã£ããã£æä½ãå®è¡ãã¾ãã é害ã·ããªãªãå«ãã¾ããã£ãã㣠ã¢ããªã±ã¼ã·ã§ã³ããã¸ã¼ç¶æ ããã£ããã£æä½ã¯æ¢ã«èµ·ãã£ã¦ãã¾ãã¯ãæä½ããã£ã³ã»ã«ããåã«ã¡ãã£ã¢ ãã¡ã¤ã«ãèªåçã«ãã£ããã£ããã¾ãã + +ãã®é¢æ°ã§å®è¡ããã `CaptureError` ãé©åãªã¨ã©ã¼ãæ ¼ç´ãã¦ãããªãã¸ã§ã¯ã`code`. + +### ä¾ + + // capture error callback + var captureError = function(error) { + navigator.notification.alert('Error code: ' + error.code, null, 'Capture Error'); + }; + + +## ConfigurationData + +> ããã¤ã¹ããµãã¼ãããã¡ãã£ã¢ ãã£ãã㣠ãã©ã¡ã¼ã¿ã¼ã®ã»ãããã«ãã»ã«åãã¾ãã + +### 説æ + +ããã¤ã¹ã§ãµãã¼ãããã¦ããã¡ãã£ã¢ã®ãã£ããã£ã®ã¢ã¼ãã«ã¤ãã¦èª¬æãã¾ããæ§æãã¼ã¿ã«ã¯ãMIME ã®ç¨®é¡ãããã³ãããªãã¤ã¡ã¼ã¸ ãã£ããã£ã®ãã£ããã£å¯¸æ³ãå«ã¾ãã¾ãã + +MIME ã®ç¨®é¡ã¯[RFC2046][1]ã«å¾ãå¿ è¦ãããã¾ããä¾: + + [1]: http://www.ietf.org/rfc/rfc2046.txt + +* `video/3gpp` +* `video/quicktime` +* `image/jpeg` +* `audio/amr` +* `audio/wav` + +### ãããã㣠+ +* **type**: The ASCII-encoded lowercase string representing the media type. (DOMString) + +* **height**: The height of the image or video in pixels. The value is zero for sound clips. (Number) + +* **width**: The width of the image or video in pixels. The value is zero for sound clips. (Number) + +### ä¾ + + // retrieve supported image modes + var imageModes = navigator.device.capture.supportedImageModes; + + // Select mode that has the highest horizontal resolution + var width = 0; + var selectedmode; + for each (var mode in imageModes) { + if (mode.width > width) { + width = mode.width; + selectedmode = mode; + } + } + + +ä»»æã®ãã©ãããã©ã¼ã ã§ãµãã¼ãããã¦ãã¾ããããã¹ã¦ã®æ§æãã¼ã¿ã®é åã¯ç©ºã§ãã + +## MediaFile.getFormatData + +> åå¾ã«ã¤ãã¦ã®æ¸å¼æ å ±ã¡ãã£ã¢ ãã£ãã㣠ãã¡ã¤ã«ã + + mediaFile.getFormatData (MediaFileDataSuccessCB successCallback, [MediaFileDataErrorCB è§£ã]); + + +### 説æ + +ãã®é¢æ°ã¯ãéåæçã«ã¡ãã£ã¢ ãã¡ã¤ã«ã®å½¢å¼æ å ±ãåå¾ãããã¨ãã¾ãã ãã©ããã¯æåãå¼ã³åºãã¾ãã `MediaFileDataSuccessCB` ã³ã¼ã«ããã¯ã `MediaFileData` ãªãã¸ã§ã¯ãã ãã®é¢æ°ãå¼ã³åºãã¾ãã試è¡ã失æããå ´åã `MediaFileDataErrorCB` ã³ã¼ã«ããã¯ã + +### ãµãã¼ãããã¦ãããã©ãããã©ã¼ã + +* ã¢ãã¾ã³ç« OS +* ã¢ã³ããã¤ã +* ãã©ãã¯ããªã¼ 10 +* iOS +* Windows Phone 7 㨠8 +* Windows 8 + +### Amazon Fire OS Quirks + +API æ å ±ã«ã¢ã¯ã»ã¹ããã¡ãã£ã¢ ãã¡ã¤ã«å½¢å¼ã¯éããã¦ãããã§ãå¿ ããããã¹ã¦ `MediaFileData` ããããã£ããµãã¼ãããã¾ãã + +### ãã©ãã¯ããªã¼ 10 ç + +ã®ã§ããã¹ã¦ã®ã¡ãã£ã¢ ãã¡ã¤ã«ã«é¢ããæ å ±ã® API ãæä¾ããªã `MediaFileData` æ¢å®å¤ãæã¤ãªãã¸ã§ã¯ããè¿ãã¾ãã + +### Android ã®ç + +API æ å ±ã«ã¢ã¯ã»ã¹ããã¡ãã£ã¢ ãã¡ã¤ã«å½¢å¼ã¯éããã¦ãããã§ãå¿ ããããã¹ã¦ `MediaFileData` ããããã£ããµãã¼ãããã¾ãã + +### iOS ã®ç + +API æ å ±ã«ã¢ã¯ã»ã¹ããã¡ãã£ã¢ ãã¡ã¤ã«å½¢å¼ã¯éããã¦ãããã§ãå¿ ããããã¹ã¦ `MediaFileData` ããããã£ããµãã¼ãããã¾ãã + +## ã¡ãã£ã¢ãã¡ã¤ã« + +> ã¡ãã£ã¢ ãã£ãã㣠ãã¡ã¤ã«ã®ããããã£ãã«ãã»ã«åãã¾ãã + +### ãããã㣠+ +* **name**: The name of the file, without path information. (DOMString) + +* **fullPath**: The full path of the file, including the name. (DOMString) + +* **type**: The file's mime type (DOMString) + +* **lastModifiedDate**: The date and time when the file was last modified. (Date) + +* **size**: The size of the file, in bytes. (Number) + +### ã¡ã½ãã + +* **MediaFile.getFormatData**: Retrieves the format information of the media file. + +## MediaFileData + +> ã¡ãã£ã¢ ãã¡ã¤ã«ã®å½¢å¼æ å ±ãã«ãã»ã«åãã¾ãã + +### ãããã㣠+ +* **codecs**: The actual format of the audio and video content. (DOMString) + +* **bitrate**: The average bitrate of the content. The value is zero for images. (Number) + +* **height**: The height of the image or video in pixels. The value is zero for audio clips. (Number) + +* **width**: The width of the image or video in pixels. The value is zero for audio clips. (Number) + +* **duration**: The length of the video or sound clip in seconds. The value is zero for images. (Number) + +### ãã©ãã¯ããªã¼ 10 ç + +ã¡ãã£ã¢ ãã¡ã¤ã«ã®å½¢å¼æ å ±ãæä¾ãã API ãããªãã®ã§ã `MediaFileData` ã«ãã£ã¦è¿ããããªãã¸ã§ã¯ã `MediaFile.getFormatData` æ©è½æ¬¡ã®æ¢å®å¤ã + +* **ã³ã¼ããã¯**ï¼ ããªããµãã¼ãããè¿ãã¾ã`null`. + +* **ãããã¬ã¼ã**ï¼ ããªããµãã¼ãããã¼ããè¿ãã¾ãã + +* **height**: Not supported, and returns zero. + +* **width**: Not supported, and returns zero. + +* **duration**: Not supported, and returns zero. + +### Amazon Fire OS Quirks + +以ä¸ããµãã¼ã `MediaFileData` ããããã£ã + +* **ã³ã¼ããã¯**ï¼ ããªããµãã¼ãããè¿ãã¾ã`null`. + +* **ãããã¬ã¼ã**ï¼ ããªããµãã¼ãããã¼ããè¿ãã¾ãã + +* **é«ã**: ãµãã¼ã: ã¤ã¡ã¼ã¸ ãã¡ã¤ã«ããã㪠ãã¡ã¤ã«ã®ã¿ã§ãã + +* **å¹ **: ãµãã¼ã: ã¤ã¡ã¼ã¸ ãã¡ã¤ã«ããã㪠ãã¡ã¤ã«ã®ã¿ã§ãã + +* **duration**: Supported: audio and video files only + +### Android ã®ç + +以ä¸ããµãã¼ã `MediaFileData` ããããã£ã + +* **ã³ã¼ããã¯**ï¼ ããªããµãã¼ãããè¿ãã¾ã`null`. + +* **ãããã¬ã¼ã**ï¼ ããªããµãã¼ãããã¼ããè¿ãã¾ãã + +* **é«ã**: ãµãã¼ã: ã¤ã¡ã¼ã¸ ãã¡ã¤ã«ããã㪠ãã¡ã¤ã«ã®ã¿ã§ãã + +* **å¹ **: ãµãã¼ã: ã¤ã¡ã¼ã¸ ãã¡ã¤ã«ããã㪠ãã¡ã¤ã«ã®ã¿ã§ãã + +* **æé**: ãµãã¼ã: ãªã¼ãã£ãªããã³ãã㪠ãã¡ã¤ã«ã®ã¿ã§ãã + +### iOS ã®ç + +以ä¸ããµãã¼ã `MediaFileData` ããããã£ã + +* **ã³ã¼ããã¯**ï¼ ããªããµãã¼ãããè¿ãã¾ã`null`. + +* **bitrate**: Supported on iOS4 devices for audio only. Returns zero for images and videos. + +* **é«ã**: ãµãã¼ã: ã¤ã¡ã¼ã¸ ãã¡ã¤ã«ããã㪠ãã¡ã¤ã«ã®ã¿ã§ãã + +* **å¹ **: ãµãã¼ã: ã¤ã¡ã¼ã¸ ãã¡ã¤ã«ããã㪠ãã¡ã¤ã«ã®ã¿ã§ãã + +* **æé**: ãµãã¼ã: ãªã¼ãã£ãªããã³ãã㪠ãã¡ã¤ã«ã®ã¿ã§ãã \ No newline at end of file
