mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 01:24:05 +08:00
22 lines
512 B
Go
22 lines
512 B
Go
package wiki
|
|
|
|
import (
|
|
ice "shylinux.com/x/icebergs"
|
|
"shylinux.com/x/icebergs/base/nfs"
|
|
)
|
|
|
|
const (
|
|
m4v = "m4v"
|
|
mp4 = "mp4"
|
|
MOV = "mov"
|
|
)
|
|
const VIDEO = "video"
|
|
|
|
func init() {
|
|
Index.MergeCommands(ice.Commands{
|
|
VIDEO: {Name: "video url run", Help: "视频", Actions: WordAction(
|
|
`<video {{.OptionTemplate}} title="{{.Option "text"}}" src="{{.Option "text"}}" controls></video>`, nfs.PATH, ice.USR_LOCAL_IMAGE,
|
|
), Hand: func(m *ice.Message, arg ...string) { _image_show(m, arg[0], arg[1:]...) }},
|
|
})
|
|
}
|