Created
February 27, 2016 00:06
-
-
Save seksenov/f5a1cea573cbf478553a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function playMedia() { | |
var media = document.getElementById("mediaVideo"); | |
media.play(); | |
} | |
function pauseMedia() { | |
var media = document.getElementById("mediaVideo"); | |
media.pause(); | |
} | |
function stopMedia() { | |
var media = document.getElementById("mediaVideo"); | |
media.pause(); | |
media.currentTime = 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment