2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-03-04 01:36:36 +08:00
discourse/spec/fabricators/optimized_video_fabricator.rb
Blake Erickson af3abb54e3
FEATURE: Add support for aws MediaConvert (#33092)
When enabled this will convert uploaded videos to a standard format that should
be playable on all devices and browsers.

The goal of this feature is to prevent codec playback issues that
sometimes can occur with video uploads.

It uses an adapter pattern, so that other services for video conversion
could be easily added in the future.
2025-07-23 11:58:33 -06:00

7 lines
163 B
Ruby

# frozen_string_literal: true
Fabricator(:optimized_video) do
upload
optimized_upload { Fabricate(:optimized_video_upload) }
adapter "aws_mediaconvert"
end