Skip to content

Screen Sharing is not working in MacOS #82

@mail2mhossain

Description

@mail2mhossain

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions