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

HLSControllerFactory_HLSControllerReady() private method

Called when the HLS Client has initialized the IHLSController
private HLSControllerFactory_HLSControllerReady ( object sender, IHLSController controller ) : void
sender object The that was used to initialize the HLS Client.
controller IHLSController The used to handle bitrate switching, etc.
return void
    private void HLSControllerFactory_HLSControllerReady(object sender, IHLSController controller)
    {
      try
      {
        this.UninitializeController();
        this._Controller = controller;
        this.InitializeController();

        if (null != this.HLSControllerReady)
          this.HLSControllerReady(sender, this._Controller);
      }
      catch
      {
        // Swallow these exceptions as 404s and other errors can cause the SDK code above to throw
        //throw;
      }
    }