SIPSorceryMedia.FFmpeg icon indicating copy to clipboard operation
SIPSorceryMedia.FFmpeg copied to clipboard

Screen Sharing is not working in MacOS

Open mail2mhossain opened this issue 6 months ago • 2 comments

In both FFmpegCameraSource and FFmpegScreenSource classes, the following method is called within their constructors:

CreateVideoDecoder(path, aVInputFormat, false, true);

The method signature is:

public unsafe void CreateVideoDecoder(string path, AVInputFormat* avInputFormat, bool repeat = false, bool isCamera = false)

By default, the isCamera parameter is set to false, but both classes are passing true when calling the method.

On the Windows platform, screen sharing works regardless of whether isCamera is set to true or false. However, on macOS, if CreateVideoDecoder is called with isCamera set to true, we do not receive any feed from the monitor. Conversely, when isCamera is set to false, we receive the feed from the default camera instead of the monitor.

Could you please provide guidance on how to resolve this issue?

mail2mhossain avatar Sep 01 '24 04:09 mail2mhossain