Jump to content
  • 0

Flutter SDK how to disable video ?


Edm
 Share

Question

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0

Hi @Edm,

I hope, you're well. I just checked Flutter SDK for you. I saw that you may try like as below:

    if (_localStream != null) {
      //  if (_localStream == null) throw Exception('Stream is not initialized');

      final videoTrack = _localStream!
          .getVideoTracks()
          .firstWhere((track) => track.kind == 'video');

      videoTrack.enabled = false;
    }

You can send only audio as above usage. I hope, I could help you.

Best Regards,

Selim

Link to comment
Share on other sites

 Share

×
×
  • Create New...