|
|
|
@ -13,6 +13,7 @@ namespace IoTNode
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
{
|
|
|
|
|
var host = "localhost";
|
|
|
|
|
var stream = "49.4.92.112";
|
|
|
|
|
WebHost.CreateDefaultBuilder(args)
|
|
|
|
|
.Run<Startup>(new List<EFConfigurationValue> {
|
|
|
|
|
new EFConfigurationValue { Id = "id", Value= "根据设备编号生成的授权码" },
|
|
|
|
@ -36,6 +37,15 @@ namespace IoTNode
|
|
|
|
|
new EFConfigurationValue { Id = "influxdb:url", Value= "http://localhost:8086"},
|
|
|
|
|
new EFConfigurationValue { Id = "influxdb:usr", Value= "admin"},
|
|
|
|
|
new EFConfigurationValue { Id = "influxdb:pwd", Value= "admin"},
|
|
|
|
|
new EFConfigurationValue { Id = "onvif.timer", Value="1"},
|
|
|
|
|
new EFConfigurationValue { Id = "onvif.speed", Value="0.2"},
|
|
|
|
|
new EFConfigurationValue { Id = "camera.usr", Value="admin"},
|
|
|
|
|
new EFConfigurationValue { Id = "camera.pwd", Value="dsideal123"},
|
|
|
|
|
new EFConfigurationValue { Id = "stream.rtmp", Value=stream},
|
|
|
|
|
new EFConfigurationValue { Id = "stream.flv", Value=$"{stream}:8080"},
|
|
|
|
|
new EFConfigurationValue { Id = "stream.hls", Value=$"{stream}:8080"},
|
|
|
|
|
new EFConfigurationValue { Id = "ffmpeg.args", Value=" -y -threads {0} -rtsp_transport tcp -use_wallclock_as_timestamps 1 -stimeout 3000000 -i \"{1}\" -fflags +genpts -c copy -f flv \"{2}\""},
|
|
|
|
|
new EFConfigurationValue { Id = "ffmpeg.file", Value="/usr/ffmpeg-rkmp/bin/ffmpeg"},
|
|
|
|
|
//
|
|
|
|
|
new EFConfigurationValue { Id = "name", Value= "物联网节点"},
|
|
|
|
|
new EFConfigurationValue { Id = "logo", Value= "/images/logo.png",Type= InputType.ImageUrl},
|
|
|
|
|