comp • • mediacontrol • setwindow

MediaControl.SetWindow (

Sub SetWindow ( Control As Control [ , X As Integer, Y As Integer, Width As Integer, Height As Integer ] )

This methods tells the MediaControl to draw its output inside a specific GUI control.

  • Control : the control where to draw.

  • X, Y, Width, Height : A target rectangle inside the control. If not specified, the entire control surface will be used.

Only controls that implement the GStreamer "X-OVERLAY" interface support that method.

The target control must have its own window.

To ensure that requirement, use a DrawingArea with the Cached property set.