Represents a request for media stream.
More...
#include <Coherent/UI/MediaStream.h>
|
virtual MediaStreamDevice * | GetDevices () 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...
|
|
Represents a request for media stream.
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
-
devices | pointer to array of indices of the media stream devices to use for the request |
count | number 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