Inheritance: NewTOAPIA.Drawing.GraphPortDelegate
Beispiel #1
0
        public UICommandSender(PayloadChannel channel)
        {
            fCollaborationChannel = channel;

            // Create the sending graph port
            fChunkEncoder = new GraphPortChunkEncoder();
            fChunkEncoder.ChunkPackedEvent += new GraphPortChunkEncoder.ChunkPacked(GDIChunkPacked);
            AddPort(fChunkEncoder);
            
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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);
        }