dispose method

  1. @override
Future<void> dispose(
  1. int textureId
)
override

Clears one video.

Implementation

@override
Future<void> dispose(int textureId) async {
  var controller =
      VideoPlayerWinPlatform.instance.getPlayerByTextureId(textureId);
  await controller?.dispose();
  mControllerMap.remove(textureId);
}