Exemple #1
0
 private void OnPlaybackStopped(object sender, EventArgs ea)
 {
     lock (this)
     {
         // Ensure hte conferencePlayer has stopped
         ConferencePlayer player = (ConferencePlayer)sender;
         player.StopPlaying();
         sessions.Remove(player.Venue);
     }
 }
Exemple #2
0
 public void StopPlaying(IPEndPoint venue)
 {
     lock (this)
     {
         ConferencePlayer player = (ConferencePlayer)sessions[venue];
         if (player != null)
         {
             player.StopPlaying();
             sessions.Remove(venue);
         }
     }
 }