2014-12-18 05:08:35 +08:00
< div ng - show = " monitor.sourceType == 'Remote' " >
2014-12-17 09:54:42 +08:00
< div class = " form-group " >
2014-12-17 10:05:07 +08:00
< label for = " newMonitor[Protocol] " >< ? = $SLANG [ 'RemoteProtocol' ] ?> </label>
2014-12-18 05:08:35 +08:00
< select class = " form-control " ng - model = " monitor.Protocol " id = " newMonitor[Protocol] " ng - required = " monitor.sourceType == 'Remote' " >
2014-12-17 09:54:42 +08:00
< option value = " http " > HTTP </ option >
< option value = " rtsp " > RTSP </ option >
</ select >
</ div >
< div class = " form-group " >
2014-12-17 10:05:07 +08:00
< label for = " newMonitor[Method] " >< ? = $SLANG [ 'RemoteMethod' ] ?> </label>
2014-12-18 05:08:35 +08:00
< select class = " form-control " ng - model = " monitor.Method " id = " newMonitor[Method] " ng - required = " monitor.sourceType == 'Remote' " ng - show = " monitor.Protocol == 'http' " >
2014-12-17 10:05:07 +08:00
< option value = " simple " > Simple </ option >
< option value = " regexp " > Regexp </ option >
</ select >
2014-12-18 05:08:35 +08:00
< select class = " form-control " ng - model = " monitor.Method " id = " newMonitor[Method] " ng - required = " monitor.sourceType == 'Remote' " ng - show = " monitor.Protocol == 'rtsp' " >
2014-12-17 10:05:07 +08:00
< option value = " rtpUni " > RTP / Unicast </ option >
< option value = " rtpMulti " > RTP / Multicast </ option >
< option value = " rtpRtsp " > RTP / RTSP </ option >
< option value = " rtpRtspHttp " > RTP / RTSP / HTTP </ option >
</ select >
2014-12-17 09:54:42 +08:00
</ div >
< div class = " form-group " >
< label >< ? = $SLANG [ 'RemoteHostName' ] ?> </label>
2014-12-18 05:08:35 +08:00
< input type = " text " class = " form-control " ng - model = " monitor.Host " placeholder = " HostName or ip.add.re.ss " ng - required = " monitor.sourceType == 'Remote' " />
2014-12-17 09:54:42 +08:00
</ div >
< div class = " form-group " >
< label for = " " >< ? = $SLANG [ 'RemoteHostPort' ] ?> </label>
2014-12-18 05:08:35 +08:00
< input type = " number " class = " form-control " ng - model = " monitor.Port " placeholder = " Usually 80 for http, 554 for rtsp " ng - required = " monitor.sourceType == 'Remote' " />
2014-12-17 09:54:42 +08:00
</ div >
< div class = " form-group " >
< label >< ? = $SLANG [ 'RemoteHostPath' ] ?> </label>
2014-12-18 05:08:35 +08:00
< input type = " text " class = " form-control " ng - model = " monitor.Path " placeholder = " /path/to/stream.mpg " ng - required = " monitor.sourceType == 'Remote' " />
2014-12-17 09:54:42 +08:00
</ div >
</ div > <!-- End Remote -->