updated player once more

This commit is contained in:
eyjhb 2025-02-08 21:13:52 +01:00
parent adcd52c55b
commit c9e937fe10
Signed by: eyjhb
GPG key ID: 609F508E3239F920
2 changed files with 50 additions and 76 deletions

View file

@ -71,7 +71,7 @@ func (m *playerModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
func (m *playerModel) View() string {
// return "NO DONT ASK"
return fmt.Sprintf("IsPlaying: %v, Pos: %v, Dur: %v, Per: %v", m.mpv.IsPlaying(), m.mpv.VideoPosition(), m.mpv.VideoDuration(), videoPercentageWatched(m.mpv.VideoPosition(), m.mpv.VideoDuration()))
// return fmt.Sprintf("IsPlaying: %v, Pos: %v, Dur: %v, Per: %v", m.mpv.IsPlaying(), m.mpv.VideoPosition(), m.mpv.VideoDuration(), videoPercentageWatched(m.mpv.VideoPosition(), m.mpv.VideoDuration()))
if m.mpv.IsPlaying() {
timePos := time.Time{}.Add(m.mpv.VideoPosition())