Gambas Documentation
Documents

MediaControl.LinkLaterTo (gb.media)

Sub LinkLaterTo ( Target As MediaControl )

Link the current control to the Target control as soon as a new output appears on it.

Some controls have outputs that can appear on the fly, i.e. when the data arrives. In that case, the LinkTo method fails, as the output does not exist when you call it. So you have to use LinkLaterTo.

Since 3.18.2

This method is not reliable up to Gambas 3.18. It has been fixed in Gambas 3.18.2.

Now that method can be called multiple times: as soon as a control output is available, all targets are checked against the new output, following the order of the LinkLaterTo() calls. Only when a target can be linked to the output, the next destination will be tried.