INNER CODE UNIT · Swift

log

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

    func log(_ message: String){
        channel.invokeMethod("log", arguments: message)
    }
    
    func getUrlByType(path: String, audioType: String, assetPackage: String?) -> URL? {
        var url : URL
        
        if(audioType == "network" || audioType == "liveStream"){
            if let u = URL(string: path) {
                return u
            } else {
                print("Couldn't parse myURL = \(path)")
                return nil
            }
            
        } else if(audioType == "file"){
            var localPath = path
            //if(localPath.starts(with: "/")){ //if alreeady starts with "file://", do not add

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…