Photon Voice v2.58

Public Types | Public Member Functions | Static Public Member Functions | Properties | Events | List of all members
CaptureDevice Class Reference

Public Types

enum  Media
 

Public Member Functions

 CaptureDevice (ILogger logger, Media media, string deviceID)
 
void Initialize ()
 
void InitializeAsync ()
 
async Task CleanUpAsync ()
 Asynchronous method cleaning up resources and stopping recording if necessary. More...
 
async Task< IMediaEncodingProperties > SelectPreferredCameraStreamSettingAsync (MediaStreamType mediaStreamType, Func< IMediaEncodingProperties, bool > filterSettings)
 Allow selection of camera settings. More...
 
async Task StartRecordingAsync (MediaEncodingProfile encodingProfile, Action< byte[], FrameFlags > encoderCallback)
 Starts media recording asynchronously More...
 
async Task StopRecordingAsync ()
 Stops recording asynchronously More...
 

Static Public Member Functions

static async Task< bool > CheckForRecordingDeviceAsync ()
 

Properties

MediaCapture CaptureSource [get]
 Creates url object from MediaCapture More...
 

Events

EventHandler< MediaCaptureFailedEventArgs > CaptureFailed
 

Member Function Documentation

◆ CleanUpAsync()

async Task CleanUpAsync ( )

Asynchronous method cleaning up resources and stopping recording if necessary.

◆ SelectPreferredCameraStreamSettingAsync()

async Task<IMediaEncodingProperties> SelectPreferredCameraStreamSettingAsync ( MediaStreamType  mediaStreamType,
Func< IMediaEncodingProperties, bool >  filterSettings 
)

Allow selection of camera settings.

Parameters
mediaStreamTypeType of a the media stream.
filterSettingsA predicate function, which will be called to filter the correct settings.

◆ StartRecordingAsync()

async Task StartRecordingAsync ( MediaEncodingProfile  encodingProfile,
Action< byte[], FrameFlags >  encoderCallback 
)

Starts media recording asynchronously

Parameters
encodingProfileEncoding profile used for the recording session

◆ StopRecordingAsync()

async Task StopRecordingAsync ( )

Stops recording asynchronously

Property Documentation

◆ CaptureSource

MediaCapture CaptureSource
get

Creates url object from MediaCapture