INNER CODE UNIT · Swift

onSoundComplete

rxlabz/audioplayer · audioplayer/ios/Classes/SwiftAudioplayerPlugin.swift:127

    func onSoundComplete(note _: Notification) {
        stop()
        _channel.invokeMethod("audio.onComplete", arguments: nil)
    }

    func onTimeInterval(_ time: CMTime) {
        let mseconds = time.seconds * 1000
        _channel.invokeMethod("audio.onCurrentPosition", arguments: Int(mseconds))
    }

    func pause() {
        player?.pause()
        isPlaying = false
        _channel.invokeMethod("audio.onPause", arguments: nil)
    }

    func stop() {
        if isPlaying {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…