User Level: 

When looking at the default settings for the Video media type, we're reminded that a few fields are missing in the Source Mapping. These fields actually need to be added into the media type.

 

Click on an image to make it bigger.
Drupal 8 - Media - Video Media Type - Manage Fields Tab - Click Manage Fields Tab

1. Navigate To Manage Fields

Go to Admin menu > Structure > Media Types > Video > Manage Fields tab.

Drupal 8 - Media - Video Media Type - Map Source Fields - Click Add Field

2. Add a New Field for the Video ID

Click the Add New Field button.

Drupal 8 - Media - Video Media Type - Map Source Fields - Add Video ID Field

3. Define the Video ID Field

Once on the Add Field screen:

Add a New Field select field = Text (plain).

Re-use an Existing Field select field = leave as is.

Label field = Video ID.

Machine-readable Name field = this will auto construct from the Label field - it's suggested that this be overridden to include the same naming convention started with the other field that's present in this media type - media_video_id.

Click the Save and Continue button.

Drupal 8 - Media - Video Media Type - Map Source Fields - Video ID Initial Settings

4. Add Initial Video ID Field Settings

The initial Video ID field settings will appear in a Field Settings tab:

Maximum Length select field = 255 (leave as is).

Allowed Number of Values combination field = Limited 1 (leave as is).

Click the Save Field Settings button.

Drupal 8 - Media - Video Media Type - Map Source Fields - Video ID Final Settings

5. Add Final Video ID Field Settings

You will be redirected to the Video ID settings Edit tab:

Label field = should be preset with the label name you initially provided.

Help Text field = add some help text, if desired.

Required Field checkbox = will force a user to enter data in this field - not suggested for this field because it will be auto-filled and hidden from the user.

Default Value fieldset

  • Video ID field = unnecessary as this will be autofilled with metadata from the Video Embed Field module

Click the Save Settings button.

Drupal 8 - Media - Video Media Type - Map Source Fields - Completed Video ID Field In List

6. Completed Video ID Field

You will be redirected to the Manage Fields tab and the new Video ID field will display within the list.

Drupal 8 - Media - Video Media Type - Map Source Fields - Click Add Field

7. Add a New Field for the Video Source Machine Name

Click the Add New Field button.

Drupal 8 - Media - Video Media Type - Map Source Fields - Add Video Source Machine Name Field

8. Define the Video Source Machine Name Field

Once on the Add Field screen:

Add a New Field select field = Text (plain).

Re-use an Existing Field select field = leave as is.

Label field = Video Source Machine Name.

Machine-readable Name field = this will auto construct from the Label field - it's suggested that this be overridden to include the same naming convention started with the other field that's present in this media type - media_video_source_m_name. (There is a limit to the number of characters that can be used.)

Click the Save and Continue button.

Drupal 8 - Media - Video Media Type - Map Source Fields - Add Video Source Machine Name Field Initial Settings

9. Add Initial Video Source Machine Name Field Settings

The initial Video Source Machine Name field settings will appear in a Field Settings tab:

Maximum Length select field = 255 (leave as is).

Allowed Number of Values combination field = Limited 1 (leave as is).

Click the Save Field Settings button.

Drupal 8 - Media - Video Media Type - Map Source Fields - Add Video Source Machine Name Field Final Settings

10. Add Final Video Source Machine Name Field Settings

You will be redirected to the Video Source Machine Name settings Edit tab:

Label field = should be preset with the label name you initially provided.

Help Text field = add some help text, if desired.

Required Field checkbox = will force a user to enter data in this field - not suggested for this field because it will be auto-filled and hidden from the user.

Default Value fieldset

  • Video Source Machine Name field = unnecessary as this will be autofilled with metadata from the Video Embed Field module

Click the Save Settings button.

Drupal 8 - Media - Video Media Type - Map Source Fields - Video Source Machine Name Field In List

11. Completed Video Source Machine Name Field

You will be redirected to the Manage Fields tab and the new Video Source Machine Name field will display within the list.

Drupal 8 - Media - Video Media Type - Map Source Fields - Click Add Field

12. Add a New Field for the Local URL

Click the Add New Field button.

Drupal 8 - Media - Video Media Type - Map Source Fields - Add Local URL Field

13. Define the Local URL Field

Once on the Add Field screen:

Add a New Field select field = Text (plain).

Re-use an Existing Field select field = leave as is.

Label field = Local URL.

Machine-readable Name field = this will auto construct from the Label field - it's suggested that this be overridden to include the same naming convention started with the other field that's present in this media type - media_video_local_url.

Click the Save and Continue button.

Drupal 8 - Media - Video Media Type - Map Source Fields - Local URL Field Initial Settings

14. Add Initial Local URL Field Settings

The initial Local URL field settings will appear in a Field Settings tab:

Maximum Length select field = 255 (leave as is).

Allowed Number of Values combination field = Limited 1 (leave as is).

Click the Save Field Settings button.

Drupal 8 - Media - Video Media Type - Map Source Fields - Local URL Field Final Settings

15. Add Final Local URL Field Settings

You will be redirected to the Local URL settings Edit tab:

Label field = should be preset with the label name you initially provided.

Help Text field = add some help text, if desired.

Required Field checkbox = will force a user to enter data in this field - not suggested for this field because it will be auto-filled and hidden from the user.

Default Value fieldset

  • Local URL field = unnecessary as this will be autofilled with metadata from the Video Embed Field module

Click the Save Settings button.

Drupal 8 - Media - Video Media Type - Map Source Fields - Completed Local URL Field In List

16. Completed Local URL Field

You will be redirected to the Manage Fields tab and the new Local URL field will display within the list.

Drupal 8 - Media - Video Media Type - Map Source Fields - Map Remaining Fields

17. Map Remaining Fields

Click on the Edit tab.

Scroll down to the Field Mapping fieldset.

  • Video ID select field = Video ID
  • Video Source Machine Name field = Video Source Machine Name
  • Copies Thumbnail Image to the Local Filesystem and Returns the URI select field = Local URL

Click the Save button.

Drupal 8 - Media - Video Media Type - Map Source Fields - Completed Video Type In List

18. Completed Video Media Type Mapping

You will be redirected back to the Media Types list.

A confirmation message regarding your update will appear at the top.