#include <mediasession_output.h>

The MediaOutputInterface class provides an specific implementation to provide output data to a given destination.
Public Member Functions | |
| MAXON_METHOD Result< void > | ResetConverter () | 
| MAXON_METHOD Result< void > | SetSelectionHandler (const MediaOutputSelectionHandler &selectionHandler) | 
| const MAXON_METHOD MediaOutputSelectionHandler & | GetSelectionHandler () const | 
| MAXON_METHOD Result< SELECTIONHANDLERRESULT > | CallSelectionHandler (const MediaStreamRef &stream, const MediaStreamFormat &props) | 
Private Member Functions | |
| MAXON_INTERFACE (MediaOutputInterface, MAXON_REFERENCE_NORMAL, "net.maxon.image.interface.mediaoutput") | |
      
  | 
  private | 
| MAXON_METHOD Result<void> ResetConverter | ( | ) | 
Resets the converter to default state. This function will be called if the converter is reused and needs to be reinitialized.
| MAXON_METHOD Result<void> SetSelectionHandler | ( | const MediaOutputSelectionHandler & | selectionHandler | ) | 
Sets a selection handler to be called as soon as a new stream is recognized.
| [in] | selectionHandler | Handler to be called. | 
| const MAXON_METHOD MediaOutputSelectionHandler& GetSelectionHandler | ( | ) | const | 
Sets a selection handler to be called as soon as a new stream is recognized.
| MAXON_METHOD Result<SELECTIONHANDLERRESULT> CallSelectionHandler | ( | const MediaStreamRef & | stream, | 
| const MediaStreamFormat & | props | ||
| ) | 
Called by the input media converter implementation before loading a stream. This function triggers the execution of the MediaOutputSelectionHandler set with SetSelectionHandler.
| [in] | stream | Stream to check for filtering. | 
| [in] | props | Properties of the stream. This can be used to filter for names or special formats etc. |