Commit 42614703 authored by jan.koester's avatar jan.koester
Browse files

test

parent c753b60b
Loading
Loading
Loading
Loading
+4 −3
Changes for src/webedit/video/video.cpp: 4 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -344,12 +344,13 @@ extern "C" {

                if (controls) {
                    video.setAttribute("controls", "controls");
                } else {
                    video.setAttribute("onclick", "if(this.paused){this.dataset.clickPlay='1';this.play();}else{this.dataset.clickPlay='0';this.pause();}");
                }

                if (playOnHover) {
                    video.setAttribute("muted", "muted");
                    video.setAttribute("onmouseenter", "this.play()");
                    video.setAttribute("onmouseleave", "this.pause()");
                    video.setAttribute("onmouseenter", "if(this.paused){this.dataset.hoverPlay='1';this.play();}");
                    video.setAttribute("onmouseleave", "if(this.dataset.hoverPlay==='1'){this.pause();this.dataset.hoverPlay='0';}");
                }

                std::string style;