diff --git a/libs/openFrameworks/video/ofVideoBaseTypes.h b/libs/openFrameworks/video/ofVideoBaseTypes.h index a3c573471bf..d0d3e230711 100644 --- a/libs/openFrameworks/video/ofVideoBaseTypes.h +++ b/libs/openFrameworks/video/ofVideoBaseTypes.h @@ -214,6 +214,11 @@ class ofBaseVideoPlayer: virtual public ofBaseVideo{ /// \return True if the video was loaded successfully. virtual bool load(std::string fileName); + virtual bool load(const of::filesystem::path & fileName) = 0; + virtual bool load(std::string name) { + return load(of::filesystem::path(name)); + } + /// \brief Asynchronously load a video resource by name. /// /// The list of supported video types and sources (e.g. rtsp:// sources) is @@ -225,10 +230,10 @@ class ofBaseVideoPlayer: virtual public ofBaseVideo{ /// \param name The name of the video resource to load. /// \sa isLoaded() virtual void loadAsync(const of::filesystem::path & fileName); - - /// \brief Legacy approach for Asynchronously load a video resource by name. - /// \param name The name of the video resource to load. - virtual void loadAsync(std::string fileName); + + virtual bool loadAsync(std::string name) { + loadAsync(of::filesystem::path(name)); + } /// \brief Play the video from the current playhead position. /// diff --git a/libs/openFrameworks/video/ofVideoPlayer.h b/libs/openFrameworks/video/ofVideoPlayer.h index 314ff5c2ac6..8e265fdd974 100644 --- a/libs/openFrameworks/video/ofVideoPlayer.h +++ b/libs/openFrameworks/video/ofVideoPlayer.h @@ -11,6 +11,7 @@ class ofVideoPlayer : public ofBaseVideoDraws { bool load(const of::filesystem::path & fileName); void loadAsync(const of::filesystem::path & fileName); + [[deprecated("Use load")]] bool loadMovie(const of::filesystem::path & fileName);