1
iPad 및 Android 테이블과 같은 일부 기기에서 질문이 있습니다.이 기기에서 볼륨 API가 지원되지 않기 때문에 동영상 태그의 볼륨을 변경할 수 없습니다. 이 isnt 지원 여부를 어떻게 감지 할 수 있을지 생각해?HTML5 동영상 태그 볼륨 지원
function volumeChangeSupported() {
var ua = navigator.userAgent.toLowerCase();
// got information from jplayer:
var noVolume = /ipad|iphone|ipod|android|blackberry|windows ce|windows phone|webos|playbook/.exec(ua);
if (noVolume) {
if (noVolume[0] === 'android' && /gecko/.test(ua)) {
// Firefox on android DOES support changing the volume:
return true;
}
else {
return false;
}
}
return true;
}
이 정말 볼륨 변경에 대한 지원을 "인식"하지 않습니다