test for audio stream (Firefox only)
This commit is contained in:
parent
345e176f67
commit
afecbaaeae
@ -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', =>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user