Skip to content

Commit

Permalink
fix(android): emit onPositionChanged when seek is completed (closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustl22 authored Sep 2, 2022
1 parent 05cd01e commit be7ac6a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ class AudioplayersPlugin : FlutterPlugin, IUpdateCallback {

fun handleSeekComplete(player: WrappedPlayer) {
channel.invokeMethod("audio.onSeekComplete", buildArguments(player.playerId))
channel.invokeMethod(
"audio.onCurrentPosition",
buildArguments(player.playerId, player.getCurrentPosition() ?: 0)
)
}

override fun startUpdates() {
Expand Down

0 comments on commit be7ac6a

Please sign in to comment.