初始化支持的音视频格式
()
| 74 | |
| 75 | // 初始化支持的音视频格式 |
| 76 | func 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 |
| 89 | func GetAppKey() string { |
nothing calls this directly
no outgoing calls
no test coverage detected