I have a sample html page here which displays a video, I am using javascript injection to play/pause the video. But now I want to control the volume as well. How do I create a function which decreases/increases the volume based on percentage?
html video - http://techslides.com/demos/sample-videos/small.webm
JavaScript
function pausevid() {
var video = document.getElementsByTagName('video');
video[0].pause();
}
pausevid();