IScreenCaptureSourceList
The IScreenCaptureSourceList class. This class is returned in the getScreenCaptureSources method.
getCount
Gets the number of shareable windows and screens.
virtual unsigned int getCount() = 0;
Details
Note: This method applies to macOS and Windows only.
Returns
The number of shareable windows and screens.
getSourceInfo
Gets information about the specified shareable window or screen.
virtual ScreenCaptureSourceInfo getSourceInfo(unsigned int index) = 0;
Details
After you get IScreenCaptureSourceList, you can pass in the index value of the specified shareable window or screen to get information about that window or screen from ScreenCaptureSourceInfo.
Note: This method applies to macOS and Windows only.
Parameters
- index
- The index of the specified shareable window or screen. The value range is [0, getCount
()
).
Returns
ScreenCaptureSourceInforelease
Releases IScreenCaptureSourceList.
virtual void release() = 0;
Details
After you get the list of shareable windows and screens, to avoid memory leaks, call this method to release IScreenCaptureSourceList instead of deleting IScreenCaptureSourceList directly.
Note: This method applies to macOS and Windows only.