VideoCaptureService
Service that manages camera capture for features such as avatar
facial-animation tracking. Requires RobloxScript security; not callable from
experience scripts.
This class is not creatable. Instances of this class cannot be created with Instance.new.
This class is a service. It is a singleton that may be acquired with GetService.
| Memory category | Instances |
|---|
Member index 9
Description
VideoCaptureService manages camera capture, for example for avatar
facial-animation tracking. It enumerates the available camera devices,
resolves and applies the requested device, and reports capture state through
its events. All of its members require RobloxScript security; not callable
from experience scripts.
History 17
- 744 Add SetMockInputAsync
- 744 Add ClearMockInput
- 632 Change Default of from {NullDeviceGuid} to
- 589 Change Default of from to {NullDeviceGuid}
- 553 Change Default of from to false
- 540 Add Stopped
- 540 Add Started
- 540 Add Error
- 540 Add DevicesChanged
- 528 Change CanLoad of from true to false
- 528 Change CanSave of from true to false
- 528 Change CanSave of from true to false
- 528 Change CanLoad of from true to false
- 522 Add GetCameraDevices
- 522 Add
- 522 Add
- 522 Add VideoCaptureService
Members 9
ClearMockInput
| Parameters (0) | ||
|---|---|---|
| No parameters. | ||
| Returns (1) | ||
| null | ||
| Thread safety | Unsafe |
|---|
History 1
- 744 Add ClearMockInput
DevicesChanged
| Parameters (0) | ||
|---|---|---|
| No parameters. | ||
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |
History 1
- 540 Add DevicesChanged
Error
| Parameters (2) | |
|---|---|
| cameraid | string |
| errorcode | string |
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |
GetCameraDevices
| Parameters (0) | ||
|---|---|---|
| No parameters. | ||
| Returns (1) | ||
| Map | ||
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |
History 1
- 522 Add GetCameraDevices
SetMockInputAsync
| Parameters (1) | ||
|---|---|---|
| videoContent | Content | |
| Returns (1) | ||
| Tuple | ||
This function yields. It will block the calling thread until completion.
| Thread safety | Unsafe |
|---|
History 1
- 744 Add SetMockInputAsync
Started
| Parameters (1) | |
|---|---|
| cameraid | string |
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |
Stopped
| Parameters (1) | |
|---|---|
| cameraid | string |
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |