Created
July 13, 2012 07:17
-
-
Save siddharta1337/3103318 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