INNER CODE UNIT · Swift
stop
rxlabz/audioplayer · audioplayer/ios/Classes/SwiftAudioplayerPlugin.swift:143
func stop() {
if isPlaying {
player!.pause()
isPlaying = false
}
playerItem?.seek(to: CMTimeMake(value: 0, timescale: 1))
_channel.invokeMethod("audio.onStop", arguments: nil)
}
func mute(muted: Bool) {
player?.isMuted = muted
}
func seek(time: CMTime) {
playerItem?.seek(to: time)
}
open override func observeValue(