Media item. More...
#include <VLCQtCore/Media.h>
Signals | |
| void | metaChanged (const Vlc::Meta &meta) |
| Signal sent on meta change. More... | |
| void | subitemAdded (libvlc_media_t *subitem) |
| Signal sent on subitem added. More... | |
| void | durationChanged (int duration) |
| Signal sent on duration change. More... | |
| void | parsedChanged (int status) |
| Signal sent on parsed change. More... | |
| void | freed (libvlc_media_t *media) |
| Signal sent on freed. More... | |
| void | stateChanged (const Vlc::State &state) |
| Signal sent on state change. More... | |
Public Member Functions | |
| VlcMedia (const QString &location, bool localFile, VlcInstance *instance) | |
| VlcMedia constructor. More... | |
| VlcMedia (const QString &location, VlcInstance *instance) | |
| VlcMedia constructor. More... | |
| VlcMedia (libvlc_media_t *media) | |
| VlcMedia constructor. More... | |
| ~VlcMedia () | |
| VlcMedia destructor. | |
| libvlc_media_t * | core () |
| libvlc media item More... | |
| QString | currentLocation () const |
| Current media location. More... | |
| VlcStats * | getStats () |
| Get media stats. More... | |
| QString | duplicate (const QString &name, const QString &path, const Vlc::Mux &mux) |
| Duplicate (provided for convenience) More... | |
| QString | duplicate (const QString &name, const QString &path, const Vlc::Mux &mux, const Vlc::AudioCodec &audioCodec, const Vlc::VideoCodec &videoCodec) |
| Duplicate (provided for convenience) More... | |
| QString | duplicate (const QString &name, const QString &path, const Vlc::Mux &mux, const Vlc::AudioCodec &audioCodec, const Vlc::VideoCodec &videoCodec, int bitrate, int fps, int scale) |
| Duplicate (provided for convenience) More... | |
| QString | merge (const QString &name, const QString &path, const Vlc::Mux &mux) |
| Merge. More... | |
| QString | record (const QString &name, const QString &path, const Vlc::Mux &mux, bool duplicate=false) |
| Record. More... | |
| QString | record (const QString &name, const QString &path, const Vlc::Mux &mux, const Vlc::AudioCodec &audioCodec, const Vlc::VideoCodec &videoCodec, bool duplicate=false) |
| Record. More... | |
| QString | record (const QString &name, const QString &path, const Vlc::Mux &mux, const Vlc::AudioCodec &audioCodec, const Vlc::VideoCodec &videoCodec, int bitrate, int fps, int scale, bool duplicate=false) |
| Record. More... | |
| void | setProgram (int program) |
| Set program. More... | |
| void | setOption (const QString &option) |
| Set media option. More... | |
| void | setOptions (const QStringList &options) |
| Set media options. More... | |
An abstract representation of a playable media. It consists of a media location and various optional meta data.
|
explicit |
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 *) |
|
explicit |
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 | ) |
This constructor creates a new media instance from an existing one.
| media | libvlc media item (libvlc_media_t *) |
| libvlc_media_t * VlcMedia::core | ( | ) |
| QString VlcMedia::currentLocation | ( | ) | const |
| 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 | ||
| ) |
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, | ||
| int | bitrate, | ||
| int | fps, | ||
| int | scale | ||
| ) |
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) |
|
signal |
| duration | new duration |
|
signal |
| media | freed libvlc_media_t object |
| QString VlcMedia::merge | ( | const QString & | name, |
| const QString & | path, | ||
| const Vlc::Mux & | mux | ||
| ) |
Apply merge options with desired mux but without transcoding.
| name | output file name (QString) |
| path | output path (QString) |
| mux | output mux (Vlc::Mux) |
|
signal |
| meta | new meta |
|
signal |
| status | new parsed status |
| QString VlcMedia::record | ( | const QString & | name, |
| const QString & | path, | ||
| const Vlc::Mux & | mux, | ||
| bool | duplicate = false |
||
| ) |
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, | ||
| bool | duplicate = false |
||
| ) |
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, | ||
| int | bitrate, | ||
| int | fps, | ||
| int | scale, | ||
| bool | duplicate = false |
||
| ) |
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 | ) |
| option | media option (QString) |
| void VlcMedia::setOptions | ( | const QStringList & | options | ) |
| options | media options (QStringList) |
| void VlcMedia::setProgram | ( | int | program | ) |
| program | program PID (int) |
|
signal |
| state | new state |
|
signal |
| subitem | subitem that was added |