Skip to content

Commit

Permalink
More bug fixes on web for playlist manipulation (just_audio_web 0.2.3).
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanheise committed Jan 23, 2021
1 parent 6eb5ae0 commit 07dfbac
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
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.2.3

* Fix bug when modifying playlists (insert/move).

## 0.2.2

* Fix bug with empty playlist.
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 @@ -309,9 +309,9 @@ class Html5AudioPlayer extends JustAudioPlayer {
@override
Future<ConcatenatingInsertAllResponse> concatenatingInsertAll(
ConcatenatingInsertAllRequest request) async {
_concatenating(request.id).setShuffleOrder(request.shuffleOrder);
_concatenating(request.id)
.insertAll(request.index, getAudioSources(request.children));
_concatenating(request.id).setShuffleOrder(request.shuffleOrder);
if (request.index <= _index) {
_index += request.children.length;
}
Expand Down Expand Up @@ -353,8 +353,8 @@ class Html5AudioPlayer extends JustAudioPlayer {
@override
Future<ConcatenatingMoveResponse> concatenatingMove(
ConcatenatingMoveRequest request) async {
_concatenating(request.id).move(request.currentIndex, request.newIndex);
_concatenating(request.id).setShuffleOrder(request.shuffleOrder);
_concatenating(request.id).move(request.currentIndex, request.newIndex);
if (request.currentIndex == _index) {
_index = request.newIndex;
} else if (request.currentIndex < _index && request.newIndex >= _index) {
Expand Down
19 changes: 13 additions & 6 deletions just_audio_web/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ packages:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0-nullsafety.3"
version: "1.1.0-nullsafety.5"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.15.0-nullsafety.3"
version: "1.15.0-nullsafety.5"
flutter:
dependency: "direct main"
description: flutter
Expand All @@ -25,6 +25,13 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
js:
dependency: transitive
description:
name: js
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.3-nullsafety.3"
just_audio_platform_interface:
dependency: "direct main"
description:
Expand All @@ -38,7 +45,7 @@ packages:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0-nullsafety.3"
version: "1.3.0-nullsafety.6"
plugin_platform_interface:
dependency: transitive
description:
Expand All @@ -57,14 +64,14 @@ packages:
name: typed_data
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0-nullsafety.3"
version: "1.3.0-nullsafety.5"
vector_math:
dependency: transitive
description:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0-nullsafety.3"
version: "2.1.0-nullsafety.5"
sdks:
dart: ">=2.10.0-110 <2.11.0"
dart: ">=2.12.0-0 <3.0.0"
flutter: ">=1.12.13+hotfix.5"
2 changes: 1 addition & 1 deletion 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
homepage: https://github.com/ryanheise/just_audio/tree/master/just_audio_web
version: 0.2.2
version: 0.2.3

flutter:
plugin:
Expand Down

0 comments on commit 07dfbac

Please sign in to comment.