VLC-Qt 0.8.0- (Different version)
Public Slots | Signals | Public Member Functions
VlcMediaPlayer Class Reference

Media Player. More...

#include <vlc-qt/MediaPlayer.h>

List of all members.

Public Slots

void play ()
 Starts playing current media if possible.
void pause ()
 Pauses the playback of current media if possible.
void togglePause ()
 Toggles pause of the playback of current media if possible.
void resume ()
 Resumes the playback of current media if possible.
void stop ()
 Stops playing current media.

Signals

void backward ()
 Signal sent on backward.
void buffering (const float &)
 Signal sent on buffering.
void end ()
 Signal sent when end reached.
void error ()
 Signal sent on error.
void forward ()
 Signal sent on forward.
void lengthChanged (const int &)
 Signal sent on length change.
void mediaChanged (libvlc_media_t *)
 Signal sent on media change.
void nothingSpecial ()
 Signal sent nothing speciall happened.
void opening ()
 Signal sent when opening.
void pausableChanged (const bool &)
 Signal sent on pausable change.
void paused ()
 Signal sent when paused.
void playing ()
 Signal sent when playing.
void positionChanged (const float &)
 Signal sent on position change.
void seekableChanged (const bool &)
 Signal sent on seekable change.
void snapshotTaken (const QString &)
 Signal sent on snapshot taken.
void stopped ()
 Signal sent when stopped.
void timeChanged (const int &)
 Signal sent on time change.
void titleChanged (const int &)
 Signal sent on title change.
void vout (const int &)
 Signal sent when video output is available.
void stateChanged ()
 Signal sent when state of the player changed.

Public Member Functions

 VlcMediaPlayer (VlcInstance *instance)
 VlcMediaPlayer constructor.
 ~VlcMediaPlayer ()
libvlc_media_player_t * core ()
 Returns libvlc media player object.
VlcAudioaudio ()
 Returns audio manager object.
VlcVideovideo ()
 Returns video manager object.
int length () const
 Get the current movie length (in ms).
VlcMediacurrentMedia ()
 Get current media object.
libvlc_media_t * currentMediaCore ()
 Get current media core object.
void open (VlcMedia *media)
 Open media file or stream. Any media should be playable and opened.
void openOnly (VlcMedia *media)
 Just opens the media file or stream, do not starts playing the media.
void setTime (const int &time)
 Set the movie time (in ms).
int time () const
 Get the current movie time (in ms).
void setVideoWidget (VlcVideoDelegate *widget)
 Set video widget.
bool hasVout () const
 Get video output status.
Vlc::State state () const
 Get current player state.
VlcVideoDelegatevideoWidget ()
 Get current video widget.
float position ()
 Get current video position.
void setPosition (const float &pos)
 Set the movie position.

Detailed Description

Media Player.

A basic MediaPlayer manager for VLC-Qt library. It provides main playback controls.


Constructor & Destructor Documentation

VlcMediaPlayer::VlcMediaPlayer ( VlcInstance instance) [explicit]

VlcMediaPlayer constructor.

This is mandatory to use libvlc playback functions.

Parameters:
instanceinstance object (VlcInstance *)

VlcMediaPlayer destructor


Member Function Documentation

Returns audio manager object.

Returns:
audio manager (VlcAudio *)
void VlcMediaPlayer::buffering ( const float &  _t1) [signal]

Signal sent on buffering.

Parameters:
floatbuffer
libvlc_media_player_t * VlcMediaPlayer::core ( )

Returns libvlc media player object.

Returns:
libvlc media player (libvlc_media_player_t *)

Get current media object.

Returns:
media object (VlcMedia *)
libvlc_media_t * VlcMediaPlayer::currentMediaCore ( )

Get current media core object.

Returns:
media core object (libvlc_media_t *)
bool VlcMediaPlayer::hasVout ( ) const

Get video output status.

Returns:
video output status (const bool)
int VlcMediaPlayer::length ( ) const

Get the current movie length (in ms).

Returns:
the movie length (in ms), or -1 if there is no media (const int)
void VlcMediaPlayer::lengthChanged ( const int &  _t1) [signal]

Signal sent on length change.

Parameters:
intlength
void VlcMediaPlayer::mediaChanged ( libvlc_media_t *  _t1) [signal]

Signal sent on media change.

Parameters:
libvlc_media_t* media
void VlcMediaPlayer::open ( VlcMedia media)

Open media file or stream. Any media should be playable and opened.

Parameters:
mediaobject (VlcMedia *)

Just opens the media file or stream, do not starts playing the media.

Parameters:
mediaobject (VlcMedia *)
void VlcMediaPlayer::pausableChanged ( const bool &  _t1) [signal]

Signal sent on pausable change.

Parameters:
boolpausable

Get current video position.

Returns:
current video position (float)
void VlcMediaPlayer::positionChanged ( const float &  _t1) [signal]

Signal sent on position change.

Parameters:
floatposition
void VlcMediaPlayer::seekableChanged ( const bool &  _t1) [signal]

Signal sent on seekable change.

Parameters:
boolseekable
void VlcMediaPlayer::setPosition ( const float &  pos)

Set the movie position.

This has no effect if no media is being played. Not all formats and protocols support this.

Parameters:
posthe movie position (float)
void VlcMediaPlayer::setTime ( const int &  time)

Set the movie time (in ms).

This has no effect if no media is being played. Not all formats and protocols support this.

Parameters:
timethe movie time (in ms) (int)

Set video widget.

Set video widget to be able to play video inside Qt interface.

Parameters:
widgetvideo widget (VlcVideoDelegate *)
void VlcMediaPlayer::snapshotTaken ( const QString &  _t1) [signal]

Signal sent on snapshot taken.

Parameters:
QStringfilename

Get current player state.

Returns:
current player state (const Vlc::State)
int VlcMediaPlayer::time ( ) const

Get the current movie time (in ms).

Returns:
the movie time (in ms), or -1 if there is no media (const int)
void VlcMediaPlayer::timeChanged ( const int &  _t1) [signal]

Signal sent on time change.

Parameters:
inttime
void VlcMediaPlayer::titleChanged ( const int &  _t1) [signal]

Signal sent on title change.

Parameters:
inttitle

Returns video manager object.

Returns:
video manager (VlcVideo *)

Get current video widget.

Returns:
current video widget (VlcVideoWidget *)
void VlcMediaPlayer::vout ( const int &  _t1) [signal]

Signal sent when video output is available.

Parameters:
intvout count

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Enumerations