mediastreamer2 5.2.0
Data Fields

#include <mediastream.h>

Collaboration diagram for _MSMediaResource:
Collaboration graph
[legend]

Data Fields

MSResourceType type
 
union { 
 
   void *   resource_arg 
 
   const char *   file 
 
   RtpSession *   session 
 
   MSWebCam *   camera 
 
   MSSndCard *   soundcard 
 
   MSFilter *   itc 
 
};  
 

Detailed Description

Structure describing the input or the output of a MediaStream. type must be set to one the member of the MSResourceType enum, and the correspoding resource argument must be set: the file name (const char*) for MSResourceFile, the RtpSession for MSResourceRtp, an MSWebCam for MSResourceCamera, an MSSndCard for MSResourceSoundcard. an MSFilter for MSResourceItc

Warning
due to implementation, if RTP is to be used for input and output, the same RtpSession must be passed for both sides.

The documentation for this struct was generated from the following file: