Exemple #1
0
VlcMedia::VlcMedia(const QString &location,
                   const bool &localFile,
                   VlcInstance *instance)
    : QObject(instance)
{
    initMedia(location, localFile, instance);
}
Exemple #2
0
Media::Media(const QString &location, libvlc_instance_t *vlcInstance, QObject *parent , bool isFile) :
    QObject(parent),_original(NULL),
    _usageCount(0)
{
    initMedia(location);
    if(isFile)
        _vlcMedia = libvlc_media_new_path(vlcInstance, location.toStdString().data());
    else
        _vlcMedia = libvlc_media_new_location(vlcInstance, location.toStdString().data());

    _instance = vlcInstance;
    parseMediaInfos();
}
Exemple #3
0
Media::Media(Media *media,bool incrementParent)
{

    _original = media;
    initMedia(media->_location);
    _usageCount = media->_usageCount;
    _instance = media->_instance;

    _vlcMedia = libvlc_media_new_path(_instance, media->_location.toStdString().data());

    if(incrementParent)
        media->usageCountAdd();
    _id = media->_id;
    parseMediaInfos();


}
Exemple #4
0
VlcMedia::VlcMedia(const QString &location,
                   VlcInstance *instance)
    : QObject(instance)
{
    initMedia(location, false, instance);
}