Blancduman / mediasoup-client-flutter

Flutter version of the mediasoup-client library.
MIT License
105 stars 58 forks source link

transport on connect never fired #91

Open Manhal1994 opened 3 months ago

Manhal1994 commented 3 months ago
   councmerTransport = device.createRecvTransport(
                id: transportData['id'],
                iceParameters:
                    IceParameters.fromMap(transportData['iceParameters']),
                iceCandidates:
                    (transportData['iceCandidates'] as Iterable).map((element) {
                  return IceCandidate.fromMap(element);
                }).toList(),
                dtlsParameters: DtlsParameters.fromMap(
                  transportData['dtlsParameters'],
                ),
              consumerCallback: _consumerCallback

            );
 councmerTransport!.on("connect", (data, cb, errCb) async {
              debugPrint("newtransport has fired from client");

            });

log mediasoup-client:Device load() successed

Notice I have tried on connect with one arg

 councmerTransport!.on("connect", (data) async {
              debugPrint("newtransport has fired from client");

            }); 
Manhal1994 commented 3 months ago

also _consumerCallback not fired