![]() |
VLC-Qt 0.8.0- (Different version)
|
Media item. More...
#include <vlc-qt/Media.h>
Signals | |
void | metaChanged (const Vlc::Meta &) |
Signal sent on meta change. | |
void | subitemAdded (libvlc_media_t *) |
Signal sent on subitem added. | |
void | durationChanged (const int &) |
Signal sent on duration change. | |
void | parsedChanged (const int &) |
Signal sent on parsed change. | |
void | freed (libvlc_media_t *) |
Signal sent on freed. | |
void | stateChanged (const Vlc::State &) |
Signal sent on state change. | |
Public Member Functions | |
VlcMedia (const QString &location, const bool &localFile, VlcInstance *instance) | |
VlcMedia constructor. | |
VlcMedia (const QString &location, VlcInstance *instance) | |
VlcMedia constructor. | |
VlcMedia (libvlc_media_t *media) | |
VlcMedia constructor. | |
~VlcMedia () | |
VlcMedia destructor. | |
libvlc_media_t * | core () |
libvlc media item | |
QString | currentLocation () const |
Current media location. | |
QString | duplicate (const QString &name, const QString &path, const Vlc::Mux &mux) |
Duplicate (provided for convenience) | |
QString | duplicate (const QString &name, const QString &path, const Vlc::Mux &mux, const Vlc::AudioCodec &audioCodec, const Vlc::VideoCodec &videoCodec) |
Duplicate (provided for convenience) | |
QString | duplicate (const QString &name, const QString &path, const Vlc::Mux &mux, const Vlc::AudioCodec &audioCodec, const Vlc::VideoCodec &videoCodec, const int &bitrate, const int &fps, const int &scale) |
Duplicate (provided for convenience) | |
QString | merge (const QString &name, const QString &path, const Vlc::Mux &mux) |
Merge. | |
QString | record (const QString &name, const QString &path, const Vlc::Mux &mux, const bool &duplicate=false) |
Record. | |
QString | record (const QString &name, const QString &path, const Vlc::Mux &mux, const Vlc::AudioCodec &audioCodec, const Vlc::VideoCodec &videoCodec, const bool &duplicate=false) |
Record. | |
QString | record (const QString &name, const QString &path, const Vlc::Mux &mux, const Vlc::AudioCodec &audioCodec, const Vlc::VideoCodec &videoCodec, const int &bitrate, const int &fps, const int &scale, const bool &duplicate=false) |
Record. | |
void | setOption (const QString &option) |
Set media option. | |
void | setOptions (const QStringList &options) |
Set media options. | |
Vlc::TrackType | trackType () |
Get media track type. |
Media item.
An abstract representation of a playable media. It consists of a media location and various optional meta data.
VlcMedia::VlcMedia | ( | const QString & | location, |
const bool & | localFile, | ||
VlcInstance * | instance | ||
) | [explicit] |
VlcMedia constructor.
This constructor creates a new media instance from a media location.
location | location of the media (QString) |
localFile | true, if media is local file (bool) |
instance | main libvlc instance (VlcInstance *) |
VlcMedia::VlcMedia | ( | const QString & | location, |
VlcInstance * | instance | ||
) | [explicit] |
VlcMedia constructor.
This constructor creates a new media instance from a remote media location. Provided for convenience.
location | remote location of the media (QString) |
instance | main libvlc instance (VlcInstance *) |
VlcMedia::VlcMedia | ( | libvlc_media_t * | media | ) |
VlcMedia constructor.
This constructor creates a new media instance from an existing one.
media | libvlc media item (libvlc_media_t *) |
libvlc_media_t * VlcMedia::core | ( | ) |
libvlc media item
QString VlcMedia::currentLocation | ( | ) | const |
Current media location.
QString VlcMedia::duplicate | ( | const QString & | name, |
const QString & | path, | ||
const Vlc::Mux & | mux | ||
) |
QString VlcMedia::duplicate | ( | const QString & | name, |
const QString & | path, | ||
const Vlc::Mux & | mux, | ||
const Vlc::AudioCodec & | audioCodec, | ||
const Vlc::VideoCodec & | videoCodec | ||
) |
Duplicate (provided for convenience)
Apply duplicate options with desired mux and transcoding (experimental).
name | output file name (QString) |
path | output path (QString) |
mux | output mux (Vlc::Mux) |
audioCodec | audio codec (Vlc::AudioCodec) |
videoCodec | video codec (Vlc::VideoCodec) |
QString VlcMedia::duplicate | ( | const QString & | name, |
const QString & | path, | ||
const Vlc::Mux & | mux, | ||
const Vlc::AudioCodec & | audioCodec, | ||
const Vlc::VideoCodec & | videoCodec, | ||
const int & | bitrate, | ||
const int & | fps, | ||
const int & | scale | ||
) |
Duplicate (provided for convenience)
Apply duplicate options with desired mux, transcoding and some other options (experimental).
name | output file name (QString) |
path | output path (QString) |
mux | output mux (Vlc::Mux) |
audioCodec | audio codec (Vlc::AudioCodec) |
videoCodec | video codec (Vlc::VideoCodec) |
bitrate | video bitrate (int) |
fps | frames per second (int) |
scale | video scale (int) |
void VlcMedia::durationChanged | ( | const int & | _t1 | ) | [signal] |
Signal sent on duration change.
int | duration |
void VlcMedia::freed | ( | libvlc_media_t * | _t1 | ) | [signal] |
Signal sent on freed.
libvlc_media_t | * media |
QString VlcMedia::merge | ( | const QString & | name, |
const QString & | path, | ||
const Vlc::Mux & | mux | ||
) |
Merge.
Apply merge options with desired mux but without transcoding.
name | output file name (QString) |
path | output path (QString) |
mux | output mux (Vlc::Mux) |
void VlcMedia::metaChanged | ( | const Vlc::Meta & | _t1 | ) | [signal] |
Signal sent on meta change.
libvlc_meta_t | * meta |
void VlcMedia::parsedChanged | ( | const int & | _t1 | ) | [signal] |
Signal sent on parsed change.
int | status |
QString VlcMedia::record | ( | const QString & | name, |
const QString & | path, | ||
const Vlc::Mux & | mux, | ||
const bool & | duplicate = false |
||
) |
Record.
Apply recording options with desired mux but without transcoding.
name | output file name (QString) |
path | output path (QString) |
mux | output mux (Vlc::Mux) |
duplicate | also duplicate on screen (bool) |
QString VlcMedia::record | ( | const QString & | name, |
const QString & | path, | ||
const Vlc::Mux & | mux, | ||
const Vlc::AudioCodec & | audioCodec, | ||
const Vlc::VideoCodec & | videoCodec, | ||
const bool & | duplicate = false |
||
) |
Record.
Apply recording options with desired mux and transcoding (experimental).
name | output file name (QString) |
path | output path (QString) |
mux | output mux (Vlc::Mux) |
audioCodec | audio codec (Vlc::AudioCodec) |
videoCodec | video codec (Vlc::VideoCodec) |
duplicate | also duplicate on screen (bool) |
QString VlcMedia::record | ( | const QString & | name, |
const QString & | path, | ||
const Vlc::Mux & | mux, | ||
const Vlc::AudioCodec & | audioCodec, | ||
const Vlc::VideoCodec & | videoCodec, | ||
const int & | bitrate, | ||
const int & | fps, | ||
const int & | scale, | ||
const bool & | duplicate = false |
||
) |
Record.
Apply recording options with desired mux, transcoding and some other options (experimental).
name | output file name (QString) |
path | output path (QString) |
mux | output mux (Vlc::Mux) |
audioCodec | audio codec (Vlc::AudioCodec) |
videoCodec | video codec (Vlc::VideoCodec) |
bitrate | video bitrate (int) |
fps | frames per second (int) |
scale | video scale (int) |
duplicate | also duplicate on screen (bool) |
void VlcMedia::setOption | ( | const QString & | option | ) |
Set media option.
option | media option (QString) |
void VlcMedia::setOptions | ( | const QStringList & | options | ) |
Set media options.
options | media options (QStringList) |
void VlcMedia::stateChanged | ( | const Vlc::State & | _t1 | ) | [signal] |
Signal sent on state change.
Vlc::State | state |
void VlcMedia::subitemAdded | ( | libvlc_media_t * | _t1 | ) | [signal] |
Signal sent on subitem added.
libvlc_media_t | * subitem |
Get media track type.