示例#1
0
 public static void ReStart()
 {
     Shutdown();
     if (_srsListener == null)
     {
         _srsListener = new SRSListener(_srsReceivePortUdp, _srsSendToIPUdp, _srsSendPortUdp);
     }
 }
示例#2
0
 public static SRSListener GetSRSListener()
 {
     if (_srsListener == null)
     {
         _srsListener = new SRSListener(_srsReceivePortUdp, _srsSendToIPUdp, _srsSendPortUdp);
     }
     return(_srsListener);
 }
示例#3
0
 public static void Shutdown()
 {
     _srsListener?.ShutdownRP();
     _srsListener = null;
 }