/// <summary> /// called when the current cast session ends (Disconnect or EndCastSession()) /// </summary> void OnCastEnd() { //show info Log("cast playback ended"); //recycle cast ui //have to recycle the ui as the xaml host (and thus the media player element) locks up otherwise castUI?.Hide(); }