Problem/Motivation
When there are no overrides, media_youtube_file_formatter_video_view() takes video dimensions from global defaults, ignoring default video dimensions provided by oEmbed code.
Proposed resolution
- Store default video dimensions in file metadata
- Use per-file default video dimension instead of global defaults when viewing a video
Remaining tasks
https://www.drupal.org/project/media_youtube/issues/2932942
Submit a patch
User interface changes
Video dimensions match defaults provided by YouTube
API changes
No API changes
Data model changes
No data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2921208.patch | 1.63 KB | valthebald |
Comments
Comment #2
valthebaldComment #3
valthebaldComment #5
joseph.olstadLooks great, thanks!
Comment #7
joseph.olstadthis commit caused a regression, reverting it and cutting a new release without this commit.
here is the reported regression:
https://www.drupal.org/project/media_youtube/issues/2932942