Skip to content

Commit 485559d

Browse files
committed
Fix versioning and warnings.
1 parent da30a01 commit 485559d

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

just_audio/CHANGELOG.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
## 0.9.41
2-
3-
* Bump package:web version to `>=0.5.1 <2.0.0`(@ali2236)
4-
51
## 0.9.40
62

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

96
## 0.9.39
107

just_audio/pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: just_audio
22
description: A feature-rich audio player for Flutter. Loop, clip and concatenate any sound from any source (asset/file/URL/stream) in a variety of audio formats with gapless playback.
3-
version: 0.9.41
3+
version: 0.9.40
44
repository: https://github.com/ryanheise/just_audio/tree/minor/just_audio
55
issue_tracker: https://github.com/ryanheise/just_audio/issues
66
topics:
@@ -17,7 +17,7 @@ dependencies:
1717
just_audio_platform_interface: ^4.3.0
1818
# just_audio_platform_interface:
1919
# path: ../just_audio_platform_interface
20-
just_audio_web: ^0.4.12
20+
just_audio_web: ^0.4.11
2121
# just_audio_web:
2222
# path: ../just_audio_web
2323
audio_session: ^0.1.14

just_audio_web/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## 0.4.12
22

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

55
## 0.4.11
66

just_audio_web/lib/just_audio_web.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ abstract class UriAudioSourcePlayer extends IndexedAudioSourcePlayer {
690690
@override
691691
Duration get position {
692692
if (_initialPos != null) return Duration(milliseconds: _initialPos!);
693-
final seconds = _audioElement.currentTime as double;
693+
final seconds = _audioElement.currentTime;
694694
return Duration(milliseconds: (seconds * 1000).toInt());
695695
}
696696

@@ -894,7 +894,7 @@ class ClippingAudioSourcePlayer extends IndexedAudioSourcePlayer {
894894
@override
895895
Duration get position {
896896
if (_initialPos != null) return Duration(milliseconds: _initialPos!);
897-
final seconds = _audioElement.currentTime as double;
897+
final seconds = _audioElement.currentTime;
898898
var position = Duration(milliseconds: (seconds * 1000).toInt());
899899
position -= effectiveStart;
900900
if (position < Duration.zero) {

0 commit comments

Comments
 (0)