setWebFullScreen method

Future<void> setWebFullScreen(
  1. bool state,
  2. MeeduPlayerController _
)

Implementation

Future<void> setWebFullScreen(bool state, MeeduPlayerController _) async {
  _.fullscreen.value = state;
  try {
    FullScreenWindow.setFullScreen(state);
  } catch (e) {
    if (e.toString().contains("Document not active")) {
      _.customDebugPrint("Document not active ignored");
    } else {
      rethrow;
    }
  }
}