QML video player (deprecated) More...
#include <VLCQtQml/QmlVideoPlayer.h>
Signals | |
void | volumeChanged () |
Volume changed signal. | |
void | aspectRatioChanged () |
Aspect ratio changed signal. More... | |
void | cropRatioChanged () |
Crop ratio changed signal. More... | |
void | deinterlacingChanged () |
Deinterlacing changed signal. More... | |
void | stateChanged () |
State changed signal. | |
void | seekableChanged () |
Seekable status changed signal. | |
void | lengthChanged () |
Length changed signal. | |
void | timeChanged () |
Time changed signal. | |
void | positionChanged () |
Position changed signal. | |
void | audioTrackChanged () |
Audio track changed signal. More... | |
void | audioPreferredLanguagesChanged () |
Audio preferred languages changed signal. More... | |
void | subtitleTrackChanged () |
Subtitle track changed signal. More... | |
void | subtitlePreferredLanguagesChanged () |
Subtitle preferred languages changed signal. More... | |
void | videoTrackChanged () |
Video track changed signal. More... | |
Public Member Functions | |
VlcQmlVideoPlayer (QQuickItem *parent=0) | |
VlcQmlVideoPlayer constructor. More... | |
~VlcQmlVideoPlayer () | |
Q_INVOKABLE void | pause () |
Pause current playback. More... | |
Q_INVOKABLE void | play () |
Play current playback. More... | |
Q_INVOKABLE void | stop () |
Stop current playback. More... | |
int | volume () const |
Get current volume. More... | |
void | setVolume (int volume) |
Set volume. More... | |
QString | aspectRatio () const |
Get current aspect ratio. More... | |
void | setAspectRatio (const QString &aspectRatio) |
Set aspect ratio. More... | |
QString | cropRatio () const |
Get current crop ratio. More... | |
void | setCropRatio (const QString &cropRatio) |
Set crop ratio. More... | |
QUrl | url () const |
Get current media URL. More... | |
void | setUrl (const QUrl &url) |
Set media URL. More... | |
bool | autoplay () const |
Get current autoplay setting. More... | |
void | setAutoplay (bool autoplay) |
Set autoplay setting. More... | |
QString | deinterlacing () const |
Get current deinterlacing() mode. More... | |
void | setDeinterlacing (const QString &deinterlacing) |
Set deinterlacing mode. More... | |
int | state () const |
Get current state. More... | |
bool | seekable () const |
Get current seekable status. More... | |
int | length () const |
Get current media length. More... | |
int | time () const |
Get current media time. More... | |
void | setTime (int time) |
Set current media time. More... | |
float | position () const |
Get current media position. More... | |
void | setPosition (float position) |
Set current media position. More... | |
int | audioTrack () const |
Get current audio track. More... | |
void | setAudioTrack (int audioTrack) |
Set current audio track. More... | |
VlcTrackModel * | audioTrackModel () const |
Get audio track model. More... | |
QStringList | audioPreferredLanguages () const |
Get preferred audio languages. More... | |
void | setAudioPreferredLanguages (const QStringList &audioPreferredLanguages) |
Set preferred audio language. More... | |
int | subtitleTrack () const |
Get current subtitle track. More... | |
void | setSubtitleTrack (int subtitleTrack) |
Set current subtitle track. More... | |
VlcTrackModel * | subtitleTrackModel () const |
Get subtitle track model. More... | |
QStringList | subtitlePreferredLanguages () const |
Get preferred subtitle languages. More... | |
void | setSubtitlePreferredLanguages (const QStringList &subtitlePreferredLanguages) |
Set preferred subtitle languages. More... | |
int | videoTrack () const |
Get current video track. More... | |
void | setVideoTrack (int videoTrack) |
Set current video track. More... | |
VlcTrackModel * | videoTrackModel () const |
Get video track model. More... | |
Public Member Functions inherited from VlcQmlVideoObject | |
VlcQmlVideoObject (QQuickItem *parent=0) | |
VlcQmlVideoObject constructor. More... | |
virtual | ~VlcQmlVideoObject () |
void | connectToMediaPlayer (VlcMediaPlayer *player) |
Connect to media player. More... | |
void | disconnectFromMediaPlayer (VlcMediaPlayer *player) |
Disconnect from media player. More... | |
Vlc::Ratio | aspectRatio () const |
Get current aspect ratio. More... | |
void | setAspectRatio (const Vlc::Ratio &aspectRatio) |
Set aspect ratio. More... | |
Vlc::Ratio | cropRatio () const |
Get current crop ratio. More... | |
void | setCropRatio (const Vlc::Ratio &cropRatio) |
Set crop ratio. More... | |
Public Member Functions inherited from VlcVideoMemoryStream | |
void | setCallbacks (VlcMediaPlayer *player) |
Set VlcMediaPlayer callbacks. More... | |
void | unsetCallbacks (VlcMediaPlayer *player) |
Unset VlcMediaPlayer callbacks. More... | |
Static Public Member Functions | |
static void | registerPlugin () |
Register QML plugin as VLCQt.VlcVideoPlayer. More... | |
Static Public Member Functions inherited from VlcVideoMemoryStream | |
static unsigned | setPitchAndLines (const vlc_chroma_description_t *chromaDescription, unsigned width, unsigned height, unsigned *pitches, unsigned *lines, unsigned *visiblePitches=0, unsigned *visibleLines=0) |
Set required information for rendering video. More... | |
Properties | |
int | volume |
Current volume. More... | |
QString | aspectRatio |
Current aspect ratio. More... | |
QString | cropRatio |
Current crop ratio. More... | |
QString | deinterlacing |
Current deinterlacing mode. More... | |
QUrl | url |
Current media URL. More... | |
bool | autoplay |
Current autoplay setting. More... | |
int | state |
Current state. More... | |
bool | seekable |
Current seekable status. More... | |
int | length |
Current media length. More... | |
int | time |
Current media time. More... | |
float | position |
Current media position. More... | |
int | audioTrack |
Current audio track. More... | |
VlcTrackModel | audioTrackModel |
Audio track model. More... | |
QStringList | audioPreferredLanguages |
Current audio preferred languages. More... | |
int | subtitleTrack |
Current subtitle track. More... | |
VlcTrackModel | subtitleTrackModel |
Subtitle track model. More... | |
QStringList | subtitlePreferredLanguages |
Current subtitle preferred languages. More... | |
int | videoTrack |
Current video track. More... | |
VlcTrackModel | videoTrackModel |
Video track model. More... | |
Additional Inherited Members | |
Protected Attributes inherited from VlcQmlVideoObject | |
VlcMediaPlayer * | _player |
Core media player. | |
QML video player (deprecated)
A simple QML video player that can be used standalone and directly inside QML.
|
explicit |
VlcQmlVideoPlayer constructor.
parent | parent item (QQuickItem *) |
VlcQmlVideoPlayer::~VlcQmlVideoPlayer | ( | ) |
VlcMediaPlayer destructor
QString VlcQmlVideoPlayer::aspectRatio | ( | ) | const |
Get current aspect ratio.
Used as property in QML.
|
signal |
Aspect ratio changed signal.
QStringList VlcQmlVideoPlayer::audioPreferredLanguages | ( | ) | const |
Get preferred audio languages.
Used as property in QML.
|
signal |
Audio preferred languages changed signal.
int VlcQmlVideoPlayer::audioTrack | ( | ) | const |
Get current audio track.
Used as property in QML.
|
signal |
Audio track changed signal.
VlcTrackModel* VlcQmlVideoPlayer::audioTrackModel | ( | ) | const |
Get audio track model.
Used as property in QML.
bool VlcQmlVideoPlayer::autoplay | ( | ) | const |
Get current autoplay setting.
Used as property in QML.
QString VlcQmlVideoPlayer::cropRatio | ( | ) | const |
Get current crop ratio.
Used as property in QML.
|
signal |
Crop ratio changed signal.
QString VlcQmlVideoPlayer::deinterlacing | ( | ) | const |
|
signal |
Deinterlacing changed signal.
int VlcQmlVideoPlayer::length | ( | ) | const |
Get current media length.
Used as property in QML.
void VlcQmlVideoPlayer::pause | ( | ) |
Pause current playback.
Invokable from QML.
void VlcQmlVideoPlayer::play | ( | ) |
Play current playback.
Invokable from QML.
float VlcQmlVideoPlayer::position | ( | ) | const |
Get current media position.
Used as property in QML.
|
static |
Register QML plugin as VLCQt.VlcVideoPlayer.
Include into QML file as import VLCQt VERSION_MAJOR.VERSION_MINOR
Object name: VlcVideoPlayer
bool VlcQmlVideoPlayer::seekable | ( | ) | const |
Get current seekable status.
Used as property in QML.
void VlcQmlVideoPlayer::setAspectRatio | ( | const QString & | aspectRatio | ) |
Set aspect ratio.
aspectRatio | new aspect ratio |
Used as property in QML.
void VlcQmlVideoPlayer::setAudioPreferredLanguages | ( | const QStringList & | audioPreferredLanguages | ) |
Set preferred audio language.
audioPreferredLanguages | preferred languages |
Used as property in QML.
void VlcQmlVideoPlayer::setAudioTrack | ( | int | audioTrack | ) |
Set current audio track.
audioTrack | new audio track (int) |
Used as property in QML.
void VlcQmlVideoPlayer::setAutoplay | ( | bool | autoplay | ) |
Set autoplay setting.
autoplay | new autoplay setting |
Used as property in QML.
void VlcQmlVideoPlayer::setCropRatio | ( | const QString & | cropRatio | ) |
Set crop ratio.
cropRatio | new crop ratio |
Used as property in QML.
void VlcQmlVideoPlayer::setDeinterlacing | ( | const QString & | deinterlacing | ) |
Set deinterlacing mode.
deinterlacing | new deinterlacing mode |
Used as property in QML.
void VlcQmlVideoPlayer::setPosition | ( | float | position | ) |
Set current media position.
position | media position from 0 to 1 |
Used as property in QML.
void VlcQmlVideoPlayer::setSubtitlePreferredLanguages | ( | const QStringList & | subtitlePreferredLanguages | ) |
Set preferred subtitle languages.
subtitlePreferredLanguages | preferred languages, empty if disabled |
Used as property in QML.
void VlcQmlVideoPlayer::setSubtitleTrack | ( | int | subtitleTrack | ) |
Set current subtitle track.
subtitleTrack | new subtitle track (int) |
Used as property in QML.
void VlcQmlVideoPlayer::setTime | ( | int | time | ) |
Set current media time.
time | current media time |
Used as property in QML.
void VlcQmlVideoPlayer::setUrl | ( | const QUrl & | url | ) |
Set media URL.
url | new media URL |
Used as property in QML.
void VlcQmlVideoPlayer::setVideoTrack | ( | int | videoTrack | ) |
Set current video track.
videoTrack | new video track (int) |
Used as property in QML.
void VlcQmlVideoPlayer::setVolume | ( | int | volume | ) |
Set volume.
volume | new volume |
Used as property in QML.
int VlcQmlVideoPlayer::state | ( | ) | const |
Get current state.
Used as property in QML.
void VlcQmlVideoPlayer::stop | ( | ) |
Stop current playback.
Invokable from QML.
QStringList VlcQmlVideoPlayer::subtitlePreferredLanguages | ( | ) | const |
Get preferred subtitle languages.
Used as property in QML.
|
signal |
Subtitle preferred languages changed signal.
int VlcQmlVideoPlayer::subtitleTrack | ( | ) | const |
Get current subtitle track.
Used as property in QML.
|
signal |
Subtitle track changed signal.
VlcTrackModel* VlcQmlVideoPlayer::subtitleTrackModel | ( | ) | const |
Get subtitle track model.
Used as property in QML.
int VlcQmlVideoPlayer::time | ( | ) | const |
Get current media time.
Used as property in QML.
QUrl VlcQmlVideoPlayer::url | ( | ) | const |
Get current media URL.
Used as property in QML.
int VlcQmlVideoPlayer::videoTrack | ( | ) | const |
Get current video track.
Used as property in QML.
|
signal |
Video track changed signal.
VlcTrackModel* VlcQmlVideoPlayer::videoTrackModel | ( | ) | const |
Get video track model.
Used as property in QML.
int VlcQmlVideoPlayer::volume | ( | ) | const |
Get current volume.
Used as property in QML.
|
readwrite |
Current aspect ratio.
|
readwrite |
Current audio preferred languages.
|
readwrite |
|
read |
|
readwrite |
Current autoplay setting.
|
readwrite |
Current crop ratio.
|
readwrite |
Current deinterlacing mode.
|
read |
Current media length.
|
readwrite |
Current media position.
|
read |
Current seekable status.
|
read |
Current state.
|
readwrite |
Current subtitle preferred languages.
|
readwrite |
|
read |
|
readwrite |
Current media time.
|
readwrite |
Current media URL.
|
readwrite |
|
read |
|
readwrite |
Current volume.