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

Video download #16

Closed
franciscerio opened this issue Jan 22, 2016 · 7 comments
Closed

Video download #16

franciscerio opened this issue Jan 22, 2016 · 7 comments
Assignees
Labels

Comments

@franciscerio
Copy link

I tried video download but it cant continue the last breakpoint/soFarBytes. Is this possible?

Thanks.

@Jacksgong
Copy link
Collaborator

Please check whether your FileDownloadListener#connected with the non nil ETag back.

@Jacksgong Jacksgong self-assigned this Jan 22, 2016
@franciscerio
Copy link
Author

I tried to download a video but the etag is always nil but if image not nil.

@Jacksgong
Copy link
Collaborator

So sorry, ETag is carry back by the response's header, I think you should ask your back-end colleague for help.

ps: Support for Resume Breakpoint because ETag.

@franciscerio
Copy link
Author

ohhh. i see. cool! I think all of the sample images have ETags. :)

Thanks!

@Jacksgong
Copy link
Collaborator

Good luck. :)

@franciscerio
Copy link
Author

Hi @Jacksgong does cache control matters? like public or private.

This is my error.

`response code error: 500,
request headers: If-Match: "asset-12c1031-3c834c-52c187443f040"
Range: bytes=723115-
Cache-Control: no-cache

response headers: Server: nginx/1.8.1
Date: Tue, 08 Mar 2016 03:03:07 GMT
Content-Type: text/html
Content-Length: 19229
Connection: keep-alive
Cache-Control: private, must-revalidate
Set-Cookie: laravel_session=eyJpdiI6ImtyVFZcL3dOU0d1XC9tTW92N2FDQzFRQT09IiwidmFsdWUiOiIranFFbUhXaHVwc1RMZVlWNWhQVmVhKzZjXC9TZFhTa3FoNzZSbVVXc1JXWW9pMnljT2l4eWV5dDdERFRVaDZmOTI2QjBHalNMdENzdXVadXk2T3psekE9PSIsIm1hYyI6IjE0OGNkOTA4Njg1NjA4Y2UzZjM0Yzc5MjU1OGMwNGZjNWIwY2YxNzdjMGY2OTYyZDA3YzZmNWQ0Y2VjMmUwNGMifQ%3D%3D; expires=Tue, 08-Mar-2016 05:03:07 GMT; Max-Age=7200; path=/; httponly
Last-Modified: Wed, 12 Feb 2014 19:04:52 GMT
Accept-Ranges: bytes
OkHttp-Sent-Millis: 1457406184805
OkHttp-Received-Millis: 1457406185253`

We tried cache control private but no luck. We are new in caching stuffs.

Thanks

@Jacksgong
Copy link
Collaborator

The Cache-Control is just for OkHttp, and we already save the response content to our path, so we don't need and Cache by OkHttp.

P.S: response code error: 500 means: Remote Server Internal Error(Ref. HTTP Error 500 Internal server error ), Not our Application's fault.

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

No branches or pull requests

2 participants