Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Some way to modify background process / thread from UI (ASP.net Core 2)

$
0
0

Hello,

I am developing a website in ASP .NET Core MVC 2.  I am trying to stream real-time video to my clients, and I need to do it frame by frame, as the video is modified before being sent to the users.  I have a Signalr hub set up and I was going to draw a new image to a canvas element using a data URI -- but I need some way to start a process in the background to continually grab new frames off my camera, paint them, and supply them to the hub and I need a way to stop this and restart it based on user input.  I have investigated cancellable tasks but I can't seem to figure out how to restart it once cancelled.  I also looked into background services using IHostedServices but there is no way to talk to that process once its started?

Thanks in advance!


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>