GetStream / stream-video-flutter

Flutter Video SDK - Build your own video app experience using Dart, Flutter and the Stream Video Messaging API.
https://getstream.io/video/docs/flutter/
Other
37 stars 11 forks source link

ConnectionOptions updated by OutgoingCallControls is not applied when the call is connected #660

Open TinhHuynh opened 3 weeks ago

TinhHuynh commented 3 weeks ago

Version: 0.3.8

Hi, I am trying to make a call (ringing: true), and using StreamCallContainer to display the call. When StreamOutgoingCallContent is shown, I tap on Microphone or Camera button to disable/enable media options, however, when the call is connected, my local video still shows and the mic still opens. Please help provide help check if this issue is a bug or provide the correct way to update media track options in ringing phase. Thank you in advance!!!

Making call

  Future<Call> makeCall(String otherMemberId) async {
   ...
    final currentUser = _callClient!.state.currentUser;
    final ids = [currentUser.id, otherMemberId];
    final call = _callClient!
        .makeCall(callType: video.StreamCallType(), id: const Uuid().v4());
    await call.getOrCreate(
        memberIds: ids,
        ringing: true);
    return call!;
  }

Displaying call

@override
  Widget build(BuildContext context) {
    return StreamCallContainer(call: call);
  }