c# - Can we use SignalR with WebRTC video calling in WebForms -
I'm a newbie so it can be devious that I have registered with my ASP.NET webform project and used Signal for online users. I would like to include web rtc video calling facility. I tried to search for WebRTC with Signal R using WebRTC for more than one week through running / week but I always get an example in MVC. Can not we use Signal R in WebForms with WebRTC? If we can use, then anyone can provide / provide me, which is very simple and basic / example to me.
The argument is very similar. Except your messages there are messages that need communication to connect to WebRTC.
It does a broadcast for all customers connected through SignalRub. However, it is very easy to set up, where only a few users can communicate with others. .
Basic Signaling Logic Client Side:
& lt; Script type = "text / javascript" & gt; Var sign = $ .connection.webRTCHub; Var ready = false; // Set up our client handler signal. Client.broadest message = function (from, message) {// Get your message that you have received} // start the hub for long voting, so it does not turn off $. Connection.hub.start ({Transport: ['long lasting']} done (work () {ready = true;}); // When we are ready, send a message only send send message (function Settimeout (sendMessage, 100, Message); Else signal.server.send (name, message);} & lt; / script & gt;
messages (ready!) Forwarding Basic Hub Class
usingsystem; using System.Collections.Generic; using System.Linq; using System.Web; Microsoft.AspNet.SignalR Namespace SignalRebRecipition {Public Square We BRTCHub: Hub {// executed via signal.server.send (name, message) from Javascript; Send public zero (string, string message) {// code executed client side, aka, message available for client client All.broadcastMessage (from, Message);}}}
Basic start-up class to turn on the signal
using the system; Using System. Threading Task; Using Microsoft. Oven Tool C; [Assembly: Owen startup (typef (SignalWebCCimplex.startup)] Namespace SignalRebTermination {Public Class Startup {Public Zero Configuration (IAppBuilder App) {app.MapSignalR ()); Disclaimer: This is very difficult, but the example "works" (send between stream subscribers) This code is not optimized and is not ideal. SignalR has many awesome features Which is probably not used to make it better and more efficient
Comments
Post a Comment