Revert "Remove check for audio until we get word on where it's allowed."

This reverts commit 76639c1299db2e7e84c9fb3e54d4f8f379f46794.
This commit is contained in:
ccd0 2015-01-31 02:03:27 -08:00
parent 53e16633a9
commit 25da29625e

View File

@ -397,6 +397,9 @@ QR =
else if duration > QR.max_duration_video
QR.error "#{file.name}: Video too long (video: #{duration}s, max: #{QR.max_duration_video}s)"
pass = false
if video.mozHasAudio or video.webkitAudioDecodedByteCount
QR.error "#{file.name}: Audio not allowed"
pass = false
cb pass, video
cb = null
$.on video, 'error', ->