From 3eccedbcea41accb708e8cd8e7f956d06c70f4a3 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 27 Sep 2020 08:01:54 +0200 Subject: Save currently playing video url to clipboard with ctrl+s --- include/VideoPlayer.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') 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; }; } -- cgit v1.2.3