Class NumberUtil

java.lang.Object
com.brightcove.player.util.NumberUtil

public class NumberUtil extends Object
  • Constructor Details

    • NumberUtil

      public NumberUtil()
  • Method Details

    • safeLongToInt

      public static int safeLongToInt(long l)
      Helper method for converting the long values from the ExoPlayer into ints that will work with the Brightcove SDK.
      Parameters:
      l - the long value to be converted.
      Returns:
      the safely converted long value as an integer, or Integer.MIN_VALUE if the input value can not be safely converted