Skip to content

Commit

Permalink
Merge pull request #277 from Bixal/feature/BSD-276-videos-media
Browse files Browse the repository at this point in the history
BSD fixes #276: Add video media type. [CAPTURE CONFIG]
  • Loading branch information
mattsqd authored Aug 15, 2024
2 parents 28a3ae6 + cd2e8f2 commit ccbd5c3
Show file tree
Hide file tree
Showing 9 changed files with 241 additions and 3 deletions.
67 changes: 67 additions & 0 deletions config/sync/core.entity_form_display.media.video.default.yml
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 config/sync/core.entity_form_display.media.video.media_library.yml
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 config/sync/core.entity_view_display.media.video.default.yml
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 config/sync/core.entity_view_display.media.video.media_library.yml
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 config/sync/field.field.media.video.field_media_video_file.yml
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 config/sync/field.storage.media.field_media_video_file.yml
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
6 changes: 3 additions & 3 deletions config/sync/filter.format.html_text.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ filters:
id: filter_align
provider: filter
status: true
weight: -47
weight: -48
settings: { }
filter_autop:
id: filter_autop
Expand All @@ -37,7 +37,7 @@ filters:
id: filter_html
provider: filter
status: true
weight: -46
weight: -47
settings:
allowed_html: '<br> <p class="text-align-left text-align-center text-align-right text-align-justify"> <h2 class="text-align-left text-align-center text-align-right text-align-justify"> <h3 class="text-align-left text-align-center text-align-right text-align-justify"> <h4 class="text-align-left text-align-center text-align-right text-align-justify"> <h5 class="text-align-left text-align-center text-align-right text-align-justify"> <h6 class="text-align-left text-align-center text-align-right text-align-justify"> <address> <strong> <em> <u> <code class="language-*"> <pre class="text-align-left text-align-center text-align-right text-align-justify"> <blockquote> <a href> <ul> <ol reversed start> <li> <img src alt height width data-entity-uuid data-entity-type data-caption data-align> <drupal-media data-entity-type data-entity-uuid alt data-caption data-align>'
filter_html_help: true
Expand Down Expand Up @@ -77,7 +77,7 @@ filters:
id: media_embed
provider: media
status: true
weight: -48
weight: -46
settings:
default_view_mode: default
allowed_view_modes: { }
Expand Down
11 changes: 11 additions & 0 deletions config/sync/language.content_settings.media.video.yml
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
13 changes: 13 additions & 0 deletions config/sync/media.type.video.yml
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: { }

0 comments on commit ccbd5c3

Please sign in to comment.