VlcQmlVideoPlayer Class Reference

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...
 
VlcTrackModelaudioTrackModel () 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...
 
VlcTrackModelsubtitleTrackModel () 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...
 
VlcTrackModelvideoTrackModel () 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.
 

Detailed Description

QML video player (deprecated)

A simple QML video player that can be used standalone and directly inside QML.

Deprecated:
Deprecated since VLC-Qt 1.1, will be removed in 2.0

Constructor & Destructor Documentation

VlcQmlVideoPlayer::VlcQmlVideoPlayer ( QQuickItem *  parent = 0)
explicit

VlcQmlVideoPlayer constructor.

Parameters
parentparent item (QQuickItem *)
VlcQmlVideoPlayer::~VlcQmlVideoPlayer ( )

VlcMediaPlayer destructor

Member Function Documentation

QString VlcQmlVideoPlayer::aspectRatio ( ) const

Get current aspect ratio.

Returns
current aspect ratio

Used as property in QML.

void VlcQmlVideoPlayer::aspectRatioChanged ( )
signal

Aspect ratio changed signal.

Since
VLC-Qt 1.1
QStringList VlcQmlVideoPlayer::audioPreferredLanguages ( ) const

Get preferred audio languages.

Returns
preferred languages

Used as property in QML.

Since
VLC-Qt 1.1
void VlcQmlVideoPlayer::audioPreferredLanguagesChanged ( )
signal

Audio preferred languages changed signal.

Since
VLC-Qt 1.1
int VlcQmlVideoPlayer::audioTrack ( ) const

Get current audio track.

Returns
the id of current audio track, or -1 if none (const int)

Used as property in QML.

Since
VLC-Qt 1.1
void VlcQmlVideoPlayer::audioTrackChanged ( )
signal

Audio track changed signal.

Since
VLC-Qt 1.1
VlcTrackModel* VlcQmlVideoPlayer::audioTrackModel ( ) const

Get audio track model.

Returns
audio track model poiner

Used as property in QML.

Since
VLC-Qt 1.1
bool VlcQmlVideoPlayer::autoplay ( ) const

Get current autoplay setting.

Returns
current autoplay setting

Used as property in QML.

QString VlcQmlVideoPlayer::cropRatio ( ) const

Get current crop ratio.

Returns
current crop ratio

Used as property in QML.

void VlcQmlVideoPlayer::cropRatioChanged ( )
signal

Crop ratio changed signal.

Since
VLC-Qt 1.1
QString VlcQmlVideoPlayer::deinterlacing ( ) const

Get current deinterlacing() mode.

Returns
current deinterlacing mode

Used as property in QML.

void VlcQmlVideoPlayer::deinterlacingChanged ( )
signal

Deinterlacing changed signal.

Since
VLC-Qt 1.1
int VlcQmlVideoPlayer::length ( ) const

Get current media length.

Returns
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.

Returns
current media position from 0 to 1

Used as property in QML.

void VlcQmlVideoPlayer::registerPlugin ( )
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.

Returns
current seekable status

Used as property in QML.

void VlcQmlVideoPlayer::setAspectRatio ( const QString &  aspectRatio)

Set aspect ratio.

Parameters
aspectRationew aspect ratio

Used as property in QML.

void VlcQmlVideoPlayer::setAudioPreferredLanguages ( const QStringList &  audioPreferredLanguages)

Set preferred audio language.

Parameters
audioPreferredLanguagespreferred languages

Used as property in QML.

Since
VLC-Qt 1.1
void VlcQmlVideoPlayer::setAudioTrack ( int  audioTrack)

Set current audio track.

Parameters
audioTracknew audio track (int)

Used as property in QML.

Since
VLC-Qt 1.1
void VlcQmlVideoPlayer::setAutoplay ( bool  autoplay)

Set autoplay setting.

Parameters
autoplaynew autoplay setting

Used as property in QML.

void VlcQmlVideoPlayer::setCropRatio ( const QString &  cropRatio)

Set crop ratio.

Parameters
cropRationew crop ratio

Used as property in QML.

void VlcQmlVideoPlayer::setDeinterlacing ( const QString &  deinterlacing)

Set deinterlacing mode.

Parameters
deinterlacingnew deinterlacing mode

Used as property in QML.

void VlcQmlVideoPlayer::setPosition ( float  position)

Set current media position.

Parameters
positionmedia position from 0 to 1

Used as property in QML.

void VlcQmlVideoPlayer::setSubtitlePreferredLanguages ( const QStringList &  subtitlePreferredLanguages)

Set preferred subtitle languages.

Parameters
subtitlePreferredLanguagespreferred languages, empty if disabled

Used as property in QML.

Since
VLC-Qt 1.1
void VlcQmlVideoPlayer::setSubtitleTrack ( int  subtitleTrack)

Set current subtitle track.

Parameters
subtitleTracknew subtitle track (int)

Used as property in QML.

Since
VLC-Qt 1.1
void VlcQmlVideoPlayer::setTime ( int  time)

Set current media time.

Parameters
timecurrent media time

Used as property in QML.

void VlcQmlVideoPlayer::setUrl ( const QUrl &  url)

Set media URL.

Parameters
urlnew media URL

Used as property in QML.

void VlcQmlVideoPlayer::setVideoTrack ( int  videoTrack)

