Update README.md

This commit is contained in:
jeffreydwalter 2018-09-22 14:45:53 -05:00 committed by GitHub
parent 0aa3577234
commit 1d6ef1a5b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,10 +94,8 @@ func main() {
go func() {
filename := fmt.Sprintf("%s %s.mp4", time.Unix(0, recording.UtcCreatedDate*int64(time.Millisecond)).Format(("2006-01-02 15:04:05")), recording.UniqueId)
// The videos produced by Arlo are pretty small, even in their longest, best quality settings,
// but you should probably prefer the chunked stream (see below).
// Download the whole video into memory as a single chunk.
// The videos produced by Arlo are pretty small, even in their longest, best quality settings.
// DownloadFile() efficiently streams the file from the http.Response.Body directly to a file.
if err := arlo.DownloadFile(recording.PresignedContentUrl, fmt.Sprintf("videos/%s", filename)); err != nil {
log.Println(err)
} else {