Interface ICameraCapture
Supports camera capture.
Namespace: Evergine.Common.Media
Assembly: Evergine.Common.dll
Syntax
public interface ICameraCapture
Properties
IsConnected
Gets a value indicating whether a camera is available.
Declaration
bool IsConnected { get; }
Property Value
| Type | Description |
|---|---|
| bool |
PreviewTexture
Gets the camera preview texture.
Declaration
Texture PreviewTexture { get; }
Property Value
| Type | Description |
|---|---|
| Texture |
State
Gets a value indicating the state of the camera capture.
Declaration
CameraCaptureState State { get; }
Property Value
| Type | Description |
|---|---|
| CameraCaptureState |
Methods
Start(CameraCaptureType)
Starts the camera capture.
Declaration
void Start(CameraCaptureType cameraType)
Parameters
| Type | Name | Description |
|---|---|---|
| CameraCaptureType | cameraType | The type of camera. |
StartRecording(string)
Start video recording.
Declaration
void StartRecording(string videoFilePath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | videoFilePath | File path where the video will be recorded. |
Stop()
Stops the camera capture.
Declaration
void Stop()
StopRecording()
Stops video recording.
Declaration
string StopRecording()
Returns
| Type | Description |
|---|---|
| string | Returns the stored video path. |
Update(TimeSpan)
Updates the camera capture.
Declaration
void Update(TimeSpan gameTime)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeSpan | gameTime | Game time interval. |