Beispiel #1
0
 public void Prepare(KinectOrigin kinectOrigin)
 {
     State                 = PrepareState.Prepared;
     KinectOrigin          = kinectOrigin;
     TextureGroupUpdater   = new TextureGroupUpdater(kinectOrigin.Screen.Material, ReceiverSessionId, SenderEndPoint);
     videoMessageAssembler = new VideoMessageAssembler(ReceiverSessionId, SenderEndPoint);
     audioPacketReceiver   = new AudioPacketReceiver();
     heartbeatStopWatch    = Stopwatch.StartNew();
     receivedAnyStopWatch  = Stopwatch.StartNew();
 }
Beispiel #2
0
 public KinectReceiver(int receiverSessionId, IPEndPoint senderEndPoint, KinectOrigin kinectOrigin, InitSenderPacketData initPacketData)
 {
     this.receiverSessionId = receiverSessionId;
     this.senderEndPoint    = senderEndPoint;
     this.kinectOrigin      = kinectOrigin;
     videoMessageAssembler  = new VideoMessageAssembler(receiverSessionId, senderEndPoint);
     audioPacketReceiver    = new AudioPacketReceiver();
     textureGroupUpdater    = new TextureGroupUpdater(kinectOrigin.Screen.Material, initPacketData, receiverSessionId, senderEndPoint);
     heartbeatStopWatch     = Stopwatch.StartNew();
     receivedAnyStopWatch   = Stopwatch.StartNew();
 }