Skip to content

[Validator] Add a :with_audio validator for videos #303

Open
@Mth0158

Description

Thanks to our video metadata extraction, we are able to validate if a video has audio or not:

ActiveStorageValidations::Analyzer::VideoAnalyzer.new(attachable).metadata
# => { width: 640.0, height: 480.0, duration: 5.0, angle: 0, audio: true, video: true }

Metadata

Assignees

Labels

enhancementNew feature or requestv2Features for releasing v2

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions