//clika-runtime/io.clika.modelverse/VideoGenerationListener
VideoGenerationListener
[common]
interface VideoGenerationListener
The calls a video-generation request makes on the model's worker thread, in order: onVideo once with the clip and the seed the model drew, then onDone; or onError alone when the request fails.
Functions
| Name | Summary |
|---|---|
| onDone | [common] abstract fun onDone(report: VideoGenerationReport) The request ended: its facts. A canceled request ends here with VideoGenerationReport.canceled true. |
| onError | [common] abstract fun onError(message: String) The request failed; the model's message. The request is over. |
| onVideo | [common] abstract fun onVideo(video: GeneratedVideo) The clip: its frames, its rate, the seed it was drawn from, and its sound where the family answers one. |