Skip to content

Commit

Permalink
[Blazor.GL] implement MediaPlayer.PlayPosition and VideoPlayer.PlayPo…
Browse files Browse the repository at this point in the history
…sition (#2184)
  • Loading branch information
nkast authored Jan 12, 2025
1 parent 1969e8f commit 64027fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Platforms/Media/Blazor/ConcreteMediaPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public override bool PlatformIsShuffled

public override TimeSpan PlatformPlayPosition
{
get { throw new NotImplementedException(); }
get { return _webPlayer.CurrentTime; }
}

protected override bool PlatformUpdateState(ref MediaState state)
Expand Down
2 changes: 1 addition & 1 deletion Platforms/Media/Blazor/ConcreteVideoPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public override bool IsMuted

public override TimeSpan PlayPosition
{
get { throw new NotImplementedException(); }
get { return _player.CurrentTime; }
}

public override float Volume
Expand Down

0 comments on commit 64027fe

Please sign in to comment.