The QVideoWindowControl class provides a media control for rendering video to a window. More...
#include <QVideoWindowControl>
Inherits: QMediaControl.
This class was introduced in Qt Mobility 1.0.
~QVideoWindowControl () | |
virtual Qt::AspectRatioMode | aspectRatioMode () const = 0 |
virtual int | brightness () const = 0 |
virtual int | contrast () const = 0 |
virtual QRect | displayRect () const = 0 |
virtual int | hue () const = 0 |
virtual bool | isFullScreen () const = 0 |
virtual QSize | nativeSize () const = 0 |
virtual void | repaint () = 0 |
virtual int | saturation () const = 0 |
virtual void | setAspectRatioMode ( Qt::AspectRatioMode mode ) = 0 |
virtual void | setBrightness ( int brightness ) = 0 |
virtual void | setContrast ( int contrast ) = 0 |
virtual void | setDisplayRect ( const QRect & rect ) = 0 |
virtual void | setFullScreen ( bool fullScreen ) = 0 |
virtual void | setHue ( int hue ) = 0 |
virtual void | setSaturation ( int saturation ) = 0 |
virtual void | setWinId ( WId id ) = 0 |
virtual WId | winId () const = 0 |
void | brightnessChanged ( int brightness ) |
void | contrastChanged ( int contrast ) |
void | fullScreenChanged ( bool fullScreen ) |
void | hueChanged ( int hue ) |
void | nativeSizeChanged () |
void | saturationChanged ( int saturation ) |
QVideoWindowControl ( QObject * parent = 0 ) |
QVideoWindowControl_iid |
The QVideoWindowControl class provides a media control for rendering video to a window.
The winId() property QVideoWindowControl allows a platform specific window ID to be set as the video render target of a QMediaService. The displayRect() property is used to set the region of the window the video should be rendered to, and the aspectRatioMode() property indicates how the video should be scaled to fit the displayRect().
QVideoWindowControl *windowControl = mediaService->requestControl<QVideoWindowControl *>(); windowControl->setWinId(widget->winId()); windowControl->setDisplayRect(widget->rect()); windowControl->setAspectRatioMode(Qt::KeepAspectRatio);
QVideoWindowControl is one of a number of possible video output controls.
The interface name of QVideoWindowControl is com.nokia.Qt.QVideoWindowControl/1.0 as defined in QVideoWindowControl_iid.
See also QMediaService::requestControl() and QVideoWidget.
Constructs a new video window control with the given parent.
Destroys a video window control.
Returns how video is scaled to fit the display region with respect to its aspect ratio.
This function was introduced in Qt Mobility 1.0.
See also setAspectRatioMode().
Returns the brightness adjustment applied to a video overlay.
Valid brightness values range between -100 and 100, the default is 0.
This function was introduced in Qt Mobility 1.0.
See also setBrightness().
Signals that a video overlay's brightness adjustment has changed.
This function was introduced in Qt Mobility 1.0.
Returns the contrast adjustment applied to a video overlay.
Valid contrast values range between -100 and 100, the default is 0.
This function was introduced in Qt Mobility 1.0.
See also setContrast().
Signals that a video overlay's contrast adjustment has changed.
This function was introduced in Qt Mobility 1.0.
Returns the sub-rect of a window where video is displayed.
This function was introduced in Qt Mobility 1.0.
See also setDisplayRect().
Signals that the fullScreen state of a video overlay has changed.
This function was introduced in Qt Mobility 1.0.
Returns the hue adjustment applied to a video overlay.
Value hue values range between -100 and 100, the default is 0.
This function was introduced in Qt Mobility 1.0.
See also setHue().
Signals that a video overlay's hue adjustment has changed.
This function was introduced in Qt Mobility 1.0.
Identifies if a video overlay is a fullScreen overlay.
Returns true if the video overlay is fullScreen, and false otherwise.
This function was introduced in Qt Mobility 1.0.
Returns a suggested size for the video display based on the resolution and aspect ratio of the video.
This function was introduced in Qt Mobility 1.0.
Signals that the native dimensions of the video have changed.
This function was introduced in Qt Mobility 1.0.
Repaints the last frame.
This function was introduced in Qt Mobility 1.0.
Returns the saturation adjustment applied to a video overlay.
Value saturation values range between -100 and 100, the default is 0.
This function was introduced in Qt Mobility 1.0.
See also setSaturation().
Signals that a video overlay's saturation adjustment has changed.
This function was introduced in Qt Mobility 1.0.
Sets the aspect ratio mode which determines how video is scaled to the fit the display region with respect to its aspect ratio.
This function was introduced in Qt Mobility 1.0.
See also aspectRatioMode().
Sets a brightness adjustment for a video overlay.
Valid brightness values range between -100 and 100, the default is 0.
This function was introduced in Qt Mobility 1.0.
See also brightness().
Sets the contrast adjustment for a video overlay.
Valid contrast values range between -100 and 100, the default is 0.
This function was introduced in Qt Mobility 1.0.
See also contrast().
Sets the sub-rect of a window where video is displayed.
This function was introduced in Qt Mobility 1.0.
See also displayRect().
Sets whether a video overlay is a fullScreen overlay.
This function was introduced in Qt Mobility 1.0.
See also isFullScreen().
Sets a hue adjustment for a video overlay.
Valid hue values range between -100 and 100, the default is 0.
This function was introduced in Qt Mobility 1.0.
See also hue().
Sets a saturation adjustment for a video overlay.
Valid saturation values range between -100 and 100, the default is 0.
This function was introduced in Qt Mobility 1.0.
See also saturation().
Sets the id of the window a video overlay end point renders to.
This function was introduced in Qt Mobility 1.0.
See also winId().
Returns the ID of the window a video overlay end point renders to.
This function was introduced in Qt Mobility 1.0.
See also setWinId().
com.nokia.Qt.QVideoWindowControl/1.0
Defines the interface name of the QVideoWindowControl class.