private IList<IHLSAlternateRendition> GetAudioRenditions()
{
var audioRenditions = this._EmptyRenditionsList;
if (null != this._Controller && this._Controller.IsValid)
{
try
{
// get this value into a local variable as it can change and briefly be null during bitrate switching
var activeVariantStream = this._Controller.Playlist.ActiveVariantStream;
if (null != activeVariantStream && null != this._Controller.Playlist && this._Controller.Playlist.IsMaster)
audioRenditions.AddRange(activeVariantStream.GetAudioRenditions());
}
catch { }
}
return audioRenditions;
}
}