I discovered that my app was failing to display the generated video because I was incorrectly extracting the video URL from the Fal.ai API response. Initially, my code assumed the video data was inside a property called data (i.e., final_obj.data), but in reality, the final result was returned directly as a plain dictionary in final_obj with the structure {"video": {"url": "..."}}. Once I logged the final API response, I realised I needed to use final_obj directly to extract the video URL. This change fixed the issue, and now the correct URL is passed to the template, allowing the video to display as intended.