Skip to content

Commit

Permalink
Merge branch 'ali2236-minor' into minor
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanheise committed Aug 18, 2024
2 parents eb92889 + 485559d commit db77cec
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions just_audio/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 0.9.40

* Fix JDK 21 compile error.
* Bump package:web version to `>=0.5.1 <2.0.0`(@ali2236)

## 0.9.39

Expand Down
4 changes: 4 additions & 0 deletions just_audio_web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.4.12

* Bump package:web version to `>=0.5.1 <2.0.0` (@ali2236)

## 0.4.11

* Bump package:web upper bound to <0.6.0
Expand Down
4 changes: 2 additions & 2 deletions just_audio_web/lib/just_audio_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ abstract class UriAudioSourcePlayer extends IndexedAudioSourcePlayer {
@override
Duration get position {
if (_initialPos != null) return Duration(milliseconds: _initialPos!);
final seconds = _audioElement.currentTime as double;
final seconds = _audioElement.currentTime;
return Duration(milliseconds: (seconds * 1000).toInt());
}

Expand Down Expand Up @@ -894,7 +894,7 @@ class ClippingAudioSourcePlayer extends IndexedAudioSourcePlayer {
@override
Duration get position {
if (_initialPos != null) return Duration(milliseconds: _initialPos!);
final seconds = _audioElement.currentTime as double;
final seconds = _audioElement.currentTime;
var position = Duration(milliseconds: (seconds * 1000).toInt());
position -= effectiveStart;
if (position < Duration.zero) {
Expand Down
4 changes: 2 additions & 2 deletions just_audio_web/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: just_audio_web
description: Web platform implementation of just_audio. This implementation is endorsed and therefore doesn't require a direct dependency.
homepage: https://github.com/ryanheise/just_audio/tree/master/just_audio_web
version: 0.4.11
version: 0.4.12

flutter:
plugin:
Expand All @@ -18,7 +18,7 @@ dependencies:
sdk: flutter
flutter_web_plugins:
sdk: flutter
web: '>=0.3.0 <0.6.0'
web: '>=0.5.1 <2.0.0'

dev_dependencies:
flutter_lints: ^2.0.1
Expand Down

0 comments on commit db77cec

Please sign in to comment.