test for audio stream (Firefox only)

This commit is contained in:
ccd0 2014-05-01 01:41:34 -07:00
parent 345e176f67
commit afecbaaeae

View File

@ -405,6 +405,11 @@ QR =
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 (type === 'userscript') { %>
if video.mozHasAudio
QR.error "#{file.name}: Audio not allowed"
pass = false
<% } %>
cb pass
cb = null
$.on video, 'error', =>