public static async Task connectToChannel() { try { mediaChannel = sender.GetChannel <IMediaChannel>(); mediastatus = await mediaChannel.GetStatusAsync(); } catch { } }
public async Task <bool> TryRefreshAsync() { try { await ConnectAsync(); ISender sender = MediaSender; IMediaChannel mediaChannel = sender.GetChannel <IMediaChannel>(); await mediaChannel.GetStatusAsync(); await RefreshQueueAsync(); return(true); } catch { } return(false); }
public Task <MediaStatus> GetMediaStatusAsync() { return(_mediaChannel.GetStatusAsync(_sender)); }