add web output backend

This commit is contained in:
Aynakeya
2022-07-12 21:06:55 -07:00
parent 6e4c78daf2
commit 94615265bf
16 changed files with 554 additions and 54 deletions

View File

@@ -106,6 +106,10 @@ func (t *TextInfo) Enable() (err error) {
return nil
}
func (d *TextInfo) Disable() error {
return nil
}
func (t *TextInfo) reloadTemplates() {
var err error
t.templates = make([]*Template, 0)
@@ -228,6 +232,7 @@ func (t *TextInfo) registerHandlers() {
return
}
t.info.TotalTime = int(property.Data.(mpv.Node).Value.(float64))
t.RenderTemplates()
}) != nil {
l().Error("fail to register handler for total time with property duration")
}