private void Form1_Load(object sender, EventArgs e) { H264Dec = new H264Dec(); H264Dec.Init(); AudioParse.NaudioInit(); Receive = new Connect(); Receive.ConnectServer(); H264Dec.Start(); }
private void button3_Click(object sender, EventArgs e) { if (Form.button3.Text == "关闭对讲") { Connect.Stop(4, "audio"); AudioParse.AudioStop(); Form.button3.Text = "打开对讲"; } else { Connect.Open(2, "audio"); AudioParse.AudioPaly(); Form.button3.Text = "关闭对讲"; } }