resume method

void resume()

Resumes sending media.

Implementation

void resume() {
  _logger.debug('resume()');

  if (closed) {
    _logger.error('resume() | Producer closed');

    return;
  }

  paused = false;

  if (disableTrackOnPause) {
    track.enabled = true;
  }

  if (zeroRtpOnPause) {
    safeEmitAsFuture('@replacetrack', {
      '_track': track,
    }).catchError((error, stackTrace) {});
  }

  // Emit observer event.
  observer.safeEmit('resume');
}