You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 lines
575 B

#include "Video.h"
#include "Base.h"
#include <iostream>
#include <string>
using namespace std;
Video::Video(string name, string pathname, unsigned int duree) : Base(name, pathname), duree(duree) {}
Video::~Video() {}
void Video::setDuree(unsigned int _duree) {
duree = _duree;
}
unsigned int Video::getDuree() const {
return duree;
}
void Video::affichage(ostream& flux) const {
Base::affichage(flux);
flux << "La vidéo a pour durée : " << duree << endl;
}
void Video::play() const {
string command = "mpv " + pathname + " &";
system(command.c_str());
}