I wanted to keep the video recording and upload feature simple. So, along with the existing Reply with Text and Reply with Image, we are going to add another button named Reply with Video. This button will launch a modal and help us with the record and upload process. Open client/app/view-thread/view-thread.component.html and, next to the Reply with Image button at the bottom of the page, add the following code:
// SNIPP SNIPP<div class="col text-center"> <button class="btn btn-success" type="submit" (click)="uploadVideo(thread)"><i class="fa fa-video-camera"></i> Reply with Video</button></div>// SNIPP SNIPP
Next, the required logic for uploadVideo will be placed in client/app/view-thread/view-thread.component.ts ...