You are here

public static function VideoJsPlayerFormatter::defaultSettings in Video.js (HTML5 Video Player) 8

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldFormatter/VideoJsPlayerFormatter.php, line 86
Contains \Drupal\videojs\Plugin\Field\FieldFormatter\VideJsPlayerFormatter.

Class

VideoJsPlayerFormatter
Plugin implementation of the 'videojs_player' formatter.

Namespace

Drupal\videojs\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return array(
    'width' => '854',
    'height' => '480',
    'controls' => TRUE,
    'autoplay' => FALSE,
    'loop' => FALSE,
    'muted' => FALSE,
    'preload' => 'none',
  ) + parent::defaultSettings();
}