public Form1() { callback = (width, height, data, format, size, estFps, videoId) => { Console.WriteLine("Got frame, width: {0} height: {1} [est. FPS: {2}, type: {3}]", width, height, estFps, format); SetRuntimeData(width, height, data, format, size, estFps); }; InitializeComponent(); comboType.SelectedIndex = FMT_JPEG; }
private static extern void StartDecoding(string url, double userFps, int fmt_out_type, FrameDecodedCallback callback, ref IntPtr videoId);