INNER CODE UNIT · Swift

pause

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

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

    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
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…