public static void EPlay(string url, IntPtr a, IntPtr b, IntPtr c, IntPtr d) { int channelID = PlayerSdk.EasyPlayer_OpenStream(url + 1, a, PlayerSdk.RENDER_FORMAT.DISPLAY_FORMAT_RGB24_GDI, 1, "", "", EPcallBack, IntPtr.Zero, false); if (channelID > 0) { PlayerSdk.EasyPlayer_SetFrameCache(channelID, 3); list.Add(channelID); } }
private void Form1_Load(object sender, EventArgs e) { PlayerSdk.EPInit(); var p1 = panel1.Handle; //var p2 = panel2.Handle; int channelID = PlayerSdk.EasyPlayer_OpenStream("rtsp://172.16.21.209:554/1", panel1.Handle, PlayerSdk.RENDER_FORMAT.DISPLAY_FORMAT_RGB24_GDI, 1, "admin", "itc123456", PlayerSdk.EPcallBack, IntPtr.Zero, false); if (channelID > 0) { PlayerSdk.EasyPlayer_SetFrameCache(channelID, 3); } }