Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Mth0158 opened this issue Nov 26, 2024 · 0 comments
Open

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

Mth0158 opened this issue Nov 26, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request v2 Features for releasing v2

Comments

@Mth0158
Copy link
Collaborator

Mth0158 commented Nov 26, 2024

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 }
@Mth0158 Mth0158 added enhancement New feature or request v2 Features for releasing v2 labels Nov 26, 2024
@Mth0158 Mth0158 self-assigned this Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v2 Features for releasing v2
Projects
None yet
Development

No branches or pull requests

1 participant