private async void LoadDetails() { if (!string.IsNullOrEmpty(_playableItemVm.Path)) { var fileInfo = await _appContext.XBMC.Files.GetFileDetails(_playableItemVm.Path, Media.video, Files.AllFields()); var videodetails = fileInfo.filedetails.AsVideoDetailsFile; Details = fileInfo.filedetails.mimetype; if (videodetails.streamdetails.video.Count != 0) { Details += " (" + videodetails.streamdetails.video[0].codec + ")"; } AudioTracks.AddRange( videodetails.streamdetails.audio.Select((a, i) => new AudioTrackVm(a, i, _appContext))); Subtitles.AddRange( videodetails.streamdetails.subtitle.Select((a, i) => new SubtitleTrackVm(a, i, _appContext))); } }