@using VideoStudy.Shared
@if (VideoInfo != null) {
@VideoInfo.Title
@VideoInfo.Author @VideoInfo.Duration.ToString(@"hh\:mm\:ss")
}
@code { [Parameter] public EventCallback OnVideoUrlChanged { get; set; } [Parameter] public bool IsProcessing { get; set; } [Parameter] public VideoInfo? VideoInfo { get; set; } private string VideoUrl { get; set; } = ""; private async Task OnUrlChanged(ChangeEventArgs e) { VideoUrl = e.Value?.ToString() ?? ""; await OnVideoUrlChanged.InvokeAsync(VideoUrl); } }