Hi,
I tested on opera labs version 12.00 alpha build 1232 for Win7 and the
below code works for me. Can you test the code below:-
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script type="text/javascript">
function gotStreamFailed(error) {
alert("Failed to get access to local media. Error: " + error.code +
".");
}
function enableCamera() {
alert("enableCamera called");
navigator.getUserMedia({audio:true, video: true}, function(stream)
{
// Replace the source of the video element with the
stream from the camera
document.getElementById("localView").src = stream;
}, gotStreamFailed);
}
window.onload = enableCamera;
</script>
</head>
<body>
<table>
<tr>
<th align="left">Local Preview</th>
</tr>
<tr>
<td> <video width="320" height="240" id="localView"
autoplay="autoplay"></video> </td>
</tr>
<tr>
<td align="left">
</td>
<td> </td>
</tr>
</table>
</body>
</html>
Thanks,
Vikas
On Feb 29, 6:41 am, Ludo <
ludovic....@gmail.com> wrote:
> Hi,
>
> I am making some tests with the getUserMedia API, with Opera.
>
> My browser detect the getUserMedia API but i can't get the stream, i don't
> know why ! It works on this page<
http://people.opera.com/danield/html5/explode/>
> .