I'm trying to understand the basics of creating a video using Cloudinary and PHP.
I'm able to successfully add effects and text onto a video using this code:
$video = (new VideoTag('test_video.mp4'));
$video ->overlay(Overlay::source(Source::text("This text on top",(new TextStyle("Arial",80)))));
This just displays the video without a play button. I can then add the play button using Inspect elements, so I know it works.
But how would you typically work with such a video? Have I now created a new video file or is Cloudinary just editing the file on the fly and displaying the way I want it to every time the file is accessed? Is there a way for me to get the video source file from $video? Should I upload the new video to Cloudinary and get the source code from there? Or what's the right procedure?
I realize I probably just lack a basic understanding of how Cloudinary works, so I'd appreciate any input you can provide.
Post is closed for comments.