getHLSRatio static method

double getHLSRatio(
  1. Size size,
  2. BuildContext context
)

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

Implementation

static double getHLSRatio(Size size, BuildContext context) {
  return (size.height - 1) / (size.width);
}