Closed RajMohan143 closed 6 years ago
Do your urls contain file extension, e.g. ".mp3"?
Yes
Get Outlook for iOShttps://aka.ms/o0ukef
From: Nikita Belousov notifications@github.com Sent: Monday, October 30, 2017 10:23:27 PM To: neekeetab/CachingPlayerItem Cc: RajMohan143; Author Subject: Re: [neekeetab/CachingPlayerItem] Issue Playing my mp3 file from url (#6)
Do your urls contain file extension, e.g. ".mp3"?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/neekeetab/CachingPlayerItem/issues/6#issuecomment-340509539, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ARLL6XbJ7sfVe1dxuRAEWMEMb-sPXlFqks5sxf8HgaJpZM4QLc37.
The same file is playing in android. Mobile
Get Outlook for iOShttps://aka.ms/o0ukef
From: Nikita Belousov notifications@github.com Sent: Monday, October 30, 2017 10:23:27 PM To: neekeetab/CachingPlayerItem Cc: RajMohan143; Author Subject: Re: [neekeetab/CachingPlayerItem] Issue Playing my mp3 file from url (#6)
Do your urls contain file extension, e.g. ".mp3"?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/neekeetab/CachingPlayerItem/issues/6#issuecomment-340509539, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ARLL6XbJ7sfVe1dxuRAEWMEMb-sPXlFqks5sxf8HgaJpZM4QLc37.
Please, provide a link to a sample file so I can check it for myself. Along with the code ideally.
Hey @neekeetab didn't want to open a new issue so here it goes I try to use your code as you documented:
let playerItem = CachingPlayerItem(url: url, customFileExtension: "mp3")
but still not working, is there any other setting I should apply?
great lib btw, thanks for your work
Hey @pkhodaveissi,
What exactly is not working? Please provide more info and/or steps to reproduce.
This is the url:
https://drive.google.com/uc?export=download&id=1AjPwylDJgR8DOnmJWeRgZzjsohi-7ekj
I can play this using AVPlayerItem
but no chance using CachingPlayerItem
I can't help with steps cuz the project is somehow complicated, when testing with normal urls (*.mp3) everything's back to normal though
I can confirm that the playback won't start. I've noticed that the url redirects to another one with the actual file. But even with that url it won't play. I think the issue lies somewhere in the http header that comes with the request.
I don't know if you're restricted by using google drive. But I know people have used firebase storage and it worked fine with it. Just saying.
tnx man, good to know
I will take a deeper look at the issue with google drive links when I have more time. Please share your solution if you manage to get around this.
Well It's not a priority for me right now but will do happily whenever it becomes one
On Wed, Jan 2, 2019 at 5:58 PM Nikita Belousov notifications@github.com wrote:
I will take a deeper look at the issue with google drive links when I have more time. Please share your solution if you manage to get around this.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/neekeetab/CachingPlayerItem/issues/6#issuecomment-450876817, or mute the thread https://github.com/notifications/unsubscribe-auth/AD-kK2qI4Jh6QHpz9xPeoz9LlwtreLchks5u_MIegaJpZM4QLc37 .
I am only change the url. But file not playing. let strUrl = (arrCardData.object(at: tag)as!NSMutableDictionary).value(forKey: "voice")! let url = URL(string: strUrl as! String)! let playerItem = CachingPlayerItem(url: url) playerItem.delegate = self player = AVPlayer(playerItem: playerItem) player.automaticallyWaitsToMinimizeStalling = false player.play()
Delegate method showing data downloads and url file is playing on browser well.