31 lines
512 B
C++
31 lines
512 B
C++
#ifndef PROJECT_PLAYER_H
|
|
#define PROJECT_PLAYER_H
|
|
|
|
#include "ffcpp/MediaFile.h"
|
|
#include <memory>
|
|
|
|
namespace ffcpp {
|
|
|
|
struct IVideoSink {
|
|
|
|
};
|
|
|
|
class Player {
|
|
private:
|
|
std::shared_ptr<IVideoSink> _vSink;
|
|
std::unique_ptr<MediaFile> _curMedia;
|
|
StreamPtr _aStream;
|
|
StreamPtr _vStream;
|
|
|
|
public:
|
|
Player(std::shared_ptr<IVideoSink> vSink);
|
|
~Player();
|
|
|
|
void setMedia(std::string path);
|
|
void play();
|
|
};
|
|
|
|
}
|
|
|
|
#endif //PROJECT_PLAYER_H
|