flutterjanus / flutter_janus_client

A plugin that allows the flutter app to communicate with a Janus server using different transport mechanisms, such as WebSocket and HTTP(rest). It features a developer-friendly api to interact with various WebRTC Janus Plugins. Hence, it can be considered as a swiss-knife for WebRTC solutions.
MIT License
134 stars 76 forks source link

Cannot capture screen whith no media devices #152

Closed MathieuSerrurier closed 10 months ago

MathieuSerrurier commented 11 months ago

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");
    }
shivanshtalwar commented 11 months ago

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

shivanshtalwar commented 10 months ago

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

shivanshtalwar commented 10 months ago

Closing due to inactivity fixed anyway