Video by HeyTimDev · streamed from YouTube. All rights remain with the creator.
Lesson 8: Recording and Uploading Video
About this lesson
In this tutorial, HeyTimDev adds camera functionality to the short-video app, so that users can record videos and upload them using Expo and Supabase, which brings the app's central feature to life. It begins by setting up camera access in Expo and managing the permissions that the phone requires before an app may use the camera, so that users are asked properly and the app responds sensibly to their choice. You then implement recording videos directly from inside the app. Once a clip has been recorded, the video file is saved to Supabase Storage, and the video shows how to upload and store videos in a structured storage bucket, so that the files are organised rather than scattered. Security and ownership come into play as well: the tutorial covers managing authentication and user-specific storage for uploads, so that each video is stored in relation to the person who recorded it. The uploaded videos are then organised in the database and linked to user profiles, so that the app knows which videos belong to which user when it later builds the feed and profile pages. Finally, the video creates a modal for a seamless recording experience, so that the camera opens over the rest of the app and returns the user smoothly when recording is finished. By the end, the app has a working camera feature that lets users record, upload and store videos in a secure back end, and the next video displays the uploaded videos in the feed. Afterwards, read Chapter 8 of the course book, which works out clip sizes and upload times by hand.