You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context:
What's trying to be achieved is, when a video is uploaded and added to a collection I want to have a conversion that will generate a timeline preview of the video (many frames stick together like the ones you see on a video editor timeline).
Now, I do have the code capable of generating said timeline preview. The thing is I don't want to have another media record on another collection. The ideal scenario would have it as a conversion. I know Media Library doesn't support this manipulation out of the box.
My question is how can I make it accessible under the generated_conversions?
public function registerMediaCollections(): void
{
$this->addMediaCollection('video')->singleFile();
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everybody.
Context:
What's trying to be achieved is, when a video is uploaded and added to a collection I want to have a conversion that will generate a timeline preview of the video (many frames stick together like the ones you see on a video editor timeline).
Now, I do have the code capable of generating said timeline preview. The thing is I don't want to have another media record on another collection. The ideal scenario would have it as a conversion. I know Media Library doesn't support this manipulation out of the box.
My question is how can I make it accessible under the
generated_conversions
?Is it possible to achieve this? Any example?
Beta Was this translation helpful? Give feedback.
All reactions