Created
January 18, 2014 13:33
-
-
Save KonradIT/8490587 to your computer and use it in GitHub Desktop.
You'll have a preview of the GoPro camera, and when X secs are passed, the GoPro will start recording.
Set your gopro to video mode!
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> | |
<!-Change password by the gopro wifi password!, and change X by the seconds the camera have to wait until it starts recording -> | |
<META HTTP-EQUIV="refresh" CONTENT="X; URL=http://10.5.5.9/bacpac/SH?t=password&p=%01"> | |
</head> | |
<body> | |
<p>gopro.html by Konrad Iturbe (github: @konradit)</p> | |
<div style="text-align:center"> | |
<button onclick="playPause()">Play/Pause</button> | |
<button onclick="makeBig()">Big</button> | |
<button onclick="makeSmall()">Small</button> | |
<button onclick="makeNormal()">Normal</button> | |
<br> | |
<video id="video1" width="420"> | |
<source src="http://10.5.5.9:8080/live/amba.m3u8" type="video/mp4"> | |
Your browser does not support HTML5 video. | |
</video> | |
</div> | |
<script> | |
var myVideo=document.getElementById("video1"); | |
function playPause() | |
{ | |
if (myVideo.paused) | |
myVideo.play(); | |
else | |
myVideo.pause(); | |
} | |
function makeBig() | |
{ | |
myVideo.width=560; | |
} | |
function makeSmall() | |
{ | |
myVideo.width=320; | |
} | |
function makeNormal() | |
{ | |
myVideo.width=420; | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment