VlcQmlVideoObject Class Reference

QML video object. More...

#include <VLCQtQml/QmlVideoObject.h>

Public Member Functions

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

Protected Attributes

VlcMediaPlayer_player
 Core media player.
 

Additional Inherited Members

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

Detailed Description

A basic QML video object for painting video. It acts as a replacement for video widget.

Constructor & Destructor Documentation

VlcQmlVideoObject::VlcQmlVideoObject ( QQuickItem *  parent = 0)
explicit
Parameters
parentparent item
VlcQmlVideoObject::~VlcQmlVideoObject ( )
virtual

VlcMediaPlayer destructor

Member Function Documentation

Vlc::Ratio VlcQmlVideoObject::aspectRatio ( ) const
Returns
aspect ratio
void VlcQmlVideoObject::connectToMediaPlayer ( VlcMediaPlayer player)
Parameters
playermedia player
Vlc::Ratio VlcQmlVideoObject::cropRatio ( ) const
Returns
crop ratio
void VlcQmlVideoObject::disconnectFromMediaPlayer ( VlcMediaPlayer player)
Parameters
playermedia player
void VlcQmlVideoObject::setAspectRatio ( const Vlc::Ratio aspectRatio)
Parameters
aspectRationew aspect ratio
void VlcQmlVideoObject::setCropRatio ( const Vlc::Ratio cropRatio)
Parameters
cropRationew crop ratio

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