changePlayerControlsNotVisible method

void changePlayerControlsNotVisible(
  1. bool notVisible
)

Called when player controls visibility should be changed.

Implementation

void changePlayerControlsNotVisible(bool notVisible) {
  setState(() {
    if (notVisible) {
      pipFlutterPlayerController?.postEvent(PipFlutterPlayerEvent(
          PipFlutterPlayerEventType.controlsHiddenStart));
    }
    controlsNotVisible = notVisible;
  });
}