teodorpatras / Jukebox

Player for streaming local and remote audio files. Written in Swift.
MIT License
551 stars 122 forks source link

Not play song from url #77

Open npyadav opened 7 years ago

npyadav commented 7 years ago

Not play song from this url @"http://demo.atozcreation.com/chathuranga/app/uploads/playlist/16/596d283ab03a5_Main Ishq Uska(VipMusic.In).mp3"

i am used this lib // begin receiving remote events UIApplication.shared.beginReceivingRemoteControlEvents() //http://demo.atozcreation.com/chathuranga/app/uploads/playlist/16/596d283ab03a5_Main%20Ishq%20Uska(VipMusic.In).mp3 // configure jukebox jukebox = Jukebox(delegate: self, items: [ JukeboxItem(URL: URL(string: "http://demo.atozcreation.com/chathuranga/app/uploads/playlist/16/596d283ab03a5_Main%20Ishq%20Uska(VipMusic.In).mp3")!), JukeboxItem(URL: URL(string: "http://demo.atozcreation.com/chathuranga/app/uploads/playlist/16/596d283ab03a5_Main%20Ishq%20Uska(VipMusic.In).mp3")!), JukeboxItem(URL: URL(string: "http://demo.atozcreation.com/chathuranga/app/uploads/playlist/16/596d283ab03a5_Main%20Ishq%20Uska(VipMusic.In).mp3")!) ])!

    /// Later add another item
    let delay = DispatchTime.now() + Double(Int64(3 * Double(NSEC_PER_SEC))) / Double(NSEC_PER_SEC)
    DispatchQueue.main.asyncAfter(deadline: delay) {
        self.jukebox.append(item: JukeboxItem (URL: URL(string: "http://demo.atozcreation.com/chathuranga/app/uploads/playlist/16/596d283ab03a5_Main%20Ishq%20Uska(VipMusic.In).mp3")!), loadingAssets: true)
    }

but song not play.... :(

bhavin-a commented 6 years ago

I think its an error in the url because if you play it on the browser, it still play.