summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-uvc_streamer/luasrc/model/cbi/uvc_streamer.lua
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-uvc_streamer/luasrc/model/cbi/uvc_streamer.lua')
-rw-r--r--applications/luci-uvc_streamer/luasrc/model/cbi/uvc_streamer.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/applications/luci-uvc_streamer/luasrc/model/cbi/uvc_streamer.lua b/applications/luci-uvc_streamer/luasrc/model/cbi/uvc_streamer.lua
new file mode 100644
index 000000000..69a652512
--- /dev/null
+++ b/applications/luci-uvc_streamer/luasrc/model/cbi/uvc_streamer.lua
@@ -0,0 +1,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