Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QMediaVideoControl class is an interface to videos playing through the Qt Extended Media System. More...
#include <QMediaVideoControl>
Inherits QObject.
The QMediaVideoControl class is an interface to videos playing through the Qt Extended Media System.
If a prepared media resource has associated video content, when that content is available to be played, this inteface can be used to contruct a QWidget which will contain the rendering of the video content.
Use the QMediaControlNotifier class to listen for when video content is available.
QMediaControlNotifier *notifier = new QMediaControlNotifier( QMediaVideoControl::name() ); connect( notifier, SIGNAL(valid()), this, SLOT(showVideo()) ); QMediaContent *content = new QMediaContent( "video.3gp" ); notifier->setMediaContent( content );
If video content is available createVideoWidget() can be used to construct a new video widget for the media content.
QMediaVideoControl control( content ); QWidget *video = control.createVideoWidget(); videolayout->addWidget( video );
Simply delete video widgets when they are no longer needed or when the video control becomes invalid.
See also QMediaContent and QMediaControlNotifier.
Create a QMediaVideoControl with the handle to a prepared media resource
The QMediaControl needs to be constructed with mediaContent that represents the video to be played.
Destroy a QMediaVideoControl
Create a QWidget that displays the rendered video content.
This function is used to create a QWidget that will display the video content, it is parented to the widget passed in with the parent parameter. This widget can be deleted when the application is finished with it.
Signal that is emitted when the control is invalid and no longer available for use.
Return the name of this control.
Set video image rotation mode.
See also QtopiaVideo::VideoRotation.
Set the video using scaleMode to be scaled to fit the window size ( QtopiaVideo::FitWindow ) or stay unchanged ( QtopiaMedia::NoScale ).
See also QtopiaVideo::VideoScaleMode.
Signal that is emitted when the control is valid and available for use.
This signal is emitted when there is a video available to be viewed. The client can call createVideoWidget() at this time.
See also createVideoWidget().
This signal is emitted when there is no longer video available to be viewed. The client should delete any QWidget obtained from createVideoWidget()
See also createVideoWidget().
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |