public UICommandSender(PayloadChannel channel) { fCollaborationChannel = channel; // Create the sending graph port fChunkEncoder = new GraphPortChunkEncoder(); fChunkEncoder.ChunkPackedEvent += new GraphPortChunkEncoder.ChunkPacked(GDIChunkPacked); AddPort(fChunkEncoder); }
void JoinSession() { // Add the channel for graphics commands fRtpSender = fSession.CreateRtpSender(fParticipantName, PayloadType.xApplication2, null); //fRtpSender = fSession.CreateRtpSenderFec(fParticipantName, PayloadType.xApplication2, null, 0, 200); fRtpSender.DelayBetweenPackets = 0; // Create the sending graph port fChunkEncoder = new GraphPortChunkEncoder(); fChunkEncoder.ChunkPackedEvent += new GraphPortChunkEncoder.ChunkPacked(GDIChunkPacked); AddGraphPort(fChunkEncoder); }
public GraphicsChannel(IGraphPort localRenderer, PayloadChannel channel) { fCollaborationChannel = channel; fRenderer = localRenderer; fChunkDecoder = new GraphPortChunkDecoder(); fChunkDecoder.AddGraphPort(fRenderer); // Create the sending graph port fChunkEncoder = new GraphPortChunkEncoder(); fChunkEncoder.ChunkPackedEvent += new GraphPortChunkEncoder.ChunkPacked(GDIChunkPacked); AddGraphPort(fChunkEncoder); // send the frame to the receiver fCollaborationChannel.FrameReceivedEvent += new RtpStream.FrameReceivedEventHandler(GDICommandReceived); }