Created
July 19, 2012 00:52
-
-
Save siddharta1337/3140038 to your computer and use it in GitHub Desktop.
Prueba Video
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width" /> | |
<title>Ejercicio 2.6</title> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<video id="miVideo" src="http://carlossolis.mobi/cursos/video.mp4" width="300px" height="234" > </video> | |
<button onClick="reproducir()"> reproducir video </button> | |
<script> | |
function reproducir(){ | |
var videoSeleccionado = document.getElementById("miVideo") | |
videoSeleccionado.play(); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment