comp • • mediacontrol • _new

New MediaControl (

Dim hMediaControl As MediaControl
hMediaControl = New MediaControl ( [ Parent As MediaContainer, Type As String ] ) As "event name"

Create a new MediaControl.

  • Parent is an optional container for the new control.

  • Type is the type of GStreamer plugin implemented by this MediaControl.

Here is the list of all current GStreamer plugins.

Caps filters

Since 3.6

The Type now can use the caps filter syntax, as the gst-launch program. For example:

hFilter = New MediaControl(hParent, "audio/x-raw,channels=2,rate=48000")

This is a strict equivalent of:

hFilter = New MediaControl(hParent, "capsfilter")
hFilter["caps"] = "audio/x-raw,channels=2,rate=48000"