MCPcopy Create free account
hub / github.com/Cpasjuste/pplay / isMedia

Method isMedia

src/utility.cpp:73–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73bool Utility::isMedia(const c2d::Io::File &file) {
74
75 if (file.type == c2d::Io::Type::File) {
76 std::vector<std::string> extensions = getMediaExtensions();
77 for (auto &ext: extensions) {
78 if (c2d::Utility::endsWith(file.name, ext, false)) {
79 return true;
80 }
81 }
82 }
83
84 return false;
85}
86
87std::string Utility::formatTime(double seconds) {
88

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected