My solution uploads a video to Kaltura API, gets the new media’s entryId, and then sits and polls for completed creation of media assets (media duration, thumbnail, etc) by calling
$kaltura_client->getThumbAssetService()->getByEntryId($entry_id); until the response is neither
NULL nor throws
This was working just fine for the past week, but this week it fell apart: The thumb asset is usually eventually processed, but sometimes only after several minutes after initial upload. Sometimes, for the very same video assets, it seems it never gets processed at all (note: I’ve not made such a study that I have tried coming back to the same entryId hours later). I am working with a very small test video ~1MB in size, ~15 secongs in duration.
- Is there an implied assumption that thumb/assets will be generated within some timeframe?
- Is there maybe some throttle per-account if I am rapidly sending many videos up?
I am just looking for consistency and am not seeing what in my local codebase might possibly have changed to bring about this observations
Context: My solution requires a thumbnail asset to already be attached to a newly uploaded Kaltura video before it can continue. It’s in Drupal 8 using Kaltura for Media in core which automatically processes the media thumbnail computed property.