Skip to content

Commit

Permalink
Fix darwin build
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustl22 committed Aug 9, 2024
1 parent 25fec88 commit 5ebceca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public class SwiftAudioplayersDarwinPlugin: NSObject, FlutterPlugin {
message: "Error calling setReleaseMode, releaseMode cannot be null", details: nil))
return
}
player.releaseMode = ReleaseMode(rawValue: releaseModeStr.componentsSeparatedByString(".")[0])
player.releaseMode = ReleaseMode(rawValue: String(releaseModeStr.split(separator: ".")[1]))!
} else if method == "setPlayerMode" {
// no-op for darwin; only one player mode
} else if method == "setAudioContext" {
Expand Down

0 comments on commit 5ebceca

Please sign in to comment.