mirror of
https://github.com/videojs/video.js.git
synced 2024-12-14 11:23:30 +02:00
ab25a823b7
Hide volume slider and mute toggle when the current tech doesn't support adjusting video volume. Added controls specific test cases. Volume-related controls retest whether to display themselves whenever `loadstart` fires.
15 lines
347 B
JavaScript
15 lines
347 B
JavaScript
module('HTML5');
|
|
|
|
test('should detect whether the volume can be changed', function(){
|
|
var
|
|
testVid = vjs.TEST_VID,
|
|
ConstVolumeVideo = function(){
|
|
this.volume = 1;
|
|
this.__defineSetter__('volume', function(){});
|
|
};
|
|
vjs.TEST_VID = new ConstVolumeVideo();
|
|
|
|
ok(!vjs.Html5.canControlVolume());
|
|
vjs.TEST_VID = testVid;
|
|
});
|