Capture video and audio in “bite-sized” chunks

Trevor Miller
InstructorTrevor Miller

Share this video with your friends

Send Tweet
Published 6 years ago
Updated 4 years ago

You aren’t the “1-take dizzle”. Instead of trying to get an entire lesson captured in a single capture, consider capturing audio and video in chunks. With our without a script, capturing in chunks makes it easy to redo parts and stay on-topic. You might see a repeating pattern of typing a bit of code > stop and explain as needed > typing a bit of code > repeat.

[00:00] Recording becomes easier when we record in bite-size chunks. It can be helpful to record with large pauses, so we can think about what we're going to say for the next chunk. This also helps splice together the good pieces when we start editing.

[00:14] We can record audio and video separately or at the same time. Let's view an example.

[00:19] First, let's type const URL and we'll set that equal to a string template. First, let's type const URL and let's set that equal to the GitHub API, so that's Then we need some sort of user here that we can pass to this path.

[00:58] Let's type const user equals some GitHub user name, which, if we use mine, that's Trevor D. Miller. Now we can use the global fetch function by saying fetch and then passing it our URL.

[01:19] This function will return a promise, so we can say .then. When this promise resolves, it will contain our response. We'll say response and inside of this function, we can say response.JSON to convert our response into JSON.

[01:56] Now we can say .then, and we can use our JSON response. Let's type .then. We'll have our JSON data, so we can do something with that. Let's console log out the type of the GitHub account.

[02:27] We see we have the type of user, because the Trevor D. Miller GitHub account is of type user. If we go back up to our user string here and use Facebook, and we look at our browser, we now see that Facebook is of type organization.

[02:52] Let's go down and type .catch. This will be used if we get an error, so we will get our error, and we can use that error, so let's just log out the error in this case.

[03:12] Let's check that in our browser. Right now we're not getting an error. Let me turn off my network connection.

[03:30] Now we get this type error failed to fetch.