MCPcopy Create free account
hub / github.com/TruthHun/BookStack / init

Function init

conf/enumerate.go:76–86  ·  view source on GitHub ↗

初始化支持的音视频格式

()

Source from the content-addressed store, hash-verified

74
75// 初始化支持的音视频格式
76func init() {
77 // 音频格式
78 for _, ext := range []string{".flac", ".wma", ".weba", ".aac", ".oga", ".ogg", ".mp3", ".webm", ".mid", ".wav", ".opus", ".m4a", ".amr", ".aiff", ".au"} {
79 AudioExt.Store(ext, true)
80 }
81
82 // 视频格式
83 for _, ext := range []string{".ogm", ".wmv", ".asx", ".mpg", ".webm", ".mp4", ".ogv", ".mpeg", ".mov", ".m4v", ".avi"} {
84 VideoExt.Store(ext, true)
85 }
86}
87
88// app_key
89func GetAppKey() string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected