-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #346 from Bixal/feature/BSD-298-enable-hls-video
BSD fixes #298: Add Media Remote HLS and Media Remote modules; add a new Media Type.
- Loading branch information
Showing
16 changed files
with
488 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
config/sync/core.entity_form_display.media.hls_video.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
uuid: 3aa18c7a-3a5e-4902-9ce3-f9bc813df535 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.field.media.hls_video.field_media_media_remote | ||
- media.type.hls_video | ||
module: | ||
- path | ||
id: media.hls_video.default | ||
targetEntityType: media | ||
bundle: hls_video | ||
mode: default | ||
content: | ||
created: | ||
type: datetime_timestamp | ||
weight: 10 | ||
region: content | ||
settings: { } | ||
third_party_settings: { } | ||
field_media_media_remote: | ||
type: string_textfield | ||
weight: 0 | ||
region: content | ||
settings: | ||
size: 60 | ||
placeholder: '' | ||
third_party_settings: { } | ||
langcode: | ||
type: language_select | ||
weight: 2 | ||
region: content | ||
settings: | ||
include_locked: true | ||
third_party_settings: { } | ||
name: | ||
type: string_textfield | ||
weight: -5 | ||
region: content | ||
settings: | ||
size: 60 | ||
placeholder: '' | ||
third_party_settings: { } | ||
path: | ||
type: path | ||
weight: 30 | ||
region: content | ||
settings: { } | ||
third_party_settings: { } | ||
status: | ||
type: boolean_checkbox | ||
weight: 100 | ||
region: content | ||
settings: | ||
display_label: true | ||
third_party_settings: { } | ||
uid: | ||
type: entity_reference_autocomplete | ||
weight: 5 | ||
region: content | ||
settings: | ||
match_operator: CONTAINS | ||
match_limit: 10 | ||
size: 60 | ||
placeholder: '' | ||
third_party_settings: { } | ||
hidden: { } |
28 changes: 28 additions & 0 deletions
28
config/sync/core.entity_form_display.media.hls_video.media_library.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
uuid: 278bae80-6c7d-48db-a6a9-93b6dc62bdba | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- core.entity_form_mode.media.media_library | ||
- field.field.media.hls_video.field_media_media_remote | ||
- media.type.hls_video | ||
id: media.hls_video.media_library | ||
targetEntityType: media | ||
bundle: hls_video | ||
mode: media_library | ||
content: | ||
name: | ||
type: string_textfield | ||
weight: 0 | ||
region: content | ||
settings: | ||
size: 60 | ||
placeholder: '' | ||
third_party_settings: { } | ||
hidden: | ||
created: true | ||
field_media_media_remote: true | ||
langcode: true | ||
path: true | ||
status: true | ||
uid: true |
32 changes: 32 additions & 0 deletions
32
config/sync/core.entity_view_display.media.hls_video.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
uuid: 89538217-2bd1-4d8c-a553-b9afdeb624d5 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.field.media.hls_video.field_media_media_remote | ||
- media.type.hls_video | ||
module: | ||
- media_remote_hls | ||
id: media.hls_video.default | ||
targetEntityType: media | ||
bundle: hls_video | ||
mode: default | ||
content: | ||
field_media_media_remote: | ||
type: media_remote_hls | ||
label: hidden | ||
settings: | ||
width: '960' | ||
height: '600' | ||
autoplay: '1' | ||
formatter_class: Drupal\media_remote_hls\Plugin\Field\FieldFormatter\MediaRemoteHLSFormatter | ||
third_party_settings: { } | ||
weight: 0 | ||
region: content | ||
hidden: | ||
created: true | ||
langcode: true | ||
name: true | ||
search_api_excerpt: true | ||
thumbnail: true | ||
uid: true |
34 changes: 34 additions & 0 deletions
34
config/sync/core.entity_view_display.media.hls_video.media_library.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
uuid: a48aacb5-1842-44a1-8f5a-a2126d6e3679 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- core.entity_view_mode.media.media_library | ||
- field.field.media.hls_video.field_media_media_remote | ||
- image.style.medium | ||
- media.type.hls_video | ||
module: | ||
- image | ||
id: media.hls_video.media_library | ||
targetEntityType: media | ||
bundle: hls_video | ||
mode: media_library | ||
content: | ||
thumbnail: | ||
type: image | ||
label: hidden | ||
settings: | ||
image_link: '' | ||
image_style: medium | ||
image_loading: | ||
attribute: lazy | ||
third_party_settings: { } | ||
weight: 0 | ||
region: content | ||
hidden: | ||
created: true | ||
field_media_media_remote: true | ||
langcode: true | ||
name: true | ||
search_api_excerpt: true | ||
uid: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
config/sync/field.field.media.hls_video.field_media_media_remote.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
uuid: 5bcc2e43-d005-474d-9f0b-9b715e168fba | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.media.field_media_media_remote | ||
- media.type.hls_video | ||
id: media.hls_video.field_media_media_remote | ||
field_name: field_media_media_remote | ||
entity_type: media | ||
bundle: hls_video | ||
label: 'Remote Media URL' | ||
description: '' | ||
required: true | ||
translatable: true | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: { } | ||
field_type: string |
21 changes: 21 additions & 0 deletions
21
config/sync/field.storage.media.field_media_media_remote.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
uuid: c8ffa937-f683-4509-a7bd-0e7dac2bd470 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- media | ||
id: media.field_media_media_remote | ||
field_name: field_media_media_remote | ||
entity_type: media | ||
type: string | ||
settings: | ||
max_length: 255 | ||
case_sensitive: false | ||
is_ascii: false | ||
module: core | ||
locked: false | ||
cardinality: 1 | ||
translatable: true | ||
indexes: { } | ||
persist_with_no_fields: false | ||
custom_storage: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
uuid: a88483a5-0ed4-4676-8186-32640de95525 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- media.type.hls_video | ||
id: media.hls_video | ||
target_entity_type_id: media | ||
target_bundle: hls_video | ||
default_langcode: site_default | ||
language_alterable: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
uuid: 158e198c-4114-492e-af2b-fd53e6f5780a | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- media_remote | ||
id: hls_video | ||
label: 'HLS Video' | ||
description: 'Remote video using the HLS protocol' | ||
source: media_remote | ||
queue_thumbnail_downloads: false | ||
new_revision: false | ||
source_configuration: | ||
source_field: field_media_media_remote | ||
field_map: { } |
27 changes: 27 additions & 0 deletions
27
...odules/custom/bixal_default_content/content/file/f91cbcf4-ec16-4afc-affe-7ca92eb412d0.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
_meta: | ||
version: '1.0' | ||
entity_type: file | ||
uuid: f91cbcf4-ec16-4afc-affe-7ca92eb412d0 | ||
default_langcode: en | ||
default: | ||
uid: | ||
- | ||
target_id: 1 | ||
filename: | ||
- | ||
value: generic.png | ||
uri: | ||
- | ||
value: 'public://media-icons/generic/generic.png' | ||
filemime: | ||
- | ||
value: image/png | ||
filesize: | ||
- | ||
value: 3900 | ||
status: | ||
- | ||
value: true | ||
created: | ||
- | ||
value: 1732300629 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.