fixed audio streaming
parent
62c9f07578
commit
4f29376791
|
|
@ -26,7 +26,7 @@ public class VelVoiceController : VoiceControllerBase
|
|||
void Start()
|
||||
{
|
||||
player = GetComponent<NetworkPlayer>();
|
||||
VoiceControllerCollection<VelVoiceController>.RegisterVoiceController(this);
|
||||
init();
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ namespace DaikonForge.VoIP
|
|||
protected ulong nextFrameIndex = 0;
|
||||
protected ulong nextExpectedIndex = 0;
|
||||
|
||||
protected virtual void Awake()
|
||||
protected virtual void init()
|
||||
{
|
||||
codec = GetCodec();
|
||||
|
||||
|
|
|
|||
|
|
@ -83,6 +83,6 @@ public class NetworkPlayer : MonoBehaviour
|
|||
//base64 encode
|
||||
string b64_headers = Convert.ToBase64String(headers);
|
||||
string b64_data = Convert.ToBase64String(data);
|
||||
manager.sendTo(1, "2," + b64_headers +","+b64_data + ";");
|
||||
manager.sendTo(0, "2," + b64_headers +","+b64_data + ";");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue