🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Video Offload Premium Add-on Setup Guide

Updated 15 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What You Get
  3. Requirements
  4. Quick Start
  5. Step 1: Enter the Keys of Your Platform
  6. Bunny Stream
  7. Cloudflare Stream
  8. Mux
  9. Vimeo (new in 1.1.0)
  10. YouTube (new in 1.1.0)
  11. Privacy on Vimeo and YouTube
  12. Step 2: Add a Feed to a Form
  13. How a Video Travels
  14. The Entry View
  15. Merge Tags
  16. Private Playback
  17. Delete the Local File Safely
  18. Webhooks
  19. Security Summary
  20. Troubleshooting
  21. The video stays queued
  22. The video failed with a 401 or 403
  23. It says the file is no longer on this server
  24. The video stays in processing
  25. Can I send the same video to two platforms?
  26. What happens if I uninstall the add-on?

Video walkthrough

Gravity Forms Video Offload Setup Guide: Bunny Stream, Cloudflare Stream, Mux (WordPress Side)
Video setup guide: Gravity Forms Video Offload Watch on YouTube

Video Offload sends the videos that visitors give you through Gravity Forms to a video platform and keeps the playback link in the entry. Videos stay out of your WordPress uploads folder, your server does not have to stream them, and the person who reads the entry sees a player instead of a link to a heavy file. You choose the platform for each form: Bunny Stream, Cloudflare Stream or Mux.

A Gravity Forms entry page with the Video Offload box showing three videos with the status Ready and the embedded player of each platform
The entry shows each video with its status and the player, so you can watch it without leaving the entry.

Large video files are the hard part of any form that asks for them. They fill the disk, they are slow to download, they play badly on a phone and they are a pain to back up. A video platform solves all of that, but somebody has to move the file there. This add-on does it for you, in the background, after the form was submitted, so the visitor never waits and a slow platform can never break a form.

What You Get

  • A feed for each form and platform. It works with File Upload fields and with the Video Recording and Screen Recording fields of GravityExtra. Files that are not videos are skipped.
  • Three platforms behind one screen: Bunny Stream, Cloudflare Stream and Mux. Add a second feed to send the same video to two platforms.
  • A background queue that uses Action Scheduler when it is there and WP-Cron otherwise. The form submit does not talk to any platform.
  • Small files go in one request. Large files go in pieces with the resumable upload of each platform, and a run that is interrupted continues where it stopped.
  • Automatic retries with a growing wait of 30 seconds, one minute, two minutes and so on up to an hour, and a clear failure with the reason when the attempts are used up.
  • A status for every video: queued, uploading, processing, ready or failed, with notes in the entry.
  • Webhook support with signature checks for all three platforms. A webhook only tells the add-on to look again; the answer always comes from the platform API.
  • The playback link stored with the entry, optionally copied into a field, and the player embedded in the entry view.
  • Merge tags for notifications and confirmations: the link, the player and the status.
  • Private playback with signed links on all three platforms.
  • An option to delete the local file once the platform has confirmed the video, with safety rules.
  • Keys encrypted before they are saved, conditional logic on the feed and a clean uninstall.

Requirements

You need Gravity Forms 2.9 or newer, WordPress 6.5 or newer, PHP 7.4 or newer with the OpenSSL extension, an active license key and an account with at least one platform. The background queue needs WP-Cron or Action Scheduler to run. On a busy site the default WP-Cron is fine; on a quiet site a real cron job that calls wp-cron.php every minute makes the videos move sooner. If no platform is set up yet, the add-on shows a notice on the Gravity Forms pages.

Quick Start

  1. Install and activate the add-on, then activate your license key under Forms, Settings, Video Offload.
  2. On the same screen enter the keys of your platform. Save.
  3. Open your form, go to Settings, Video Offload and add a feed. Pick the platform and the fields that hold videos.
  4. Submit a test entry with a short video. Open the entry: the Video Offload box shows the status and, a little later, the player.
The Video Offload settings page of Gravity Forms with three panels for Bunny Stream, Cloudflare Stream and Mux, each with its account fields and a key field that shows as dots
One settings page for the three platforms. Saved keys are encrypted and never shown again.

Step 1: Enter the Keys of Your Platform

