Microsoft.PlayerFramework.Adaptive.HLS.HLSPlugin.HLSPlaylist_BitrateSwitchCompleted C# (CSharp) Méthode

HLSPlaylist_BitrateSwitchCompleted() private méthode

Called after the currently playing HLS playlist has switched bitrates.
private HLSPlaylist_BitrateSwitchCompleted ( object sender, IHLSBitrateSwitchEventArgs args ) : void
sender object The currently playling HLS playlist.
args IHLSBitrateSwitchEventArgs The that contains the details for the /// bitrate switch. Changes to the Cancel property will be ignored by the HLS Client.
Résultat void
    private async void HLSPlaylist_BitrateSwitchCompleted(object sender, IHLSBitrateSwitchEventArgs args)
    {
      await this.RefreshStateAsync();

      if (null != this.BitrateSwitchCompleted)
        this.BitrateSwitchCompleted(sender, args);
    }