PersistentStreamPlayer
PersistentStreamPlayer copied to clipboard
Not working with endless streams (radio streams)
Thanks for your work. i've tried to get this to work with radio streams which are endless stream , but it did not work
override func viewDidLoad() {
super.viewDidLoad()
let filemgr = FileManager.default
// let currentPath = filemgr.currentDirectoryPath
let dirPaths = filemgr.urls(for: .documentDirectory, in: .userDomainMask)
let docsDir = dirPaths[0].path
print("docsDir = \(docsDir)")
let url = URL(string: "http://mp3channels.webradio.antenne.de/oldies-but-goldies")!
let player = PersistentStreamPlayer(remoteURL: url, localURL: dirPaths[0])
player?.delegate = self
player?.play()
print("loaded")
}
any hint please