remove last packet Rpc
Comments
-
Hi,
How do you cancel sending? If you just stop calling RPC(...) then nothing special should happen.
Could you please log RPC calls both on caller and called side to make sure that it's network issue (and not a bug in packet player)0 -
for (int i = 0; i < numPackets; i++) { AudioPacket currentPacket = tempAudioPackets [i]; if (Input.GetKey (KeyCode.T)) audioView.RPC ("ReceiveAudio", PhotonTargets.Others, currentPacket.position, currentPacket.length, currentPacket.data); VideoChat.audioPackets.Remove (tempAudioPackets [i]); }
.............[RPC] void ReceiveAudio( int micPosition, int length, byte[] audioData ) { VideoChat.ToAudio (micPosition, length, audioData); }
its a package(videochat by midnight).
it records voice in a package and send package.for canceling i just release key!
if you want ,i can send all codes for you to find problem.
note:
in above scripts
audioView is a component<photonView>
and
VideoChat is a dll .0 -
No code required.
Just trace RPC calls with logs as I asked you before.
I want to make sure that PUN works properly.0