:memo: Update as upstream
authorPlusb Preco <plusb21@gmail.com>
Thu, 17 Dec 2015 18:10:08 +0000 (03:10 +0900)
committerPlusb Preco <plusb21@gmail.com>
Thu, 17 Dec 2015 18:10:08 +0000 (03:10 +0900)
[ci skip]

docs-translations/ko-KR/api/crash-reporter.md
docs-translations/ko-KR/api/desktop-capturer.md
docs-translations/ko-KR/api/dialog.md
docs-translations/ko-KR/tutorial/quick-start.md

index a4d42f0..0b7daba 100644 (file)
@@ -25,8 +25,8 @@ crashReporter.start({
 * `options` Object, properties:
 
 * `productName` String, 기본값: Electron
-* `companyName` String, 기본값: GitHub, Inc
-* `submitURL` String, 기본값: http://54.249.141.255:1127/post
+* `companyName` String (**필수항목**)
+* `submitURL` String, (**필수항목**)
   * 크래시 리포트는 POST 방식으로 이 URL로 전송됩니다.
 * `autoSubmit` Boolean, 기본값: true
   * true로 지정할 경우 유저의 승인 없이 자동으로 오류를 보고합니다.
index f14b543..5a531bf 100644 (file)
@@ -38,6 +38,15 @@ function getUserMediaError(e) {
 }
 ```
 
+`navigator.webkitGetUserMedia` 호출에 대해 제약된 객체를 생성할 때
+`desktopCapturer`에서 소스를 사용한다면 `chromeMediaSource`은 반드시
+`"desktop"`으로 지정되어야 하며, `audio` 도 반드시 `false`로 지정되어야 합니다.
+
+만약 전체 데스크탑에서 오디오와 비디오 모두 캡쳐를 하고 싶을 땐 `chromeMediaSource`를
+`"screen"` 그리고 `audio`를 `true`로 지정할 수 있습니다. 이 방법을 사용하면
+`chromeMediaSourceId`를 지정할 수 없습니다.
+
+
 ## Methods
 
 `desktopCapturer` 모듈은 다음과 같은 메서드를 가지고 있습니다:
index bb92c1f..3fff868 100644 (file)
@@ -19,10 +19,10 @@ console.log(dialog.showOpenDialog({ properties: [ 'openFile', 'openDirectory', '
 
 `dialog` 모듈은 다음과 같은 메서드를 가지고 있습니다:
 
-### `dialog.showOpenDialog([browserWindow][, options][, callback])`
+### `dialog.showOpenDialog([browserWindow, ]options[, callback])`
 
 * `browserWindow` BrowserWindow (optional)
-* `options` Object (optional)
+* `options` Object
   * `title` String
   * `defaultPath` String
   * `filters` Array
@@ -63,10 +63,10 @@ console.log(dialog.showOpenDialog({ properties: [ 'openFile', 'openDirectory', '
 없습니다. 이러한 이유로 `properties`를 `['openFile', 'openDirectory']`로 설정하면
 디렉터리 선택 대화 상자가 표시됩니다.
 
-### `dialog.showSaveDialog([browserWindow][, options][, callback])`
+### `dialog.showSaveDialog([browserWindow, ]options[, callback])`
 
 * `browserWindow` BrowserWindow (optional)
-* `options` Object (optional)
+* `options` Object
   * `title` String
   * `defaultPath` String
   * `filters` Array
@@ -80,9 +80,9 @@ console.log(dialog.showOpenDialog({ properties: [ 'openFile', 'openDirectory', '
 
 `callback`이 전달되면 메서드가 비동기로 작동되며 결과는 `callback(filename)`을 통해 전달됩니다.
 
-### `dialog.showMessageBox([browserWindow][, options][, callback])`
+### `dialog.showMessageBox([browserWindow, ]options[, callback])`
 
-* `browserWindow` BrowserWindow
+* `browserWindow` BrowserWindow (optional)
 * `options` Object
   * `type` String - `"none"`, `"info"`, `"error"`, `"question"`, `"warning"` 중
     하나를 사용할 수 있습니다. Windows에선 따로 `icon`을 설정하지 않은 이상
@@ -101,7 +101,7 @@ console.log(dialog.showOpenDialog({ properties: [ 'openFile', 'openDirectory', '
     버튼을 찾으려고 시도하고 대화 상자 내에서 해당 버튼을 커맨드 링크처럼 만듭니다.
     이 기능으로 앱을 좀 더 Modern Windows 앱처럼 만들 수 있습니다. 이 기능을 원하지
     않으면 `noLink`를 true로 지정하면 됩니다.
-* `callback` Function
+* `callback` Function (optional)
 
 대화 상자를 표시합니다. `browserWindow`를 지정하면 대화 상자가 완전히 닫힐 때까지
 지정한 창을 사용할 수 없습니다. 완료 시 유저가 선택한 버튼의 인덱스를 반환합니다.
index cfdc19f..d24261d 100644 (file)
@@ -74,6 +74,8 @@ __알림__: 만약 `main` 필드가 `package.json`에 설정되어 있지 않으
 다음과 같이 작성할 수 있습니다:
 
 ```javascript
+'use strict';
+
 const electron = require('electron');
 const app = electron.app;  // 어플리케이션 기반을 조작 하는 모듈.
 const BrowserWindow = electron.BrowserWindow;  // 네이티브 브라우저 창을 만드는 모듈.