Example #1
0
        public void ReversePartitionSizeTest()
        {
            Console.WriteLine(System.Reflection.MethodBase.GetCurrentMethod().Name);

            RTPVP8Header rtpVP8Header = new RTPVP8Header()
            {
                StartOfVP8Partition = true,
                FirstPartitionSize  = 5897
            };

            byte[] headerBuffer = rtpVP8Header.GetBytes();

            var mirroredHeader = RTPVP8Header.GetVP8Header(rtpVP8Header.GetBytes());

            Assert.AreEqual(rtpVP8Header.FirstPartitionSize, mirroredHeader.FirstPartitionSize);
        }
        public void ReversePartitionSizeTest()
        {
            logger.LogDebug("--> " + System.Reflection.MethodBase.GetCurrentMethod().Name);
            logger.BeginScope(System.Reflection.MethodBase.GetCurrentMethod().Name);

            RTPVP8Header rtpVP8Header = new RTPVP8Header()
            {
                StartOfVP8Partition = true,
                FirstPartitionSize  = 5897
            };

            byte[] headerBuffer = rtpVP8Header.GetBytes();

            var mirroredHeader = RTPVP8Header.GetVP8Header(rtpVP8Header.GetBytes());

            Assert.Equal(rtpVP8Header.FirstPartitionSize, mirroredHeader.FirstPartitionSize);
        }
        public void GeIntermediateFrameHeaderTest()
        {
            Console.WriteLine(System.Reflection.MethodBase.GetCurrentMethod().Name);

            RTPVP8Header rtpVP8Header = new RTPVP8Header()
            {
                StartOfVP8Partition = true,
                FirstPartitionSize = 54
            };

            byte[] headerBuffer = rtpVP8Header.GetBytes();

            Console.WriteLine(BitConverter.ToString(headerBuffer, 0));
        }
Example #4
0
        public void GeIntermediateFrameHeaderTest()
        {
            Console.WriteLine(System.Reflection.MethodBase.GetCurrentMethod().Name);

            RTPVP8Header rtpVP8Header = new RTPVP8Header()
            {
                StartOfVP8Partition = true,
                FirstPartitionSize  = 54
            };

            byte[] headerBuffer = rtpVP8Header.GetBytes();

            Console.WriteLine(BitConverter.ToString(headerBuffer, 0));
        }
        public void GeIntermediateFrameHeaderTest()
        {
            logger.LogDebug("--> " + System.Reflection.MethodBase.GetCurrentMethod().Name);
            logger.BeginScope(System.Reflection.MethodBase.GetCurrentMethod().Name);

            RTPVP8Header rtpVP8Header = new RTPVP8Header()
            {
                StartOfVP8Partition = true,
                FirstPartitionSize  = 54
            };

            byte[] headerBuffer = rtpVP8Header.GetBytes();

            logger.LogDebug(BitConverter.ToString(headerBuffer, 0));
        }
        public void ReversePartitionSizeTest()
        {
            Console.WriteLine(System.Reflection.MethodBase.GetCurrentMethod().Name);

            RTPVP8Header rtpVP8Header = new RTPVP8Header()
            {
                StartOfVP8Partition = true,
                FirstPartitionSize = 5897
            };

            byte[] headerBuffer = rtpVP8Header.GetBytes();

            var mirroredHeader = RTPVP8Header.GetVP8Header(rtpVP8Header.GetBytes());

            Assert.AreEqual(rtpVP8Header.FirstPartitionSize, mirroredHeader.FirstPartitionSize);
        }