forked from leftypol/leftypol
mute -> volume control
This commit is contained in:
parent
ed10ad44e3
commit
0ef2db58ea
3 changed files with 22 additions and 11 deletions
|
@ -84,7 +84,8 @@ function setupVideo(thumb, url) {
|
|||
videoContainer.style.position = "static";
|
||||
thumb.style.display = "none";
|
||||
|
||||
video.muted = setting("videomuted");
|
||||
video.muted = (setting("videovolume") == 0);
|
||||
video.volume = setting("videovolume");
|
||||
video.controls = true;
|
||||
if (video.readyState == 0) {
|
||||
video.addEventListener("loadedmetadata", expand2, false);
|
||||
|
@ -130,7 +131,8 @@ function setupVideo(thumb, url) {
|
|||
videoContainer.style.display = "inline";
|
||||
videoContainer.style.position = "fixed";
|
||||
|
||||
video.muted = setting("videomuted");
|
||||
video.muted = (setting("videovolume") == 0);
|
||||
video.volume = setting("videovolume");
|
||||
video.controls = false;
|
||||
video.play();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue