closeAsync method

Future<void> closeAsync()

Implementation

Future<void> closeAsync() async {
  _playerIsCreated = false;
  TTFLogger.i(_logTag, 'closeAsync: hasCode: $hashCode');
  _clearEvent();
  _seekCompletedCallbacks.remove(hashCode);
  _seekRenderCompletedCallbacks.remove(hashCode);
  _getHlsStreamInfosCallbacks.remove(hashCode);
  _selectHlsVideoStreamCallbacks.remove(hashCode);
  _selectHlsRenditionCallbacks.remove(hashCode);
  _seekSerialNo = 0;
  await engineInstanceMethodChannel.invokeMethod('closeAsync');
}