diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-09-27 08:01:54 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-09-27 08:01:54 +0200 |
commit | 3eccedbcea41accb708e8cd8e7f956d06c70f4a3 (patch) | |
tree | fcd71299e5dffb0ad4033665fe8b7f3aafba43ce /include | |
parent | 6a82b66921c24d5310479df33abcf977ab231772 (diff) |
Save currently playing video url to clipboard with ctrl+s
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; }; } |