1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsmediawidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsMediaWidget : QWidget
{
%Docstring(signature="appended")
The :py:class:`QgsMediaWidget` class creates a widget for playing back
audio and video media files.
.. versionadded:: 3.30
%End
%TypeHeaderCode
#include "qgsmediawidget.h"
%End
public:
enum Mode /BaseType=IntEnum/
{
Audio,
Video,
};
explicit QgsMediaWidget( QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor
%End
QString mediaPath() const;
%Docstring
Returns the media path.
%End
void setMediaPath( const QString &path );
%Docstring
Sets the media ``path``.
%End
Mode mode() const;
%Docstring
Returns the media widget mode.
%End
void setMode( Mode mode );
%Docstring
Sets the media widget ``mode``.
%End
int videoHeight() const;
%Docstring
Returns the video frame height.
%End
void setVideoHeight( int height );
%Docstring
Sets the video frame height.
.. note::
setting the height to 0 is interpreted as a video frame that will
expand to fill available height in the widget's parent layout.
%End
QMediaPlayer *mediaPlayer();
%Docstring
Returns the QMediaPlayer object.
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsmediawidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|