Exemple #1
0
 //结束直播
 public void DoStopLiveStream()
 {
     if (live_streaming_ && pls_client_ != IntPtr.Zero)
     {
         LSClientNativeMethods.Nlss_StopLiveStream(pls_client_);
         live_streaming_ = false;
         nimSDKHelper.EndDevices();
     }
 }
Exemple #2
0
 public void ClearSession()
 {
     if (pls_client_ != IntPtr.Zero)
     {
         if (live_streaming_)
         {
             LSClientNativeMethods.Nlss_StopLiveStream(pls_client_);
         }
         LSClientNativeMethods.Nlss_UninitParam(pls_client_);
         LSClientNativeMethods.Nlss_Destroy(pls_client_);
     }
 }