updated player once more
This commit is contained in:
parent
adcd52c55b
commit
c9e937fe10
2 changed files with 50 additions and 76 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue