mediastreamer2 5.4.130

#include <mediastream.h>

Collaboration diagram for _MSMediaResource:

Data Fields

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

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, an MSScreenSharingDesc for MSResourceScreenSharing

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: