public void Dispose() { Timer.Stop(); Timer?.Dispose(); NextTitleBox?.Dispose(); FullscreenComponent?.Dispose(); }
public void Dispose() { Timer.Stop(); Timer?.Dispose(); NextTitleBox?.Dispose(); FullscreenComponent?.Dispose(); if (StreamId != null) { HttpService.PlaybackApiAccess.EndStream(StreamId).Wait(); } }
private async Task StopNextTitleBox() { ShowNextTitle = false; if (NextTitleBox != null) { if (NextTitleBox.Display) { await NextTitleBox.Hide(); } } StateHasChanged(); }
public async void OnPlayerPaused(VideoState obj) { ShowTitleInCurrentPlayback = true; LastKnownPosition = obj.CurrentTime; await UpdatePlayback(); Timer.Stop(); StateHasChanged(); if (NextTitleBox != null && NextTitleBox.Display) { NextTitleBox.StopTimer(); } }
public async Task DisplayNextTitleBox() { ShowNextTitle = true; StateHasChanged(); await Task.Yield(); if (NextTitleBox.Display) { return; } NextTitleBox.NextTitle = NextTitle; NextTitleBox.NextTitlePlayback = async() => { await GoToNextTitle(); }; NextTitleBox.StartTimer(); await NextTitleBox.Show(); }