Set current video track.

Parameters
videoTracknew video track (int)

Used as property in QML.

Since
VLC-Qt 1.1
void VlcQmlVideoPlayer::setVolume ( int  volume)

Set volume.

Parameters
volumenew volume

Used as property in QML.

int VlcQmlVideoPlayer::state ( ) const

Get current state.

Returns
current state

Used as property in QML.

void VlcQmlVideoPlayer::stop ( )

Stop current playback.

Invokable from QML.

QStringList VlcQmlVideoPlayer::subtitlePreferredLanguages ( ) const

Get preferred subtitle languages.

Returns
preferred languages

Used as property in QML.

Since
VLC-Qt 1.1
void VlcQmlVideoPlayer::subtitlePreferredLanguagesChanged ( )
signal

Subtitle preferred languages changed signal.

Since
VLC-Qt 1.1
int VlcQmlVideoPlayer::subtitleTrack ( ) const

Get current subtitle track.

Returns
the id of current subtitle track, or -1 if none (const int)

Used as property in QML.

Since
VLC-Qt 1.1
void VlcQmlVideoPlayer::subtitleTrackChanged ( )
signal

Subtitle track changed signal.

Since
VLC-Qt 1.1
VlcTrackModel* VlcQmlVideoPlayer::subtitleTrackModel ( ) const

Get subtitle track model.

Returns
subtitle track model poiner

Used as property in QML.

Since
VLC-Qt 1.1
int VlcQmlVideoPlayer::time ( ) const

Get current media time.

Returns
current media time

Used as property in QML.

QUrl VlcQmlVideoPlayer::url ( ) const

Get current media URL.

Returns
current media URL

Used as property in QML.

int VlcQmlVideoPlayer::videoTrack ( ) const

Get current video track.

Returns
the id of current video track, or -1 if none (const int)

Used as property in QML.

Since
VLC-Qt 1.1
void VlcQmlVideoPlayer::videoTrackChanged ( )
signal

Video track changed signal.

Since
VLC-Qt 1.1
VlcTrackModel* VlcQmlVideoPlayer::videoTrackModel ( ) const

Get video track model.

Returns
video track model poiner

Used as property in QML.

Since
VLC-Qt 1.1
int VlcQmlVideoPlayer::volume ( ) const

Get current volume.

Returns
current volume (int)

Used as property in QML.

Property Documentation

QString VlcQmlVideoPlayer::aspectRatio
readwrite

Current aspect ratio.

See also
setAspectRatio
aspectRatioChanged
QStringList VlcQmlVideoPlayer::audioPreferredLanguages
readwrite

Current audio preferred languages.

See also
audioPreferredLanguages
setAudioPreferredLanguages
audioPreferredLanguagesChanged
Since
VLC-Qt 1.1
int VlcQmlVideoPlayer::audioTrack
readwrite

Current audio track.

See also
audioTrack
setAudioTrack
audioTrackChanged
Since
VLC-Qt 1.1
VlcTrackModel * VlcQmlVideoPlayer::audioTrackModel
read

Audio track model.

See also
audioTrackModel
Since
VLC-Qt 1.1
bool VlcQmlVideoPlayer::autoplay
readwrite

Current autoplay setting.

See also
setAutoplay
QString VlcQmlVideoPlayer::cropRatio
readwrite

Current crop ratio.

See also
setCropRatio
cropRatioChanged
QString VlcQmlVideoPlayer::deinterlacing
readwrite

Current deinterlacing mode.

See also
setDeinterlacing
deinterlacingChanged
int VlcQmlVideoPlayer::length
read

Current media length.

See also
length
lengthChanged
float VlcQmlVideoPlayer::position
readwrite

Current media position.

See also
position
positionChanged
bool VlcQmlVideoPlayer::seekable
read

Current seekable status.

See also
seekableChanged
int VlcQmlVideoPlayer::state
read

Current state.

See also
stateChanged
QStringList VlcQmlVideoPlayer::subtitlePreferredLanguages
readwrite

Current subtitle preferred languages.

See also
subtitlePreferredLanguages
setSubtitlePreferredLanguages
subtitlePreferredLanguagesChanged
Since
VLC-Qt 1.1
int VlcQmlVideoPlayer::subtitleTrack
readwrite

Current subtitle track.

See also
subtitleTrack
setSubtitleTrack
subtitleTrackChanged
Since
VLC-Qt 1.1
VlcTrackModel * VlcQmlVideoPlayer::subtitleTrackModel
read

Subtitle track model.

See also
subtitleTrackModel
Since
VLC-Qt 1.1
int VlcQmlVideoPlayer::time
readwrite

Current media time.

See also
time
timeChanged
QUrl VlcQmlVideoPlayer::url
readwrite

Current media URL.

See also
setUrl
int VlcQmlVideoPlayer::videoTrack
readwrite

Current video track.

See also
videoTrack
setVideoTrack
videoTrackChanged
Since
VLC-Qt 1.1
VlcTrackModel * VlcQmlVideoPlayer::videoTrackModel
read

Video track model.

See also
videoTrackModel
Since
VLC-Qt 1.1
int VlcQmlVideoPlayer::volume
readwrite

Current volume.

See also
setVolume
volumeChanged

The documentation for this class was generated from the following files: