Skip to content

Commit

Permalink
Merge pull request #104 from Sithira/bug/103
Browse files Browse the repository at this point in the history
Fixed #103.
  • Loading branch information
Sithira authored Oct 15, 2024
2 parents 86e8794 + a82f29e commit c869567
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 44 deletions.
90 changes: 47 additions & 43 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,76 +1,80 @@
## 0.0.1
# 3.0.1

* Initial Release release of FlutterRadioPlayer
* Added missing method `jumpToSourceIndex(index)`

# 1.0.0
# 3.0.0

* Updated Read me.
* Completely Rewritten from scratch with backward compatibility in-mind
* Now supports album arts in both iOS and Android platforms
* Better support for platform native companion playbacks like watchOS, wearOS, CarPlay, and Android Auto
* Multiple bugfixes and enhancements from previous versions

# 1.0.1
# 2.0.3

* Fixed pubpec
* Bugfixes for Android 14+

# 1.0.2
# 2.0.2

* Fixed pubpec
* Fixed compiling error.

# 1.0.3
# 2.0.1

* Fixed pubpec
* Updated for better rating

# 1.0.4
# 2.0.0

Fixed bugs and slightly improved documentation.
* Completely Rewritten from scratch with backward compatibility in-mind
* Supports multiple media-sources
* Better Events / Reactivity
* Better watchOS / WearOS support
* Better native control support
* New methods to control the player better

* Fixed an issue where player failed to bind to the application context.
* Fixed an issue with EventSink.
* Fixed a typo in the pubspec
# 1.1.0

# 1.0.5
* Updated to NULL-SAFETY
* Updated exo-player version
* Bug fixes and improvements

Fixed bugs, reorganized code and improved documentation.
# 1.0.7

* Added setUrl method to dynamically change the playing URL.
* Improved documentation.
* Fixed media meta-data on iOS

# 1.0.6

* Fixed media meta-data bug and dynamic URL changing issue.

# 1.0.7
# 1.0.5

* Fixed media meta-data on iOS
Fixed bugs, reorganized code and improved documentation.

# 1.1.0
* Added setUrl method to dynamically change the playing URL.
* Improved documentation.

* Updated to NULL-SAFETY
* Updated exo-player version
* Bug fixes and improvments
# 1.0.4

# 2.0.0
Fixed bugs and slightly improved documentation.

* Completely Rewritten from scratch with backward compatibility in-mind
* Supports multiple media-sources
* Better Events / Reactivity
* Better watchOS / WearOS support
* Better native control support
* New methods to control the player better
* Fixed an issue where player failed to bind to the application context.
* Fixed an issue with EventSink.
* Fixed a typo in the pubspec

# 2.0.1
# 1.0.3

* Updated for better rating
* Fixed pubpec

# 2.0.2
# 1.0.2

* Fixed compiling error.
* Fixed pubpec

# 2.0.3
# 1.0.1

* Bugfixes for Android 14+
* Fixed pubpec

# 3.0.0
# 1.0.0

* Completely Rewritten from scratch with backward compatibility in-mind
* Now supports album arts in both iOS and Android platforms
* Better support for platform native companion playbacks like watchOS, wearOS, CarPlay and Android Auto
* Multiple bugfixes and enhancements from previous versions
* Updated Read me.

# 0.0.1

* Initial Release of FlutterRadioPlayer
4 changes: 4 additions & 0 deletions lib/flutter_radio_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ class FlutterRadioPlayer {
return FlutterRadioPlayerPlatform.instance.previousSource();
}

Future<void> jumpToSourceIndex(int index) {
return FlutterRadioPlayerPlatform.instance.jumpToSourceIndex(index);
}

Stream<bool> getPlaybackStream() =>
FlutterRadioPlayerPlatform.instance.getIsPlayingStream();

Expand Down
2 changes: 1 addition & 1 deletion lib/flutter_radio_player_method_channel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class MethodChannelFlutterRadioPlayer extends FlutterRadioPlayerPlatform {

@override
Future<void> jumpToSourceIndex(int index) async {
await methodChannel.invokeMethod("jumpToItem", {"index": index});
await methodChannel.invokeMethod("sourceAtIndex", {"index": index});
}

@override
Expand Down

0 comments on commit c869567

Please sign in to comment.