<%- require("luci.model.uci") local uci = luci.model.uci.cursor() local ipaddr = uci:get("network", "lan", "ipaddr") local type = uci:get_first("tivideo", "video", "type") local host = uci:get_first("tivideo", "video", "host") local port = uci:get_first("tivideo", "video", "port") local codec = uci:get_first("tivideo", "video", "codec") local width = uci:get_first("tivideo", "video", "width") local height = uci:get_first("tivideo", "video", "height") local fps = uci:get_first("tivideo", "video", "fps") local bps = uci:get_first("tivideo", "video", "bps") -%> <%+header%>

Video

<% if type == "server" then %>
Video Encoder

Currently streaming <%=width%>x<%=height%>@<%=fps%>fps <%=bps%>bps <%=codec%> video to <%=host%>:<%=port%>

SDP File - Open with a media player that supports SDP files such as VLC, mplayer, totem

">Configuration

<% else %>
Video Decoder

Currently streaming <%=codec%> video from <%=host%>:<%=port%>

<% end %> <%+footer%>