Skip to content

Web-cam live streaming with websockets and SignalR with ASP.NET Core just for fun and to learn new things. πŸ˜€πŸ‘¨πŸ»β€πŸ’»Β Β 

License

Notifications You must be signed in to change notification settings

ardacetinkaya/WebCam-Streaming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŽ₯ WebCam Streaming

This is a simple proof of concept work for demonstration of web-cam streaming in ASP.NET Core web applications, with web-sockets and also ASP.NET Core SignalR.

In this ASP.NET Core web app., there are currently two different approaches for web-cam streams;

  1. System.Net.WebSockets.WebSocket
  2. ASP.NET Core SignalR
  3. WebRTC (Coming soon)

In first demonstration; a web-socket connection is initialized with client-side and server-side. In client-side, the web-cam streams are delivered to server-side as image frames, *.jpeg. In server-side frames' data from socket modified as grayscale and streamed back to the client-side as base64 string as image format. In client-side every frame is delivered to server with in FPS approach to have no video glitch.

Within this demostration; within an ASP.NET Core application, basically client-side web-cam video is captured and delivered to server-side. In server-side some modification is done and send back to client-side. (Just for some fun πŸ˜€)

In second demonstration, the scenario is simple and also fun(πŸ˜€); ASP.NET Core SignalR approached are used to stream web-cam video between two clients. Two different clients access to same ASP.NET Core Web Application(Razor). Client-A (at the right side) calls Client-B(left one), then a notification pop-up appears in Client-B to accept or decline the call.

After Client-B accepts the call, a connection is established within Client-A and Client-B with ASP.NET Core SignalR Hub approach. In this scenario, who makes the call can share web-cam video stream with client. So when Client-A opens the camera, Client-A streams the web-cam video into the server-side, SignalR Hub. From the hub, streamed data is send to Client-B within standart method calls in client-side.

This was just for a weekend fun to see what is possible within ASP.NET Core applications. I am happy with the results so here is this repository. πŸ˜€

References for more fun:

About

Web-cam live streaming with websockets and SignalR with ASP.NET Core just for fun and to learn new things. πŸ˜€πŸ‘¨πŸ»β€πŸ’»Β Β 

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published