Skip to content

Commit

Permalink
Fix playback state updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxocube committed Jan 6, 2025
1 parent bcf9f95 commit e39cd26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MediaFeeder/MediaFeeder/Components/SessionInfo.razor
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<ChildContent>
@if (Session?.Video != null)
{
@if (Session.CurrentPosition != null)
@if (Session?.CurrentPosition != null)
{
<Progress
Percent="@(Session.CurrentPosition.Value.TotalSeconds / Session.Video.DurationSpan.TotalSeconds)"></Progress>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public void ProgressUpdate(object? sender)

PlaybackSession.CurrentPosition = TimeSpan.FromSeconds(progress);
PlaybackSession.Quality = JsonSerializer.Serialize(status);
}).RunSynchronously();
}).Wait();
}

public async ValueTask DisposeAsync()
Expand Down

0 comments on commit e39cd26

Please sign in to comment.