diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-05-16 14:59:50 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-05-16 14:59:50 +0200 |
| commit | eb6f689b8e9d982d73612af2ba5ddc7ab021aec8 (patch) | |
| tree | ac58fbabe3e13fa656d19543320b4a42206073dd /src/lib/player.h | |
| parent | 8aa25e2ec75dada5f07a3860d668241821056f61 (diff) | |
| parent | 7a9cadc6fe86c74035dd971685b1acdc8f32d3fc (diff) | |
Merge branch 'main' into v2.17.x
Diffstat (limited to 'src/lib/player.h')
| -rw-r--r-- | src/lib/player.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/player.h b/src/lib/player.h index 2502ae536..314031698 100644 --- a/src/lib/player.h +++ b/src/lib/player.h @@ -90,6 +90,8 @@ public: bool pass (); void seek (dcpomatic::DCPTime time, bool accurate); + Frame frames_done() const; + float progress() const; std::vector<std::shared_ptr<dcpomatic::Font>> get_subtitle_fonts (); @@ -157,6 +159,7 @@ private: std::shared_ptr<PlayerVideo> black_player_video_frame (Eyes eyes) const; void emit_video_until(dcpomatic::DCPTime time); void insert_video(std::shared_ptr<PlayerVideo> pv, dcpomatic::DCPTime time, dcpomatic::DCPTime end); + std::pair<std::shared_ptr<Piece>, boost::optional<dcpomatic::DCPTime>> earliest_piece_and_time() const; void video (std::weak_ptr<Piece>, ContentVideo); void audio (std::weak_ptr<Piece>, AudioStreamPtr, ContentAudio); |
