From 1d6ef1a5b9b7e2ed6360ddbea9b51f222a2fdd70 Mon Sep 17 00:00:00 2001 From: jeffreydwalter Date: Sat, 22 Sep 2018 14:45:53 -0500 Subject: [PATCH] Update README.md --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bb07c7e..3bc87c8 100644 --- a/README.md +++ b/README.md @@ -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 {