PersistentStreamPlayer icon indicating copy to clipboard operation
PersistentStreamPlayer copied to clipboard

Not working with endless streams (radio streams)

Open satyres opened this issue 5 years ago • 0 comments

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

satyres avatar Apr 05 '20 02:04 satyres