You are here

public function TranscoderBase::getAvailableFormats in Video 8.2

Get the transcoder supported formats.

Return value

array Array of supported formats.

File

modules/video_transcode/src/TranscoderBase.php, line 101
Provides Drupal\video_transcode\TranscoderBase.

Class

TranscoderBase

Namespace

Drupal\video_transcode

Code

public function getAvailableFormats($type = FALSE) {
  return [
    '3g2' => '3G2',
    '3gp' => '3GP',
    '3gp2' => '3GP2',
    '3gpp' => '3GPP',
    '3gpp2' => '3GPP2',
    'aac' => 'AAC',
    'f4a' => 'F4A',
    'f4b' => 'F4B',
    'f4v' => 'F4V',
    'flv' => 'FLV',
    'm4a' => 'M4A',
    'm4b' => 'M4B',
    'm4r' => 'M4R',
    'm4v' => 'M4V',
    'mov' => 'MOV',
    'mp3' => 'MP3',
    'mp4' => 'MP4',
    'oga' => 'OGA',
    'ogg' => 'OGG',
    'ogv' => 'OGV',
    'ogx' => 'OGX',
    'ts' => 'TS',
    'webm' => 'WebM',
    'wma' => 'WMA',
    'wmv' => 'WMV',
  ];
}