private async Task Implement(AudioEvents eventName) { await JSRuntime.InvokeVoidAsync("window.CustomEventHandler", Id, eventName.ToString().ToLower(), AudioState.GetPayload()); }
private void TimeUpdate(AudioState audioState) { _currentTime = audioState.CurrentTime.ToString(); _duration = audioState.Duration.ToString(); }