Skip to content
Snippets Groups Projects

MediaLibrary: Add thumbnail generation API

Merged Romain Vimont requested to merge rom1v/medialibrary:thumbnail_from_media_id into master
  1. Jan 06, 2021
    • Romain Vimont's avatar
      MediaLibrary: Add thumbnail generation API · 1695d462
      Romain Vimont authored
      Add an API to request asynchronous thumbnail generation from a media id.
      
      The existing API (IMedia::requestThumbnail()) needs a Media instance.
      If the client only knows the media id, it must execute a SQL query to
      retrieve a Media, so for an UI client, this defeated the purpose of an
      asynchronous API.
      
      This new API resolves the media id from the worker thread.
      1695d462
Loading