Skip to content

Commit

Permalink
Fix semi-endorsement issue for just_audio_libwinmedia.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanheise committed Nov 4, 2021
1 parent 5d9e045 commit 0aef1be
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 4 additions & 0 deletions just_audio/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.9.16

* Fix pubspec declaration for Linux/Windows implementation.

## 0.9.15

* Fix bug initialising proxy on ConcatenatingAudioSource.add.
Expand Down
4 changes: 3 additions & 1 deletion just_audio/example/lib/example_playlist.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
print('A stream error occurred: $e');
});
try {
await _player.setAudioSource(_playlist);
// Preloading audio is not currently supported on Linux.
await _player.setAudioSource(_playlist,
preload: kIsWeb || defaultTargetPlatform != TargetPlatform.linux);
} catch (e) {
// Catch load errors: 404, invalid url...
print("Error loading audio source: $e");
Expand Down
6 changes: 1 addition & 5 deletions just_audio/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: just_audio
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.
version: 0.9.15
version: 0.9.16
homepage: https://github.com/ryanheise/just_audio/tree/master/just_audio

environment:
Expand Down Expand Up @@ -44,7 +44,3 @@ flutter:
pluginClass: JustAudioPlugin
web:
default_package: just_audio_web
windows:
default_package: just_audio_libwinmedia
linux:
default_package: just_audio_libwinmedia

0 comments on commit 0aef1be

Please sign in to comment.