destroyPlayer method

Future<void> destroyPlayer()

Destroys the player instance and releases associated resources.

Implementation

Future<void> destroyPlayer() async {
  await TargetvideoFlutterPluginPlatform.instance.destroyPlayer(playerReference);
}