Merge pull request #6 from nlegoff/review
Implement supportBFrames method to resizableVideos
This commit is contained in:
commit
b534d7a8a8
4 changed files with 29 additions and 0 deletions
|
|
@ -21,6 +21,14 @@ class Ogg extends DefaultVideo
|
|||
protected $audioCodec = 'libvorbis';
|
||||
protected $videoCodec = 'libtheora';
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function supportBFrames()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -21,6 +21,14 @@ class WebM extends DefaultVideo
|
|||
protected $audioCodec = 'libvorbis';
|
||||
protected $videoCodec = 'libvpx';
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function supportBFrames()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -21,6 +21,14 @@ class X264 extends DefaultVideo
|
|||
protected $audioCodec = 'libmp3lame';
|
||||
protected $videoCodec = 'libx264';
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function supportBFrames()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -171,6 +171,11 @@ class DefaultVideoTester extends DefaultVideo
|
|||
protected $audioCodec = 'audiocodec1';
|
||||
protected $videoCodec = 'videocodec2';
|
||||
|
||||
public function supportBFrames()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function getAvailableAudioCodecs()
|
||||
{
|
||||
return array('audiocodec1', 'audiocodec2', 'audiocodec3');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue