diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/VideoPlayer.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/VideoPlayer.hpp b/include/VideoPlayer.hpp index 3f3a18c..e4a5610 100644 --- a/include/VideoPlayer.hpp +++ b/include/VideoPlayer.hpp @@ -36,7 +36,7 @@ namespace QuickMedia { }; // @event_callback is called from another thread - VideoPlayer(bool use_tor, bool use_system_mpv_config, EventCallbackFunc event_callback, VideoPlayerWindowCreateCallback window_create_callback); + VideoPlayer(bool use_tor, bool use_system_mpv_config, EventCallbackFunc event_callback, VideoPlayerWindowCreateCallback window_create_callback, const std::string &resource_root); ~VideoPlayer(); VideoPlayer(const VideoPlayer&) = delete; VideoPlayer& operator=(const VideoPlayer&) = delete; @@ -50,6 +50,8 @@ namespace QuickMedia { // Progress is in range [0..1] Error get_progress(double *result); + // Returns time in seconds + Error get_time_in_file(double *result); Error get_time_remaining(double *result); Error set_paused(bool paused); @@ -93,5 +95,6 @@ namespace QuickMedia { ERROR }; ResponseDataStatus response_data_status; + std::string resource_root; }; } |