OSS\Tests\LiveChannelXmlTest::testLiveChannelStatus PHP Метод

testLiveChannelStatus() публичный Метод

    public function testLiveChannelStatus()
    {
        $stat = new GetLiveChannelStatus();
        $stat->parseFromXml($this->status);
        $this->assertEquals('Live', $stat->getStatus());
        $this->assertEquals('2016-10-20T14:25:31.000Z', $stat->getConnectedTime());
        $this->assertEquals('10.1.2.4:47745', $stat->getRemoteAddr());
        $this->assertEquals(1280, $stat->getVideoWidth());
        $this->assertEquals(536, $stat->getVideoHeight());
        $this->assertEquals(24, $stat->getVideoFrameRate());
        $this->assertEquals(72513, $stat->getVideoBandwidth());
        $this->assertEquals('H264', $stat->getVideoCodec());
        $this->assertEquals(6519, $stat->getAudioBandwidth());
        $this->assertEquals(44100, $stat->getAudioSampleRate());
        $this->assertEquals('AAC', $stat->getAudioCodec());
    }