Browse Source

MediaServer: added Filters for Video and Images

master
Felix Dubrownik 11 years ago
parent
commit
e7f2b4315e
  1. 20
      src/MediaServer.h

20
src/MediaServer.h

@ -16,6 +16,26 @@
namespace ofx {
namespace piMapper {
class CustomVideoPathFilter : public ofx::IO::AbstractPathFilter {
CustomVideoPathFilter() {};
virtual ~CustomVideoPathFilter() {};
// TODO: Find useful filters e.g. *.mp4, etc
bool const accept(Poco::Path& path) const {
return !Poco::File(path).isHidden() &&
ofIsStringInString(path.toString(), "mp4");
}
};
class CustomImagePathFilter : public ofx::IO::AbstractPathFilter {
CustomImagePathFilter() {};
virtual ~CustomImagePathFilter() {};
// TODO: Find useful filters e.g. *.png,*.jpeg, etc.
bool const accept(Poco::Path& path) const {
return !Poco::File(path).isHidden() &&
ofIsStringInString(path.toString(), "png");
}
};
class MediaServer {
public:
MediaServer();

Loading…
Cancel
Save