Merge branch 'client'
This commit is contained in:
commit
e123c18120
@ -24,7 +24,7 @@ namespace squirrowse.client
|
|||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
var data = _cam.GetBitmap();
|
var data = _cam.GetBitmap();
|
||||||
await Task.Delay(1000 / 33);
|
await Task.Delay(100);
|
||||||
yield return data;
|
yield return data;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,10 @@ namespace squirrowse.client
|
|||||||
{
|
{
|
||||||
services.AddHostedService<Worker>();
|
services.AddHostedService<Worker>();
|
||||||
services.AddSingleton<IConnectionManager>(x =>
|
services.AddSingleton<IConnectionManager>(x =>
|
||||||
new ConnectionManager("http://squirrowse.azurewebsites.net", 80)); //keep as transient for now
|
new ConnectionManager("http://squirrowse.azurewebsites.net", 80)); //keep as transient for now
|
||||||
|
|
||||||
|
// new ConnectionManager("http://192.168.0.13", 5000)); //keep as transient for now
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,10 +56,13 @@ namespace squirrowse.client
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Thread.Sleep(100);
|
||||||
return image;
|
return image;
|
||||||
|
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
Thread.Sleep(100);
|
||||||
return image;
|
return image;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user