void _controller_InitialBitrateSelected(IHLSController sender, IHLSInitialBitrateSelectedEventArgs args) { //use this to set any propeties on the initial ActiveVariant before playback starts //E.g. set an alternate audio track to start with //if (_controller != null && _controller.Playlist.IsMaster) //{ // var audiorenditions = _controller.Playlist.ActiveVariantStream.GetAudioRenditions(); // if (audiorenditions != null) // { // var match = audiorenditions.ToList().Find((r) => // { // return r.Name == "someotheralternateaudio"; // }); // if (match != null) // match.IsActive = true; // } //} args.Submit(); }