setFrameSink

Hands decoded frames to your own renderer instead of drawing them in this view.

Call it before addTrack; a track that is already attached keeps feeding the previous sink until the next removeTrack / addTrack.

Only some sources reach a sink; see FrameSink for which.

Parameters

sink

receives the frames instead of this view.