Files
vimix/MediaSource.h
brunoherbelin a2ea06b2c6 Source creation by origin: File, software and hardware. Separate source
classes for Media and Session sources. Update of file dialog
accordingly.
2020-05-20 22:16:31 +02:00

33 lines
619 B
C++

#ifndef MEDIASOURCE_H
#define MEDIASOURCE_H
#include "Source.h"
class MediaSource : public Source
{
public:
MediaSource();
~MediaSource();
// implementation of source API
FrameBuffer *frame() const override;
void render() override;
void accept (Visitor& v) override;
bool failed() const override;
// Media specific interface
void setPath(const std::string &p);
std::string path() const;
MediaPlayer *mediaplayer() const;
protected:
void init() override;
Surface *mediasurface_;
std::string path_;
MediaPlayer *mediaplayer_;
};
#endif // MEDIASOURCE_H