Skip to content
This repository was archived by the owner on Jul 17, 2025. It is now read-only.

Fix build error on macOS #864

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions darwin/Classes/Music.swift
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ public class Player : NSObject, AVAudioPlayerDelegate {
}
#endif

func invokeListenerStop(){
self.channel.invokeMethod(Music.METHOD_CURRENT, arguments: nil)
}

#if os(iOS)
var targets: [String:Any] = [:]

Expand Down Expand Up @@ -214,10 +218,6 @@ public class Player : NSObject, AVAudioPlayerDelegate {
self.channel.invokeMethod(Music.METHOD_PLAY_OR_PAUSE, arguments: [])
}

func invokeListenerStop(){
self.channel.invokeMethod(Music.METHOD_CURRENT, arguments: nil)
}

func setupMediaPlayerNotificationView(notificationSettings: NotificationSettings, audioMetas: AudioMetas, isPlaying: Bool) {
self.notificationSettings = notificationSettings
self.audioMetas = audioMetas
Expand Down