summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-uvc_streamer/luasrc/model/cbi/uvc_streamer.lua
blob: 69a65251218ea6273eebeed1c6dc37cf89140d03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
m = Map("uvc-streamer", translate("uvc_streamer"))

s = m:section(TypedSection, "uvc-streamer", translate("settings"))
s.addremove = false
s.anonymous = true

s:option(Flag, "enabled", translate("enabled", "Enable"))

s:option(Value, "device", translate("device")).rmempty = true

nm = s:option(Value, "resolution", translate("resolution"))
nm:value("640x480")
nm:value("320x240")
nm:value("160x120")

s:option(Value, "framespersecond", translate("framespersecond")).rmempty = true

s:option(Value, "port", translate("port", "Port")).rmempty = true

return m