getHLSPlayerDefaultRatio static method

double getHLSPlayerDefaultRatio(
  1. Size size
)

This function is used to get HLS Player's Default Aspect Ratio for the screen

Implementation

static double getHLSPlayerDefaultRatio(Size size) {
  if (Platform.isAndroid) {
    return size.width / (size.height - 100);
  } else {
    return 9 / 16;
  }
}