Add: support video (still in test), change ogg to webm

This commit is contained in:
2021-12-16 00:51:32 +08:00
parent fc735c88d3
commit 465517e5cc
7 changed files with 75 additions and 53 deletions

View File

@@ -17,7 +17,7 @@ type Tmpfs struct {
}
func (tmpfs *Tmpfs) GetObjFilePath(id int64, configName string) (string) {
return filepath.Join(tmpfs.Config.Root, strconv.FormatInt(id, 10) + "." + configName + ".ogg")
return filepath.Join(tmpfs.Config.Root, strconv.FormatInt(id, 10) + "." + configName + ".webm")
}
func (tmpfs *Tmpfs) GetLock(filename string) *sync.Mutex {