Added initial parameters
This commit is contained in:
parent
afc0e406ed
commit
73fdec8290
6 changed files with 85 additions and 5 deletions
|
|
@ -35,6 +35,9 @@ abstract class DefaultVideo extends DefaultAudio implements VideoInterface
|
|||
/** @var Array */
|
||||
protected $additionalParamaters;
|
||||
|
||||
/** @var Array */
|
||||
protected $initialParamaters;
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
|
@ -122,6 +125,31 @@ abstract class DefaultVideo extends DefaultAudio implements VideoInterface
|
|||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getInitialParameters()
|
||||
{
|
||||
return $this->initialParamaters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets initial parameters.
|
||||
*
|
||||
* @param array $initialParamaters
|
||||
* @throws InvalidArgumentException
|
||||
*/
|
||||
public function setInitialParameters($initialParamaters)
|
||||
{
|
||||
if (!is_array($initialParamaters)) {
|
||||
throw new InvalidArgumentException('Wrong initialParamaters value');
|
||||
}
|
||||
|
||||
$this->initialParamaters = $initialParamaters;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -56,9 +56,16 @@ interface VideoInterface extends AudioInterface
|
|||
public function getAvailableVideoCodecs();
|
||||
|
||||
/**
|
||||
* Returns the list of available video codecs for this format.
|
||||
* Returns the list of additional parameters for this format.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getAdditionalParameters();
|
||||
|
||||
/**
|
||||
* Returns the list of initial parameters for this format
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getInitialParameters();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue