Browse Source

Filter same video sources to all platforms

master
Krisjanis Rijnieks 11 years ago
parent
commit
691a0a9879
  1. 6
      src/MediaServer/DirectoryWatcher.h

6
src/MediaServer/DirectoryWatcher.h

@ -28,18 +28,12 @@ class VideoPathFilter : public BasePathFilter {
virtual ~VideoPathFilter() {};
bool accept(const Poco::Path& path) const {
#ifdef TARGET_RASPBERRY_PI
return !Poco::File(path).isHidden() &&
(ofIsStringInString(path.toString(), ".mp4") ||
ofIsStringInString(path.toString(), ".h264"));
#else
return !Poco::File(path).isHidden() &&
(ofIsStringInString(path.toString(), ".mp4") ||
ofIsStringInString(path.toString(), ".h264")||
ofIsStringInString(path.toString(), ".mov") ||
ofIsStringInString(path.toString(), ".avi") ||
ofIsStringInString(path.toString(), ".mpeg"));
#endif
}
};

Loading…
Cancel
Save