disable method

Future<void> disable()

Implementation

Future<void> disable() async {
  logger
      .fine('$objectId.disable() disabling ${mediaStreamTrack.objectId}...');
  try {
    if (_active) {
      mediaStreamTrack.enabled = false;
    }
  } catch (_) {
    logger.warning(
        '[$objectId] set rtc.mediaStreamTrack.enabled did throw ${_}');
  }
}