All keys are entered once under Forms, Settings, Video Offload. Each key field shows as dots after saving. The saved value is encrypted with a key that comes from your site salts, so it never appears in the page, in the option that stores the settings or in an export in plain text. To keep a saved key, leave its field as it is. To replace it, type the new one.

Bunny Stream

Open your video library in the Bunny dashboard. Copy the Library ID and the API key of the library. The CDN host name is optional: when you enter it, the stored link is the HLS playlist on your own pull zone, otherwise it is the embed link of the Bunny player. For private playback add the token authentication key from the Security page of the library. To use webhooks, add the read-only API key of the library and enter the webhook address shown on the screen in the library settings.

Cloudflare Stream

Enter your Account ID and an API token that has the Stream edit permission. The button Register this webhook with Cloudflare sets the webhook address of your account and saves the signing secret, encrypted. A Cloudflare account has room for one Stream webhook, so register it only if you do not use the slot for something else.

Mux

Create an access token in the Mux dashboard with read and write access to Mux Video and enter the token ID and the token secret. For private playback create a signing key, then enter its ID and its private key. For webhooks add a webhook in Mux that points to the address shown on the screen and paste its signing secret.

Bunny Stream Cloudflare Stream Mux
Keys you enter Library ID and library API key Account ID and an API token Access token ID and secret
Small files One PUT request One multipart request Direct upload, or Mux downloads a signed link
Large files tus resumable upload tus resumable upload Resumable upload in 8 MiB pieces
Stored in the entry Video GUID and embed link Video UID and iframe link Asset ID and playback ID
Private playback Token authentication key Require signed URLs Signed playback ID and signing key
Webhook check Signed with the read-only key Signing secret from the webhook Signing secret of the webhook

Vimeo (new in 1.1.0)

Vimeo works with your own personal access token. Sign in at developer.vimeo.com, open My Apps, choose your app (or create one), go to Generate an access token, pick Authenticated (you) and tick the scopes public, private, upload and edit. Copy the token into the Personal access token field of the Vimeo panel and save. The field stays empty after saving and only the last four characters are shown, so you can tell which token is stored. To replace it, type the new token; to remove it, tick Remove the saved value and save.

Vimeo asks every app to have upload access before it can upload through the API. Vimeo Free members must first ask Vimeo for API upload access. Uploads also count against the quota of your Vimeo plan: when a weekly, daily or total limit is reached, Vimeo refuses the upload and the entry note shows the reason and Vimeo’s error code (for example 4102 for the weekly quota). Use Try again in the entry once there is room again.

How it uploads: the add-on creates the video on Vimeo with the resumable (tus) method, then sends the file in pieces of 8 MB in the background. If a step is cut off, the next step first asks Vimeo how much it already has and goes on from there, so nothing is sent twice. When Vimeo reports the video as available, the entry gets the Vimeo link and the player link that Vimeo returns.

YouTube (new in 1.1.0)

YouTube works with your own Google Cloud project, so the uploads use your own quota and your own consent screen. The setup takes about ten minutes:

  1. In the Google Cloud console create a project (or pick one) and enable the YouTube Data API v3.
  2. Set up the OAuth consent screen. Add yourself as a test user while it is in testing.
  3. Create an OAuth client ID of the type Web application. Under Authorized redirect URIs add the address shown in the YouTube panel of the add-on. It ends with wp-admin/admin-post.php?action=gfvoff_yt_callback and must start with https.
  4. Copy the client ID and the client secret into the YouTube panel and save. The secret is encrypted and shown masked.
  5. Click Connect a YouTube channel, sign in with the Google account of the channel and allow both permissions: upload videos and view your YouTube account. The panel then shows the name of the connected channel.

The add-on asks for two permissions: youtube.upload to upload the video and youtube.readonly to read the channel name and the processing status of the videos it uploaded (private and unlisted videos included). If you untick one of them on the Google screen, the connection is refused and the panel asks you to connect again. Disconnect removes the connection from your site and asks Google to revoke it; if Google does not confirm, remove the access under your Google Account, Security, Third-party access.

The YouTube panel of the Video Offload settings: OAuth client ID, the masked client secret, the redirect address to add in Google Cloud and the connected channel with a Disconnect button
The YouTube panel after the channel was connected.

