flutterjanus/flutter_janus_client

Cannot capture screen whith no media devices

Closed this issue · 3 comments

When calling initializeMediaDevices on a computer with no video and audio devices with useDisplayMediaDevices to true it fails, but it should work as media devices are not needed for screen capture.

janus_plugin.dart :

    if (videoDevices.isEmpty && audioDevices.isEmpty) {
      throw Exception("No device found for media generation");
    }

You are right thanks for pointing it out i will release the fix soon just a check is needed maybe you can do a pr if you want it urgently

this should be fixed in latest commit please verify the same and lmk @MathieuSerrurier

Closing due to inactivity fixed anyway