QVideoWidgetControl

The QVideoWidgetControl class provides a media control which implements a video widget. More

Inheritance diagram of PySide2.QtMultimediaWidgets.QVideoWidgetControl

Detailed Description

The videoWidget() property of QVideoWidgetControl provides a pointer to a video widget implemented by the control’s media service. This widget is owned by the media service and so care should be taken not to delete it.

QVideoWidgetControl *widgetControl = mediaService->requestControl<QVideoWidgetControl *>();
layout->addWidget(widgetControl->videoWidget());

QVideoWidgetControl is one of number of possible video output controls.

The interface name of QVideoWidgetControl is org.qt-project.qt.videowidgetcontrol/5.0 as defined in QVideoWidgetControl_iid .

See also

requestControl() QVideoWidget

class PySide2.QtMultimediaWidgets.QVideoWidgetControl([parent=None])
param parent:

PySide2.QtCore.QObject

Constructs a new video widget control with the given parent .

PySide2.QtMultimediaWidgets.QVideoWidgetControl.aspectRatioMode()
Return type:

AspectRatioMode

Returns how video is scaled to fit the widget with respect to its aspect ratio.

PySide2.QtMultimediaWidgets.QVideoWidgetControl.brightness()
Return type:

int

Returns the brightness adjustment applied to a video.

Valid brightness values range between -100 and 100, the default is 0.

See also

setBrightness()

PySide2.QtMultimediaWidgets.QVideoWidgetControl.brightnessChanged(brightness)
Parameters:

brightness – int

PySide2.QtMultimediaWidgets.QVideoWidgetControl.contrast()
Return type:

int

Returns the contrast adjustment applied to a video.

Valid contrast values range between -100 and 100, the default is 0.

See also

setContrast()

PySide2.QtMultimediaWidgets.QVideoWidgetControl.contrastChanged(contrast)
Parameters:

contrast – int

PySide2.QtMultimediaWidgets.QVideoWidgetControl.fullScreenChanged(fullScreen)
Parameters:

fullScreen – bool

PySide2.QtMultimediaWidgets.QVideoWidgetControl.hue()
Return type:

int

Returns the hue adjustment applied to a video widget.

Value hue values range between -100 and 100, the default is 0.

See also

setHue()

PySide2.QtMultimediaWidgets.QVideoWidgetControl.hueChanged(hue)
Parameters:

hue – int

PySide2.QtMultimediaWidgets.QVideoWidgetControl.isFullScreen()
Return type:

bool

Returns true if the video is shown using the complete screen.

PySide2.QtMultimediaWidgets.QVideoWidgetControl.saturation()
Return type:

int

Returns the saturation adjustment applied to a video widget.

Value saturation values range between -100 and 100, the default is 0.

See also

setSaturation()

PySide2.QtMultimediaWidgets.QVideoWidgetControl.saturationChanged(saturation)
Parameters:

saturation – int

PySide2.QtMultimediaWidgets.QVideoWidgetControl.setAspectRatioMode(mode)
Parameters:

modeAspectRatioMode

Sets the aspect ratio mode which determines how video is scaled to the fit the widget with respect to its aspect ratio.

PySide2.QtMultimediaWidgets.QVideoWidgetControl.setBrightness(brightness)
Parameters:

brightness – int

Sets a brightness adjustment for a video.

Valid brightness values range between -100 and 100, the default is 0.

See also

brightness()

PySide2.QtMultimediaWidgets.QVideoWidgetControl.setContrast(contrast)
Parameters:

contrast – int

Sets the contrast adjustment for a video widget to contrast .

Valid contrast values range between -100 and 100, the default is 0.

See also

contrast()

PySide2.QtMultimediaWidgets.QVideoWidgetControl.setFullScreen(fullScreen)
Parameters:

fullScreen – bool

Sets whether a video widget is in fullScreen mode.

See also

isFullScreen()

PySide2.QtMultimediaWidgets.QVideoWidgetControl.setHue(hue)
Parameters:

hue – int

Sets a hue adjustment for a video widget.

Valid hue values range between -100 and 100, the default is 0.

See also

hue()

PySide2.QtMultimediaWidgets.QVideoWidgetControl.setSaturation(saturation)
Parameters:

saturation – int

Sets a saturation adjustment for a video widget.

Valid saturation values range between -100 and 100, the default is 0.

See also

saturation()

PySide2.QtMultimediaWidgets.QVideoWidgetControl.videoWidget()
Return type:

PySide2.QtWidgets.QWidget

Returns the QWidget .