New Media Player option to Rewind on Disabled

This commit is contained in:
Bruno
2021-08-01 19:10:46 +02:00
parent eaadc210ae
commit e8acfc1c26
5 changed files with 35 additions and 4 deletions

View File

@@ -187,7 +187,7 @@ public:
/**
* Seek to zero
* */
void rewind();
void rewind(bool force = false);
/**
* Get position time
* */
@@ -254,6 +254,12 @@ public:
* */
void setSoftwareDecodingForced(bool on);
bool softwareDecodingForced();
/**
* Option to automatically rewind each time the player is disabled
* (i.e. when enable(false) is called )
* */
inline void setRewindOnDisabled(bool on) { rewind_on_disable_ = on; }
inline bool rewindOnDisabled() const { return rewind_on_disable_; }
/**
* Accept visitors
* */
@@ -292,6 +298,7 @@ private:
std::atomic<bool> failed_;
bool seeking_;
bool enabled_;
bool rewind_on_disable_;
bool force_software_decoding_;
std::string decoder_name_;