Coherent UI  2.5.3
A modern user interface library for games
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
Coherent::UI::MediaStreamRequest Class Referenceabstract

Represents a request for media stream. More...

#include <Coherent/UI/MediaStream.h>

Public Member Functions

virtual MediaStreamDeviceGetDevices () const =0
 Get the list of available devices for the request. The list contains only devices of the requested types. More...
 
virtual unsigned int GetDevicesCount () const =0
 Get the number of available devices for the request.
 
virtual void Respond (const unsigned int *devices, unsigned int count)=0
 Respond to the media stream request. More...
 

Detailed Description

Represents a request for media stream.

Member Function Documentation

virtual MediaStreamDevice* Coherent::UI::MediaStreamRequest::GetDevices ( ) const
pure virtual

Get the list of available devices for the request. The list contains only devices of the requested types.

Returns
pointer to first device in the list or nullptr if the list is empty
virtual void Coherent::UI::MediaStreamRequest::Respond ( const unsigned int *  devices,
unsigned int  count 
)
pure virtual

Respond to the media stream request.

Parameters
devicespointer to array of indices of the media stream devices to use for the request
countnumber of the indices in devices
Warning
Only a single device per stream type must be allowed
After a call to Respond calling any method on the instance results in undefined behavior
Must be called on the thread that owns the Coherent::UI::UISystem instance