Limits set by Google, in plain words. While your consent screen is in Testing, Google may show an “unverified app” screen before the consent screen, and the connection stops working after 7 days; connect again, or publish the app (Google may ask you to verify it). An unverified app is limited to 100 new users, which is plenty for one site. By default a Google Cloud project can upload 100 videos per day; the status checks use the separate allowance of 10,000 units per day, and each check costs one unit. Quotas reset at midnight Pacific Time. When the daily quota is used up, the video fails with a note that says so; use Try again after the reset, or ask Google for more quota in the Cloud console. Your channel can also have its own daily upload limit on YouTube.

How it uploads: the add-on starts a resumable upload session, sends the file in pieces of 8 MB and, before it goes on after a break, asks YouTube how many bytes arrived. When YouTube has processed the video, the entry gets the watch link and the embed link.

Privacy on Vimeo and YouTube

In a feed that sends to Vimeo or YouTube a privacy choice appears under the platform. For Vimeo: Only me (private), Anyone with the link (unlisted) or Anyone (public); for YouTube: Private, Unlisted or Public. The default is private on both. A private video plays only for the account owner who is signed in, so the player in the entry may show a sign-in or “private” message; choose unlisted if your team should watch it from the entry. Some Vimeo plans do not allow every option, in which case Vimeo refuses the upload and the note shows Vimeo’s reason. A public YouTube upload may notify the subscribers of your channel. The signed-links switch is for Bunny Stream, Cloudflare Stream and Mux only and is hidden for Vimeo and YouTube.

A Video Offload feed with YouTube as the platform, the File Upload field ticked, a title with a merge tag and YouTube privacy set to Unlisted
A feed that sends videos to YouTube as unlisted.

Everything else works the same for all five platforms: the queue, the retries, the statuses, the entry notes, the link field, the merge tags, the player in the entry, conditional logic and the safe deletion of the local file. Feeds you made before 1.1.0 keep working exactly as before; nothing has to be set up again.

Step 2: Add a Feed to a Form

Open the form, then Settings, Video Offload, and add a feed.

  • Video platform: where the videos go. A platform whose keys are missing is marked.
  • Fields with videos: tick the File Upload, Video Recording and Screen Recording fields of the form. All of them are ticked at first.
  • Video title on the platform: optional, merge tags work. Empty means the file name.
  • Private playback: turn it on for signed links, see below.
  • How Mux gets the file: only for Mux. Direct upload sends the file from your site. The second choice lets Mux download it from a signed temporary link on your site, which is useful for very large files but needs a site that Mux can reach.
  • Copy the link into this field: optional. Pick a text, paragraph, hidden or website field and the playback link is added to it when the video is ready, one line per video.
  • Delete the local file: see below.
  • Conditional logic: send only when a rule is met, for example only when a checkbox says that the video may be shared.
The Video Offload feed settings of a form: name, video platform, the fields that hold videos, the video title, private playback, the Mux option, the field for the link and the switch to delete the local file
The feed of one form: choose the platform, the fields with videos and what should happen to the local file.

How a Video Travels

When the entry is saved the feed makes one job for every video file and schedules the first step. That takes a few milliseconds and sends nothing, so the confirmation appears at once. The steps then run in the background. If the form has payment feeds you can send the video only after the payment is completed, with the usual option of Gravity Forms feeds.

Status What it means
Queued The entry is saved and the video waits for its turn. Nothing has been sent yet.
Uploading The file is on its way. A large file is sent in pieces over several background runs.
Processing The platform has the file and is encoding it. The add-on asks again, or a webhook tells it to ask now.
Ready The platform confirmed that the video can be played. The links are stored and the local file may be deleted.
Failed The platform refused the video, a key is wrong or the attempts ran out. The reason is shown in the entry and in a note, with a Try again link.

A step that fails because of a temporary problem, such as a timeout or an error 500 or 429, is tried again after 30 seconds, then after one minute, two minutes and so on, up to an hour. After five attempts the video is marked as failed. A refusal that cannot get better by waiting, such as a wrong key (401 or 403) or a missing file, fails at once. A file that was already created on the platform is reused when a step is repeated, so a retry never makes a second copy.

