INNER CODE UNIT · Swift

milliseconds

florent37/Flutter-AssetsAudioPlayer · darwin/Classes/Music.swift:720

        let milliseconds = seconds * 1000;
        return milliseconds;
    }
    
    func getSecondsFromCMTime(_ time: CMTime) -> Double {
        return self.getMillisecondsFromCMTime(time) / 1000;
    }
    
    @objc func handleInterruption(_ notification: Notification) {
        #if os(iOS)
        if(!self.audioFocusStrategy.request) {
            return
        }
        
        guard let userInfo = notification.userInfo,
            let typeValue = userInfo[AVAudioSessionInterruptionTypeKey] as? UInt,
            let type = AVAudioSession.InterruptionType(rawValue: typeValue) else {
                return

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…