function startTalk(ws2, button) { var arrBuffer = new ArrayBuffer(320 * 2); var sendBuffer = new DataView(arrBuffer); var sendBufferindex = 0; if (navigator.getUserMedia) { navigator.getUserMedia( { audio: true }, …
一,服务端代码 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net.Sockets; using System.Net; namespace ServerDemo1 { class Program { static List<Client> clientList = new List<Client>(); /// <summ…