VlcMedia::VlcMedia(const QString &location, const bool &localFile, VlcInstance *instance) : QObject(instance) { initMedia(location, localFile, instance); }
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(); }
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(); }
VlcMedia::VlcMedia(const QString &location, VlcInstance *instance) : QObject(instance) { initMedia(location, false, instance); }