Microsoft.PlayerFramework.Adaptive.HLS.HLSPlugin.UninitializeController C# (CSharp) Method

UninitializeController() private method

Uninitialize the controller.
private UninitializeController ( ) : void
return void
    private void UninitializeController()
    {
      try
      {
        if (null != this._Controller && this._Controller.IsValid && null != this._Controller.Playlist)
        {
          this._Controller.Playlist.BitrateSwitchSuggested -= this.HLSPlaylist_BitrateSwitchSuggested;
          this._Controller.Playlist.BitrateSwitchCompleted -= this.HLSPlaylist_BitrateSwitchCompleted;
          this._Controller.Playlist.BitrateSwitchCancelled -= this.HLSPlaylist_BitrateSwitchCancelled;
          this._Controller.Playlist.StreamSelectionChanged -= this.HLSPlaylist_StreamSelectionChanged;
          this._Controller.Playlist.SegmentSwitched -= this.Playlist_SegmentSwitched;
        }
      }
      catch { }
    }