igorkasyanchuk/active_storage_validations
[Validator] Add a :with_audio validator for videos
Fechada
#303 aberto em 26 de nov. de 2024
enhancementgood first issue
Métricas do repositório
- Stars
- (1.179 estrelas)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
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 }