Class Utils

java.lang.Object
com.flashphoner.fpwcsapi.util.Utils

public class Utils extends Object
Custom utils
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • md5

      public static String md5(String s)
      Create md5
      Parameters:
      s - String for creating md5
      Returns:
    • writeFmtp

      public static String writeFmtp(String sdp, String options, String codecName)
    • stripCodecs

      public static String stripCodecs(String sdp, String[] codecs)
    • initRenderer

      public static void initRenderer(String logTag, org.webrtc.SurfaceViewRenderer renderer)
    • getNV21

      public static byte[] getNV21(int inputWidth, int inputHeight, android.graphics.Bitmap rgbBitmap)
      Convert ARGB data to YUV
      Parameters:
      inputWidth -
      inputHeight -
      rgbBitmap -
      Returns:
    • getNV21

      public static byte[] getNV21(int inputWidth, int inputHeight, int[] argb)