release method

Future<int> release()

Releases the resources associated with this media player.

The resources are going to be fetched or buffered again as soon as you call play or setUrl.

Implementation

Future<int> release() async {
  final result = await _invokeMethod('release');

  if (result == 1) {
    state = PlayerState.STOPPED;
  }

  return result;
}