Get the information of a single streaming profile
public get_streaming_profile ( $name, array $options = [] ) : |
||
$name | the name of the profile | |
$options | array | other options |
return | An array with a "data" key for results |
function test_get_streaming_profile() { $result = $this->api->get_streaming_profile(self::$predefined_profiles[0]); $this->assertArrayHasKey("representations", $result["data"]); $reps = $result["data"]["representations"]; $this->assertTrue(is_array($reps)); // "transformation is returned as an array $this->assertTrue(is_array($reps[0]["transformation"])); $tr = $reps[0]["transformation"][0]; $this->assertArrayHasKey("bit_rate", $tr); $this->assertArrayHasKey("height", $tr); $this->assertArrayHasKey("width", $tr); $this->assertArrayHasKey("crop", $tr); }