Interface ICameraCapture
Camera capture support.
Inherited Members
Namespace: Evergine.Common.Media
Assembly: Evergine.Common.dll
Syntax
public interface ICameraCapture : IDisposable
Properties
IsConnected
Gets a value indicating whether there is a camera available.
Declaration
bool IsConnected { get; }
Property Value
Type | Description |
---|---|
bool |
PreviewTexture
Gets the camera previewtexture.
Declaration
Texture PreviewTexture { get; }
Property Value
Type | Description |
---|---|
Texture |
State
Gets a value indicating the camera capture state.
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 | camera type. |
StartRecording(string)
Start Video recording.
Declaration
void StartRecording(string videoFilePath)
Parameters
Type | Name | Description |
---|---|---|
string | videoFilePath | file path where the video was recorded. |
Stop()
Stops the camera capture.
Declaration
void Stop()
StopRecording()
Stop video recording.
Declaration
string StopRecording()
Returns
Type | Description |
---|---|
string | stored video path. |
Update(TimeSpan)
Update camera capture.
Declaration
void Update(TimeSpan gameTime)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | gameTime | game time interval. |