Skip to content

Commit 0f96c0d

Browse files
committed
[Blazor.GL] implement MediaPlayer.PlayPosition and VideoPlayer.PlayPosition
1 parent 1969e8f commit 0f96c0d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Platforms/Media/Blazor/ConcreteMediaPlayer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public override bool PlatformIsShuffled
5353

5454
public override TimeSpan PlatformPlayPosition
5555
{
56-
get { throw new NotImplementedException(); }
56+
get { return _webPlayer.CurrentTime; }
5757
}
5858

5959
protected override bool PlatformUpdateState(ref MediaState state)

Platforms/Media/Blazor/ConcreteVideoPlayer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public override bool IsMuted
5353

5454
public override TimeSpan PlayPosition
5555
{
56-
get { throw new NotImplementedException(); }
56+
get { return _player.CurrentTime; }
5757
}
5858

5959
public override float Volume

0 commit comments

Comments
 (0)