|
16 | 16 | * You should have received a copy of the GNU Lesser General Public License along |
17 | 17 | * with BigBlueButton; if not, see <http://www.gnu.org/licenses/>. |
18 | 18 | */ |
| 19 | + |
19 | 20 | namespace BigBlueButton\Parameters; |
20 | 21 |
|
21 | 22 | use BigBlueButton\Responses\GetRecordingsResponse; |
@@ -65,6 +66,35 @@ public function testRecordMetadataContent() |
65 | 66 | $this->assertEquals('moodle-mod_bigbluebuttonbn (2015080611)', $metas['bbb-origin-tag']); |
66 | 67 | } |
67 | 68 |
|
| 69 | + public function testRecordingsPlaybackFormats() |
| 70 | + { |
| 71 | + $this->assertEquals('SUCCESS', $this->records->getReturnCode()); |
| 72 | + |
| 73 | + $this->assertCount(6, $this->records->getRecords()); |
| 74 | + $aRecord = $this->records->getRecords()[0]; |
| 75 | + |
| 76 | + // Test podcast format |
| 77 | + $podcastFormat = $aRecord->getFormats()[0]; // without images preview |
| 78 | + $this->assertEquals('podcast', $podcastFormat->getType()); |
| 79 | + $this->assertEquals('https://test-install.blindsidenetworks.com/podcast/f71d810b6e90a4a34ae02b8c7143e8733178578e-1462807897120/audio.ogg', $podcastFormat->getUrl()); |
| 80 | + $this->assertEquals('111', $podcastFormat->getProcessingTime()); |
| 81 | + $this->assertEquals('632', $podcastFormat->getLength()); |
| 82 | + $this->assertEquals('10500', $podcastFormat->getSize()); |
| 83 | + |
| 84 | + $presentationFormat = $aRecord->getFormats()[1]; // having images preview |
| 85 | + $this->assertEquals('presentation', $presentationFormat->getType()); |
| 86 | + $this->assertEquals('http://test-install.blindsidenetworks.com/playback/presentation/0.9.0/playback.html?meetingId=f71d810b6e90a4a34ae02b8c7143e8733178578e-1462807897120', $presentationFormat->getUrl()); |
| 87 | + $this->assertEquals(2973, $presentationFormat->getProcessingTime()); |
| 88 | + $this->assertEquals(532, $presentationFormat->getLength()); |
| 89 | + $this->assertEquals(168019, $presentationFormat->getSize()); |
| 90 | + |
| 91 | + $image = $presentationFormat->getImages()[0]; |
| 92 | + $this->assertEquals('Welcome', $image->getAlt()); |
| 93 | + $this->assertEquals(136, $image->getHeight()); |
| 94 | + $this->assertEquals(176, $image->getWidth()); |
| 95 | + $this->assertEquals('https://test-install.blindsidenetworks.com/presentation/f71d810b6e90a4a34ae02b8c7143e8733178578e-1462807897120/presentation/d2d9a672040fbde2a47a10bf6c37b6a4b5ae187f-1632646357291/thumbnails/thumb-1.png', $image->getUrl()); |
| 96 | + } |
| 97 | + |
68 | 98 | public function testGetRecordingResponseTypes() |
69 | 99 | { |
70 | 100 | $this->assertEachGetterValueIsString($this->records, ['getReturnCode']); |
|
0 commit comments