Loading js/plyr-remote-video.jsdeleted 100644 → 0 +0 −1 Original line number Diff line number Diff line const players = Plyr.setup('.plyr-player'); plyr.libraries.yml +0 −6 Original line number Diff line number Diff line Loading @@ -6,12 +6,6 @@ plyr: js: https://cdn.plyr.io/3.6.12/plyr.js: { type: external, minified: true } plyr-remote-video: js: js/plyr-remote-video.js: {} dependencies: - plyr/plyr plyr-player: js: js/plyr-player.js: {} Loading plyr.module +6 −2 Original line number Diff line number Diff line Loading @@ -12,18 +12,22 @@ function plyr_theme() { return [ 'plyr_file_audio' => [ 'variables' => [ 'files' => [], 'attributes' => NULL, 'files' => [], 'plyr_settings' => [], ], ], 'plyr_file_video' => [ 'variables' => [ 'files' => [], 'attributes' => NULL, 'files' => [], 'plyr_settings' => [], ], ], 'plyr_remote_video' => [ 'variables' => [ 'attributes' => NULL, 'plyr_settings' => [], 'video_provider' => NULL, 'video_embed_id' => NULL, ], Loading src/Plugin/Field/FieldFormatter/PlyrFileAudioFormatter.php +0 −13 Original line number Diff line number Diff line Loading @@ -24,17 +24,4 @@ class PlyrFileAudioFormatter extends PlyrFormatterBase { return 'audio'; } /** * {@inheritdoc} */ public function viewElements(FieldItemListInterface $items, $langcode) { $elements = parent::viewElements($items, $langcode); if (!empty($elements)) { $elements['#attached']['library'][] = 'plyr/plyr-player'; } return $elements; } } src/Plugin/Field/FieldFormatter/PlyrFileVideoFormatter.php +0 −13 Original line number Diff line number Diff line Loading @@ -24,17 +24,4 @@ class PlyrFileVideoFormatter extends PlyrFormatterBase { return 'video'; } /** * {@inheritdoc} */ public function viewElements(FieldItemListInterface $items, $langcode) { $elements = parent::viewElements($items, $langcode); if (!empty($elements)) { $elements['#attached']['library'][] = 'plyr/plyr-player'; } return $elements; } } Loading
js/plyr-remote-video.jsdeleted 100644 → 0 +0 −1 Original line number Diff line number Diff line const players = Plyr.setup('.plyr-player');
plyr.libraries.yml +0 −6 Original line number Diff line number Diff line Loading @@ -6,12 +6,6 @@ plyr: js: https://cdn.plyr.io/3.6.12/plyr.js: { type: external, minified: true } plyr-remote-video: js: js/plyr-remote-video.js: {} dependencies: - plyr/plyr plyr-player: js: js/plyr-player.js: {} Loading
plyr.module +6 −2 Original line number Diff line number Diff line Loading @@ -12,18 +12,22 @@ function plyr_theme() { return [ 'plyr_file_audio' => [ 'variables' => [ 'files' => [], 'attributes' => NULL, 'files' => [], 'plyr_settings' => [], ], ], 'plyr_file_video' => [ 'variables' => [ 'files' => [], 'attributes' => NULL, 'files' => [], 'plyr_settings' => [], ], ], 'plyr_remote_video' => [ 'variables' => [ 'attributes' => NULL, 'plyr_settings' => [], 'video_provider' => NULL, 'video_embed_id' => NULL, ], Loading
src/Plugin/Field/FieldFormatter/PlyrFileAudioFormatter.php +0 −13 Original line number Diff line number Diff line Loading @@ -24,17 +24,4 @@ class PlyrFileAudioFormatter extends PlyrFormatterBase { return 'audio'; } /** * {@inheritdoc} */ public function viewElements(FieldItemListInterface $items, $langcode) { $elements = parent::viewElements($items, $langcode); if (!empty($elements)) { $elements['#attached']['library'][] = 'plyr/plyr-player'; } return $elements; } }
src/Plugin/Field/FieldFormatter/PlyrFileVideoFormatter.php +0 −13 Original line number Diff line number Diff line Loading @@ -24,17 +24,4 @@ class PlyrFileVideoFormatter extends PlyrFormatterBase { return 'video'; } /** * {@inheritdoc} */ public function viewElements(FieldItemListInterface $items, $langcode) { $elements = parent::viewElements($items, $langcode); if (!empty($elements)) { $elements['#attached']['library'][] = 'plyr/plyr-player'; } return $elements; } }