Jump to content
  • 0

Flutter SDK how to disable video ?



  • 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!
          .firstWhere((track) => track.kind == 'video');

      videoTrack.enabled = false;

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

Best Regards,


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...