Exemple #1
0
        /// <summary>
        /// Adds a buffer of encrypted video data to the output pool, essentially sending
        /// it to all connected clients.
        /// </summary>
        /// <param name="buffer">A buffer of encrypted video data</param>
        public void AddVideoBuffer(byte[] buffer)
        {
            if (buffer.Length <= 0)
            {
                return;
            }

            VideoUpdatePacket packet = new VideoUpdatePacket(buffer.Length);
            outputBuffers.Add(packet.Buffer, buffer);
        }
Exemple #2
0
        protected void readVideoUpdate(VideoUpdatePacket packet)
        {
            byte[] buffer = new byte[packet.VideoDataLength];

            readBuffer(buffer);

            if (decoder != null)
            {
                decoder.Decode(buffer);
            }
        }