Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with endless streams (radio streams) #8

Open
satyres opened this issue Apr 5, 2020 · 0 comments
Open

Not working with endless streams (radio streams) #8

satyres opened this issue Apr 5, 2020 · 0 comments

Comments

@satyres
Copy link

satyres commented Apr 5, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant