- #Online screen sharing through rdf viewer in asp.net how to#
- #Online screen sharing through rdf viewer in asp.net code#
In the index.html page, we have simple layout to get the name of agent and start and stop casting button. Copy the signalr.js file from into the root folder.
![online screen sharing through rdf viewer in asp.net online screen sharing through rdf viewer in asp.net](https://ars.els-cdn.com/content/image/1-s2.0-S0959652621005643-gr3.jpg)
When we run the npm build, which will bring all the dependencies under node_modules folder including signalR client. In this package.json, i have added the dependency of latest SignalR client. The starting point is the package.json which will have entry point javascript (main.js) and main.js will create a basic electron shell with default menu option and load the main html page. if you are new to electron, you can follow this official docs to create your first electron application.Ī simple electron application will have following files which is similar to nodejs application. In our example, I have used desktopCapturer API to capture the desktop content. It allows you to create desktop applications with pure JavaScript by providing a runtime with rich native (operating system) APIs. Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. ScreencastR agent is a Electron based desktop application. In Real world scenarios, You may consider using peer to peer connection using WebRTC or other socket libraries for building effective screen sharing tool.
#Online screen sharing through rdf viewer in asp.net code#
The sample code for this article is just an experimental project for testing signalR streaming with IAsyncEnumerable.
![online screen sharing through rdf viewer in asp.net online screen sharing through rdf viewer in asp.net](https://www.mdpi.com/applsci/applsci-10-03056/article_deploy/html/images/applsci-10-03056-g003.png)
In this example, we will use client to server streaming to stream the desktop content to all the connected remote client viewers using signalR stream with the support of IAsyncEnumerable API. It is now super easy to implement asynchronous streaming with few lines of clean code. Net Core 3.0 and C# 8 feature for asynchronous streaming. IAsyncEnumerable is the latest addition to. This may look very complex to implement asynchronous streaming just like writing the asynchronous method without async and await keyword.
![online screen sharing through rdf viewer in asp.net online screen sharing through rdf viewer in asp.net](https://csharpcorner-mindcrackerinc.netdna-ssl.com/article/screencastr-simple-screen-sharing-app-using-signalr-streaming/Images/Architecture.png)
In my previous article, I have done server to client streaming with ChannelReader and ChannelWriter for streaming support. SignalR supports both server to client and client to server streaming.
#Online screen sharing through rdf viewer in asp.net how to#
In this article, we will see how to create simple screen sharing app using signalR streaming.