A large file is sent in pieces of 8 MiB. Each background run sends pieces until its time budget is used, saves where it stopped and schedules the next run, so a file of several gigabytes does not need a long PHP time limit. Files up to 32 MiB go in a single request.

The Entry View

Open any entry that has videos. The Video Offload box shows each file with its platform and its status. When the video is ready the player of the platform is embedded right there. A failed video shows the reason and a Try again button that starts the video over from the beginning. Entry notes record when a video was queued, when it was ready or why it failed and when the local copy was deleted.

Merge Tags

Use these tags in notifications, confirmations and anywhere Gravity Forms accepts merge tags. Replace 5 with the ID of the field:

{video_offload:5:url}
{video_offload:5:embed}
{video_offload:5:status}
  • url is the playback link. For several videos in one field the links are on separate lines.
  • embed is the player. In an HTML message it is an iframe; in plain text it is the embed link.
  • status is queued, uploading, processing, ready or failed, and none when the field has no video.

Notifications are normally sent when the form is submitted, which is before the platform has finished. At that moment the status is queued and the link is empty. Use the tags in a notification that you send later, for example from a workflow or with the gfvoff_video_ready action, which fires once for every video that becomes ready and receives the entry ID and the job. The tags also work in the entry view and in any notification you resend.

Private Playback

Turn on Private playback in the feed and the video can only be played with a signed link.

  • Bunny Stream: the embed link gets a token made from your token authentication key. Turn on token authentication for the library as well.
  • Cloudflare Stream: the add-on sets require signed URLs on the video and asks Cloudflare for a short-lived token each time a link is shown.
  • Mux: the asset gets a signed playback ID and the add-on signs a token with your signing key, valid for a day.

Signed links expire, so the add-on does not store them. It makes a fresh one every time the entry view or a merge tag needs a link. The lifetime is one day and can be changed with the gfvoff_signed_link_ttl filter.

Delete the Local File Safely

Switch on Delete the local file after the platform confirms the video to free the disk. The add-on deletes the file only when every rule holds: the platform has reported the video as ready, no other feed on the same file is still waiting, and the file lies inside the Gravity Forms upload folder. It never deletes a file for a failed video, a video that is still processing or a path that points anywhere else. A note records the deletion. The link to the file in the entry stops working after that, so do not use this option if you want to keep downloading the original.

Webhooks

Polling is enough to finish every video, so webhooks are optional. They make the status change sooner. Each platform has its own address on your site, shown on the settings screen. A request is accepted only when its signature is correct and not older than five minutes: Cloudflare and Mux sign the time and the body with the webhook secret, Bunny signs the body with the read-only key of the library. A request with a bad signature gets the same empty 403 as any other bad call. Even a correct request never carries the result: it only asks the add-on to check the platform again.

Security Summary

  • Keys are encrypted before they are saved and never printed, logged or put in an error message.
  • Every request to a platform uses HTTPS with certificate checks.
  • Webhook signatures are compared in constant time and old requests are refused.
  • The temporary link for Mux is signed, expires after an hour, works only for that one video while it is being sent and is refused afterwards.
  • Files are read only from the Gravity Forms upload folder.
  • The Try again link needs a nonce and the capability to edit entries.
  • Nothing is sent to anyone but the platform you chose and the license server.

Troubleshooting

The video stays queued

The queue needs WP-Cron or Action Scheduler. Check that WP-Cron is not disabled without a real cron job in its place and that the license key is active. A site without a license waits and sends nothing.

The video failed with a 401 or 403

A key is wrong or lacks a permission. Fix it on the settings screen and press Try again in the entry.

It says the file is no longer on this server

Something moved or removed the file before the add-on could send it, for example another plugin that offloads uploads. Choose a field that still keeps the file on this server while the video is sent.

The video stays in processing

Long videos take time to encode. After two days without a result the add-on marks the video as failed. A webhook shortens the wait.

Can I send the same video to two platforms?

Yes. Add a second feed on the same form. Each feed makes its own job, and a local file is deleted only after both are ready.

What happens if I uninstall the add-on?

Its options, its jobs and its keys are removed. The videos stay on the platforms and the forms and entries are not touched.

See the Video Offload add-on

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr