Media Player. More...
#include <VLCQtCore/MediaPlayer.h>
Public Slots | |
| void | setTime (int time) |
| Set the movie time (in ms). More... | |
| void | setPosition (float pos) |
| Set the media position. More... | |
| void | setPlaybackRate (float rate) |
| Set the media playback rate. More... | |
| 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 (float buffer) |
| Signal sent on buffering. More... | |
| void | buffering (int buffer) |
| Signal sent on buffering. More... | |
| void | end () |
| Signal sent when end reached. | |
| void | error () |
| Signal sent on error. | |
| void | forward () |
| Signal sent on forward. | |
| void | lengthChanged (int length) |
| Signal sent on length change. More... | |
| void | mediaChanged (libvlc_media_t *media) |
| Signal sent on media change. More... | |
| void | nothingSpecial () |
| Signal sent nothing speciall happened. | |
| void | opening () |
| Signal sent when opening. | |
| void | pausableChanged (bool pausable) |
| Signal sent on pausable change. More... | |
| void | paused () |
| Signal sent when paused. | |
| void | playing () |
| Signal sent when playing. | |
| void | positionChanged (float position) |
| Signal sent on position change. More... | |
| void | seekableChanged (bool seekable) |
| Signal sent on seekable change. More... | |
| void | snapshotTaken (const QString &filename) |
| Signal sent on snapshot taken. More... | |
| void | stopped () |
| Signal sent when stopped. | |
| void | timeChanged (int time) |
| Signal sent on time change. More... | |
| void | titleChanged (int title) |
| Signal sent on title change. More... | |
| void | vout (int count) |
| Signal sent when video output is available. More... | |
| void | stateChanged () |
| Signal sent when state of the player changed. | |
Public Member Functions | |
| VlcMediaPlayer (VlcInstance *instance) | |
| VlcMediaPlayer constructor. More... | |
| ~VlcMediaPlayer () | |
| libvlc_media_player_t * | core () const |
| Returns libvlc media player object. More... | |
| VlcAudio * | audio () const |
| Returns audio manager object. More... | |
| VlcVideo * | video () const |
| Returns video manager object. More... | |
| int | length () const |
| Get the current movie length (in ms). More... | |
| VlcMedia * | currentMedia () const |
| Get current media object. More... | |
| libvlc_media_t * | currentMediaCore () |
| Get current media core object. More... | |
| void | open (VlcMedia *media) |
| Open media file or stream. Any media should be playable and opened. More... | |
| void | openOnly (VlcMedia *media) |
| Just opens the media file or stream, do not starts playing the media. More... | |
| int | time () const |
| Get the current movie time (in ms). More... | |
| void | setVideoWidget (VlcVideoDelegate *widget) |
| Set video widget. More... | |
| bool | hasVout () const |
| Get video output status. More... | |
| Vlc::State | state () const |
| Get current player state. More... | |
| VlcVideoDelegate * | videoWidget () const |
| Get current video widget. More... | |
| float | position () |
| Get media content position. More... | |
| float | sampleAspectRatio () |
| Get sample aspect ratio for current video track( vlc >= 2.1.0 ). More... | |
| float | playbackRate () |
| Get current media playback rate. More... | |
A basic MediaPlayer manager for VLC-Qt library. It provides main playback controls.
|
explicit |
This is mandatory to use libvlc playback functions.
| instance | instance object (VlcInstance *) |
| VlcMediaPlayer::~VlcMediaPlayer | ( | ) |
VlcMediaPlayer destructor
|
signal |
| buffer | buffer status in percent |
|
signal |
| buffer | buffer status in percent |
| libvlc_media_player_t * VlcMediaPlayer::core | ( | ) | const |
| libvlc_media_t * VlcMediaPlayer::currentMediaCore | ( | ) |
| bool VlcMediaPlayer::hasVout | ( | ) | const |
| int VlcMediaPlayer::length | ( | ) | const |
|
signal |
| length | new length |
|
signal |
| media | new media object |
|
signal |
| pausable | pausable status |
| float VlcMediaPlayer::playbackRate | ( | ) |
| float VlcMediaPlayer::position | ( | ) |
|
signal |
| position | new position |
| float VlcMediaPlayer::sampleAspectRatio | ( | ) |
|
signal |
| seekable | seekable status |
|
slot |
| rate | the media playback rate (float) |
|
slot |
This has no effect if no media is being played. Not all formats and protocols support this.
| pos | the media position (float) |
|
slot |
This has no effect if no media is being played. Not all formats and protocols support this.
| time | the movie time (in ms) (int) |
| void VlcMediaPlayer::setVideoWidget | ( | VlcVideoDelegate * | widget | ) |
Set video widget to be able to play video inside Qt interface.
| widget | video widget (VlcVideoDelegate *) |
|
signal |
| filename | filename of the snapshot |
| Vlc::State VlcMediaPlayer::state | ( | ) | const |
| int VlcMediaPlayer::time | ( | ) | const |
|
signal |
| time | new time |
|
signal |
| title | new title |
| VlcVideoDelegate * VlcMediaPlayer::videoWidget | ( | ) | const |
|
signal |
| count | number of video outputs available |