My users are able to upload video files which are then scheduled to be shared on social media through Facebook, Linkedin, and Twitter API. The problem is that LinkedIn wants the video to be uploaded in small chunks of less than 4mb each. Is there a way to slice an uploaded video into smaller chunks?
For the video upload, I use uploadFiles as shown below. It’s a simple matter to retrieve the video’s url, or access file information through the Media Manager, but I am not sure how to take the next steps to chunk the video.
await $ w ( “#uploadvideo” ). uploadFiles ( $w ( “#uploadvideo” ). buttonLabel = “Uploading” )
. then ( async ( uploadedFiles ) => {
let videourl = uploadedFiles [ 0 ]. fileUrl ;