Added UVC-Streamer application
Contributed by Yanira Thanks a lot
This commit is contained in:
parent
e5be8db114
commit
87bed5db45
10 changed files with 87 additions and 0 deletions
2
applications/luci-uvc_streamer/Makefile
Normal file
2
applications/luci-uvc_streamer/Makefile
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
include ../../build/config.mk
|
||||||
|
include ../../build/module.mk
|
4
applications/luci-uvc_streamer/ipkg/postinst
Executable file
4
applications/luci-uvc_streamer/ipkg/postinst
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
[ -n "${IPKG_INSTROOT}" ] || {
|
||||||
|
( . /etc/uci-defaults/luci-uvc_streamer ) && rm -f /etc/uci-defaults/luci-uvc_streamer
|
||||||
|
}
|
|
@ -0,0 +1,13 @@
|
||||||
|
module("luci.controller.uvc_streamer", package.seeall)
|
||||||
|
|
||||||
|
function index()
|
||||||
|
require("luci.i18n")
|
||||||
|
luci.i18n.loadc("uvc_streamer")
|
||||||
|
if not luci.fs.isfile("/etc/config/uvc-streamer") then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
local page = entry({"admin", "services", "uvc_streamer"}, cbi("uvc_streamer"), luci.i18n.translate("uvc_streamer", "UVC Streaming"), 60)
|
||||||
|
page.i18n = "uvc_streamer"
|
||||||
|
page.dependent = true
|
||||||
|
end
|
|
@ -0,0 +1,4 @@
|
||||||
|
uvc_streamer = [[Webcam Stream]]
|
||||||
|
settings = [[Konfiguration]]
|
||||||
|
resolution = [[Auflösung]]
|
||||||
|
framespersecond = [[Bilder pro Sekunde]]
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<i18n:msgs xmlns:i18n="http://luci.freifunk-halle.net/2008/i18n#" xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
|
||||||
|
<i18n:msg xml:id="framespersecond">Bilder pro Sekunde</i18n:msg>
|
||||||
|
<i18n:msg xml:id="resolution">Auflösung</i18n:msg>
|
||||||
|
<i18n:msg xml:id="settings">Konfiguration</i18n:msg>
|
||||||
|
<i18n:msg xml:id="uvc_streamer">Webcam Stream</i18n:msg>
|
||||||
|
|
||||||
|
</i18n:msgs>
|
|
@ -0,0 +1,4 @@
|
||||||
|
uvc_streamer = [[Webcam streaming]]
|
||||||
|
settings = [[Settings]]
|
||||||
|
resolution = [[Resolution]]
|
||||||
|
framespersecond = [[Frames per second]]
|
|
@ -0,0 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<i18n:msgs xmlns:i18n="http://luci.freifunk-halle.net/2008/i18n#" xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
|
||||||
|
<i18n:msg xml:id="framespersecond">Frames per second</i18n:msg>
|
||||||
|
<i18n:msg xml:id="resolution">Resolution</i18n:msg>
|
||||||
|
<i18n:msg xml:id="settings">Settings</i18n:msg>
|
||||||
|
<i18n:msg xml:id="uvc_streamer">Webcam streaming</i18n:msg>
|
||||||
|
|
||||||
|
</i18n:msgs>
|
|
@ -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
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
uci set luci.uci_oncommit.uvc_streamer='/sbin/luci-reload uvc-streamer'
|
||||||
|
uci commit luci
|
|
@ -510,6 +510,18 @@ define Package/luci-app-samba/install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
|
define Package/luci-app-uvc_streamer
|
||||||
|
$(call Package/luci/webtemplate)
|
||||||
|
DEPENDS+=+luci-admin-full +uvc-streamer
|
||||||
|
TITLE:=Webcam Streaming - UVC-Streamer module
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/luci-app-uvc_streamer/install
|
||||||
|
$(call Package/luci/install/template,$(1),applications/luci-uvc_streamer)
|
||||||
|
endef
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Server Gateway Interfaces ###
|
### Server Gateway Interfaces ###
|
||||||
|
|
||||||
define Package/luci-sgi-cgi
|
define Package/luci-sgi-cgi
|
||||||
|
@ -710,6 +722,9 @@ endif
|
||||||
ifneq ($(CONFIG_PACKAGE_luci-app-samba),)
|
ifneq ($(CONFIG_PACKAGE_luci-app-samba),)
|
||||||
PKG_SELECTED_MODULES+=applications/luci-samba
|
PKG_SELECTED_MODULES+=applications/luci-samba
|
||||||
endif
|
endif
|
||||||
|
ifneq ($(CONFIG_PACKAGE_luci-app-uvc_streamer),)
|
||||||
|
PKG_SELECTED_MODULES+=applications/luci-uvc_streamer
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
|
ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
|
||||||
|
@ -790,6 +805,7 @@ $(eval $(call BuildPackage,luci-app-upnp))
|
||||||
$(eval $(call BuildPackage,luci-app-ntpc))
|
$(eval $(call BuildPackage,luci-app-ntpc))
|
||||||
$(eval $(call BuildPackage,luci-app-ddns))
|
$(eval $(call BuildPackage,luci-app-ddns))
|
||||||
$(eval $(call BuildPackage,luci-app-samba))
|
$(eval $(call BuildPackage,luci-app-samba))
|
||||||
|
$(eval $(call BuildPackage,luci-app-uvc_streamer))
|
||||||
|
|
||||||
$(eval $(call BuildPackage,luci-sgi-cgi))
|
$(eval $(call BuildPackage,luci-sgi-cgi))
|
||||||
$(eval $(call BuildPackage,luci-sgi-luci))
|
$(eval $(call BuildPackage,luci-sgi-luci))
|
||||||
|
|
Loading…
Reference in a new issue