setDisplayRotate method

Future<bool> setDisplayRotate(
  1. DisplayRotation rotation
)

Set the rotate angle of display

Implementation

Future<bool> setDisplayRotate(DisplayRotation rotation) async {
  if (_isDisposedOrNotInitialized) {
    return false;
  }

  return _videoPlayerPlatform.setDisplayRotate(_playerId, rotation);
}