Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Duration and CurrentTime properties #33

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The easiest html5 `video` implementation for [Blazor](https://blazor.net) applic
- Add standard Methods and Properties (big thanks to https://github.com/JPVenson) and Async versions (for Server/WASM). (Issues #17 #9)
- Include video element id ("Id") and component object ref ("Video") in VideoState and VideoEventData (Issue #19) for identifying which component triggered an event.


## Getting Setup

You can install the package via the nuget package manager - just search for *Blazored.Video*. You can also install via powershell using the following command.
Expand Down
8 changes: 4 additions & 4 deletions src/Blazored.Video/BlazoredVideo.razor.Properties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ public string CurrentSrc
/// <summary>
/// Sets or returns the current playback position in the audio/video (in seconds)
/// </summary>
public int CurrentTime
public double CurrentTime
{
get { return GetValue<int>(); }
get { return GetValue<double>(); }
set { SetValue(value); }
}

Expand All @@ -82,9 +82,9 @@ public double DefaultPlaybackRate
/// <summary>
/// Returns the length of the current audio/video (in seconds)
/// </summary>
public int Duration
public double Duration
{
get { return GetValue<int>(); }
get { return GetValue<double>(); }
}

/// <summary>
Expand Down