Audio Params (#344)
* 🚀 video profile and level * add missing getter * add missing use statement * add missing return $this * 1 test fixed * fix other tests and clean up We MUST rewrite them. They are too complex when it comes to new features * trim trailing whitespaces * fix typo * 🚀 support for additional params in audio
This commit is contained in:
parent
4cfcabd7b5
commit
cb7d850338
8 changed files with 196 additions and 85 deletions
|
|
@ -46,6 +46,31 @@ abstract class DefaultAudio extends EventEmitter implements AudioInterface, Prog
|
|||
return $this->audioCodec;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getAdditionalParameters()
|
||||
{
|
||||
return $this->additionalParameters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets additional parameters.
|
||||
*
|
||||
* @param array $additionalParameters
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
public function setAdditionalParameters($additionalParameters)
|
||||
{
|
||||
if (!is_array($additionalParameters)) {
|
||||
throw new InvalidArgumentException('Wrong additionalParamaters value');
|
||||
}
|
||||
|
||||
$this->additionalParameters = $additionalParameters;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the audio codec, Should be in the available ones, otherwise an
|
||||
* exception is thrown.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue