Wireclub
Home
Chat Rooms
Forums
Find People
Places
Search
Join Now!
Log In
Home
Chat Rooms
Forums
Find People
Places
Add as Friend
Private Chat
Send a Message
Give a Badge
Send a Card
Friends
Show All 120 Friends
home15
Offline
35
•
Male
•
from
Zbarazh
•
142
Feed
About
Pictures
Friends
Following
programmergirl220
: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Video</title>
<style>
#vid {
border: 1px solid black;
}
</style>
</head>
<body>
<video id="vid" autoplay="true"></video>
<button id="btn" onclick="start()">Start</button>
<script src="main.js"></script>
</body>
</html>
video = document.getElementById("vid"
;
function start() {
navigator.webkitGetUserMedia({video:true}, gotStream,
function() {});
btn.disabled = true;
}
function gotStream(stream) {
video.src = webkitURL.createObjectURL(stream);
}
3 years ago
•
Reply
•
Report
•
Link
0
<html lang="en">
<head>
<meta charset="utf-8">
<title>Video</title>
<style>
#vid {
border: 1px solid black;
}
</style>
</head>
<body>
<video id="vid" autoplay="true"></video>
<button id="btn" onclick="start()">Start</button>
<script src="main.js"></script>
</body>
</html>
video = document.getElementById("vid"
function start() {
navigator.webkitGetUserMedia({video:true}, gotStream,
function() {});
btn.disabled = true;
}
function gotStream(stream) {
video.src = webkitURL.createObjectURL(stream);
}