-
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 #277 from Bixal/feature/BSD-276-videos-media
BSD fixes #276: Add video media type. [CAPTURE CONFIG]
- Loading branch information
Showing
9 changed files
with
241 additions
and
3 deletions.
There are no files selected for viewing
67 changes: 67 additions & 0 deletions
67
config/sync/core.entity_form_display.media.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: e562991c-4ce9-4810-9e5b-e29868af72b5 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.field.media.video.field_media_video_file | ||
- media.type.video | ||
module: | ||
- file | ||
- path | ||
id: media.video.default | ||
targetEntityType: media | ||
bundle: video | ||
mode: default | ||
content: | ||
created: | ||
type: datetime_timestamp | ||
weight: 10 | ||
region: content | ||
settings: { } | ||
third_party_settings: { } | ||
field_media_video_file: | ||
type: file_generic | ||
weight: 0 | ||
region: content | ||
settings: | ||
progress_indicator: throbber | ||
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.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: 34e759b6-d201-48c2-9154-7bbc8c6f8fbb | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- core.entity_form_mode.media.media_library | ||
- field.field.media.video.field_media_video_file | ||
- media.type.video | ||
id: media.video.media_library | ||
targetEntityType: media | ||
bundle: 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_video_file: true | ||
langcode: true | ||
path: true | ||
status: true | ||
uid: true |
35 changes: 35 additions & 0 deletions
35
config/sync/core.entity_view_display.media.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,35 @@ | ||
uuid: 365a0955-d13c-4c21-a1a4-def27329ceb5 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.field.media.video.field_media_video_file | ||
- media.type.video | ||
module: | ||
- file | ||
id: media.video.default | ||
targetEntityType: media | ||
bundle: video | ||
mode: default | ||
content: | ||
field_media_video_file: | ||
type: file_video | ||
label: hidden | ||
settings: | ||
controls: true | ||
autoplay: false | ||
loop: false | ||
multiple_file_display_type: tags | ||
muted: false | ||
width: 640 | ||
height: 480 | ||
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.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: 35d5a8bc-3c52-43fb-ac67-9c1c4f7c682c | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- core.entity_view_mode.media.media_library | ||
- field.field.media.video.field_media_video_file | ||
- image.style.medium | ||
- media.type.video | ||
module: | ||
- image | ||
id: media.video.media_library | ||
targetEntityType: media | ||
bundle: 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_video_file: true | ||
langcode: true | ||
name: true | ||
search_api_excerpt: true | ||
uid: true |
27 changes: 27 additions & 0 deletions
27
config/sync/field.field.media.video.field_media_video_file.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 @@ | ||
uuid: 72d94405-25fb-4bfe-8b15-40afb7e1e2e0 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.media.field_media_video_file | ||
- media.type.video | ||
module: | ||
- file | ||
id: media.video.field_media_video_file | ||
field_name: field_media_video_file | ||
entity_type: media | ||
bundle: video | ||
label: 'Video file' | ||
description: '' | ||
required: true | ||
translatable: true | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: | ||
handler: 'default:file' | ||
handler_settings: { } | ||
file_directory: '[date:custom:Y]-[date:custom:m]' | ||
file_extensions: 'mp4 webm' | ||
max_filesize: '' | ||
description_field: false | ||
field_type: file |
23 changes: 23 additions & 0 deletions
23
config/sync/field.storage.media.field_media_video_file.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,23 @@ | ||
uuid: 8b541ad9-9849-483c-a6d8-1af671531165 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- file | ||
- media | ||
id: media.field_media_video_file | ||
field_name: field_media_video_file | ||
entity_type: media | ||
type: file | ||
settings: | ||
target_type: file | ||
display_field: false | ||
display_default: false | ||
uri_scheme: public | ||
module: file | ||
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
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: 1263755f-48c5-4e54-b54c-1d2c17050389 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- media.type.video | ||
id: media.video | ||
target_entity_type_id: media | ||
target_bundle: 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,13 @@ | ||
uuid: c44390ee-43fa-485a-86c8-6be189d84151 | ||
langcode: en | ||
status: true | ||
dependencies: { } | ||
id: video | ||
label: Video | ||
description: '' | ||
source: video_file | ||
queue_thumbnail_downloads: false | ||
new_revision: false | ||
source_configuration: | ||
source_field: field_media_video_file | ||
field_map: { } |