Skip to content

[TrackPublishException] Failed to publish track (In offline) #972

@NaveenKumar-Contus

Description

@NaveenKumar-Contus

Hi

Flutter user is in an ongoing call and mutes the microphone, then gone to offline and try to unmute the microphone (setMicrophoneEnabled())and got this exception.

Is this possible to toggle the microphone in offline ??

  @internal
  Future<lk_models.TrackInfo> addTrack(lk_rtc.AddTrackRequest req) async {
    // send request to add track
    signalClient.sendAddTrack(req);

    // wait for response, or timeout
    final event = await _signalListener.waitFor<SignalLocalTrackPublishedEvent>(
      filter: (event) => event.cid == req.cid,
      duration: connectOptions.timeouts.publish,
      onTimeout: () => throw TrackPublishException(),
    );

    return event.track;
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions