attachRendererAndAwait

suspend fun attachRendererAndAwait(renderer: VideoRenderer)

attachRenderer, returning once the engine has attached renderer or refused it.

The engine refuses a renderer that cannot show the frames of the running video decoder, when that decoder declares them (VideoDecoder.output and VideoRenderer.accepts). The renderer attached before then stays, and PlaybackWarning.CommandRefused says so as well.

Throws