Drupal's core media module is an exceptional tool for media management and embedding within a Drupal site. With minimal configuration, it enables efficient management of various media types, making it an ideal choice. However, it is worth mentioning that there are few feature requests in the issue queue that have remained unresolved for a significant period of time.
When I was working on a site that extensively utilized remote media, I found myself in need of one of those pending features.
Here is that request https://www.drupal.org/project/drupal/issues/2983456
Although I attempted to use the available patches, they only provided a partial resolution to my specific requirement and did not fully meet my needs.
It is possible that the patches have been updated and are now fully functional, but I am not aware of their current status.
However, at the time when I needed the feature, I chose to develop it myself, focusing on keeping it simple and minimal.
As part of our requirements, we need to implement a trigger mechanism, specifically an entity operation, that will update the video thumbnail in our system whenever it is updated on the source platforms such as YouTube or Vimeo.
Implementation
Step 1:- Declare and define the controller.
File- my_module.routing.yml
File- RefreshThumbnailController.php
Step 2:- Adding entity operation.
File- my_module.module