New MediaControl (gb.media)
Create a new
MediaControl.
-
Parent: An optional container for the new control.
-
Type: The type of GStreamer plugin implemented by this MediaControl. It must be specified.
Here is the list of
all current GStreamer plugins.
Caps filters
Поскольку 3.6
The
Type now can use the same caps filter syntax used by 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"