Problem/Motivation
The host entity type and bundle may not be hard-coded as it's currently the case in:
https://git.drupalcode.org/project/vidstack_player/-/blob/1.x/src/Plugin...
Instead the field ($this) needs to be asked for the host entity, I think? Or am I missing something here?
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork vidstack_player-3521009
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
anybodyI guess something like
might be needed?
Comment #3
anybodyComment #4
anybodyI'm also unsure why this hard-coded implementation exists:
but didn't check it deeper, yet. Please do that. Maybe because by FileMediaFormatterBase this is more than just a file formatter... mhm. Anyway, if a custom "myvideo" media type exists with a video field, it should also work, but hard-coding would break it, right?
Anyway through https://api.drupal.org/api/drupal/core%21modules%21file%21src%21Plugin%2... that part might be correct.
Comment #6
grevil commentedAlso, I am a bit unsure, when the Remote Formatter should be applicable:
Especially the "OEmbedInterface" part makes this very restricted to use.
Comment #8
anybody@grevil re #6 LGTM so far... let's keep this for now.
Comment #9
grevil commentedOk, please review then!
Comment #10
anybodyNice!
Comment #11
anybodyComment #13
grevil commented