Example #1
0
 public WebRtcServer(
     IDtlSrtpMultiplexer webRtcDemultiplexer,
     IWebRtcConnectionManager connectionManager,
     IOptions <WebRtcServerOptions> options,
     IDtlsHandler dtlsHandler,
     IStunUserProvider stunUserProvider)
 {
     _webRtcDemultiplexer = webRtcDemultiplexer;
     _connectionManager   = connectionManager;
     _options             = options.Value;
     DtlsHandler          = dtlsHandler;
     StunUserProvider     = stunUserProvider;
 }
Example #2
0
        public RtspProxyService(
            IRtspPlayer rtspPlayer,
            IWebRtcServer webRtcServer,
            IWebRtcConnectionManager webRtcConnectionManager,
            ILogger <RtspProxyService> logger,
            IDtlsHandler dtlsServer,
            IStunUserProvider stunUserProvider)
        {
            _rtspPlayer              = rtspPlayer;
            _webRtcServer            = webRtcServer;
            _webRtcConnectionManager = webRtcConnectionManager;
            _logger           = logger;
            _dtlsServer       = dtlsServer;
            _stunUserProvider = stunUserProvider;

            _rtspPlayer.RtpPacketReceived += RtpPacketReceived;
        }