How to handle large video uploads in Webflow with partial gating while maintaining custom branding? Answered

Post author
Ramon Daniel

I'm new to MS. We have clients who need to upload video files and sometimes their very large. We were looking at Contentsnare, but don't like the page customization options, we want it to match our website.

Does MS limit the upload limit of files? Can we connect our Gdrive through API somehow or Zapier?

Thanks

Comments

7 comments

  • Comment author
    Chukwudi

    File/Image upload feature is currently scheduled for development in our roadmap. Currently planned for sometime in 2023.
    We are also working on documentation for solutions using 3rd party tools such as UploadCare, Webflow's upload field, etc.
    Please like/follow this feature in the wishlist to get notified when we've released short-term and long-term solutions to this problem.

    However, if you're looking to go through the Zapier route, that could still work for you. You may have to check out our article on Zapier integration here to get started.

    0
  • Comment author
    Ramon Daniel

    Thanks Chuk

    0
  • Comment author
    d yashovardhan

    I am not sure if this question has been answered anywhere, but I was wondering if it's possible to partially gate a video (lets say the first 90 seconds are visible to everyone). Is it possible to implement in webflow?

    0
  • Comment author
    Shadi null

    I would suggest just having 2 different videos (for security vulnerability reasons).
    1 video is the full video (only visible if they are on the premium plan)
    1 90 second edit (this is only available if you're not on a premium plan)

    if you're planning on just uploading 1 video and then previewing the first 90seconds from the full video, I would be concerned about the approach. If it's done through JS on the front-end, anyone can inspect the page and play the full video by changing your JS and watch the full video. However this is only a problem if you're planning on trimming videos via javascript through the user's browser

    0
  • Comment author
    d yashovardhan

    Thanks, that makes sense. I was thinking of using secure - server side validation enabled solution. We have literally thousands of videos, so anything which reduces the workload is welcome :-)

    0
  • Comment author
    Shadi null

    Oh that's a much safer approach. I totally understand why you'd want to automate the process, especially if you're talking thousands of videos.

    Maybe consider using FFMPEG like this github repo? I think this might be a good place to start - https://github.com/buggedcom/phpvideotoolkit-v2

    You'll have to customise it a little to trim the first 90 seconds of the clip
     
    Something along the lines of
     
    namespace PHPVideoToolkit;



    $video = new Video('path_to_your_uploaded_video.mp4');



    // Define the start and end timecodes for the segment you want to extract

    $start = new Timecode(0); // Start at the beginning of the video

    $end = new Timecode(90); // End at 90 seconds



    // Extract the segment and save it as a new file

    $process = $video->extractSegment($start, $end)

    ->save('path_to_save_trimmed_video.mp4');



    $output = $process->getOutput();
     
    You'd have to worry about timecodes though, make sure all videos start with the same timecode, otherwise it'll get a little more complicated as some studios embed custom timecodes like 01:00:00:00 as the starting timecode whereas others use 00:00:00:00 as the starting timecode
    0
  • Comment author
    d yashovardhan

    Thanks, really helpful!

    0

Please sign in to leave a comment.