diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-02-03 00:26:29 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-02-16 01:20:39 +0100 |
| commit | edf67efd4662f63c62a1cb524761cc44831c7020 (patch) | |
| tree | 5b833127daca63af302e015b49ceab4ed1461997 /src/wx | |
| parent | 0e057a0fc38586ea55746173ca11446eef6d5865 (diff) | |
Support current playlist in the web interface.
Diffstat (limited to 'src/wx')
| -rw-r--r-- | src/wx/player_frame.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wx/player_frame.cc b/src/wx/player_frame.cc index 5097c5e00..565e50ad7 100644 --- a/src/wx/player_frame.cc +++ b/src/wx/player_frame.cc @@ -563,6 +563,12 @@ PlayerFrame::idle() _http_server->set_dcp_name(""); } _http_server->set_position(_viewer.position()); + vector<string> names; + for (auto const& entry: _playlist) { + ShowPlaylistEntry e(entry.first, {}); + names.push_back(e.name()); + } + _http_server->set_current_playlist(names); _last_http_server_update = now; } } |
