enable method

Future<void> enable()

Implementation

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