Kind: global class
- CoordinatedCapture
- new CoordinatedCapture()
- .sendCommand(command, [parameter])
- .sendCommandAndWaitForEvent(...var_args) ⇒
Promise - .getStatus() ⇒
Promise - .start([resolution]) ⇒
Promise - .pause() ⇒
Promise - .resume() ⇒
Promise - .stop() ⇒
Promise - .download() ⇒
Promise - .on(eventName, handler)
- .off(eventName, handler)
Creates a new instance.
Sends a command to the extension.
Kind: instance method of CoordinatedCapture
Access: protected
| Param | Type | Description |
|---|---|---|
| command | string |
|
| [parameter] | string |
a value to pass on |
Sends a command to the extension and awaits for an event in response.
Kind: instance method of CoordinatedCapture
Access: protected
| Param | Type | Description |
|---|---|---|
| ...var_args | string |
a mandatory command name followed by an optional parameter and mandatory event name |
Gets extension status.
Kind: instance method of CoordinatedCapture
Starts recording.
Kind: instance method of CoordinatedCapture
| Param | Type | Description |
|---|---|---|
| [resolution] | string |
'WIDTHxHEIGHT'; if not specified, equals to the screen resolution |
Pauses recording.
Kind: instance method of CoordinatedCapture
Resumes recording.
Kind: instance method of CoordinatedCapture
Stops recording.
Kind: instance method of CoordinatedCapture
Downloads the result.
Kind: instance method of CoordinatedCapture
Binds a hanler to an event fired by the extension.
Kind: instance method of CoordinatedCapture
| Param | Type |
|---|---|
| eventName | 'enabled' | 'disabled' | 'extensionStatus' | 'started' | 'stopped' | 'paused' | 'resumed' |
| handler | function |
Unbinds a previously bound handler.
Kind: instance method of CoordinatedCapture
| Param | Type |
|---|---|
| eventName | 'enabled' | 'disabled' | 'extensionStatus' | 'started' | 'stopped' | 'paused' | 'resumed' |
| handler | function |