loading the asset from the local filesystem if available.#1
loading the asset from the local filesystem if available.#1strfn wants to merge 5 commits intocstlex:masterfrom
Conversation
|
What problem does this solve? Shouldn't you know if the URLs you're passing in are local or remote on the initializer. Or perhaps I'm missing something. |
|
This is so the player streams the media from the local filesystem instead of the network if the file is available. |
|
@strfn Yeah it's an option. But it feels like it's not the job of this library. It's a streaming library. If you aren't streaming, several of the properties and methods may not act as you expect. For example, is This also slows things down slightly on the main thread for the typical case of streaming remotely ( You can just do this file check outside the Let me know if I'm wrong about this or if you have tested this more thoroughly. I can sympathize with wanting to use the same library in the disk AND network case. At minimum there should be a new BOOL property on the header that indicates if it's reading from disk not network. |
…ailed to make the connection.
…e url connection.
implemented NSURLConnection delegate method to handle the case when f…
* added a delegate method for authentication challenge * only write to file when it's 200 * make sure the local saved content is playable, if not get the file from server again. * making sure the method in the delegate is implemented before calling.
No description provided.